Class V1AzureDiskVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1AzureDiskVolumeSource extends Object
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
  • Field Details

  • Constructor Details

    • V1AzureDiskVolumeSource

      public V1AzureDiskVolumeSource()
  • Method Details

    • cachingMode

      public V1AzureDiskVolumeSource cachingMode(String cachingMode)
    • getCachingMode

      @Nullable public String getCachingMode()
      cachingMode is the Host Caching mode: None, Read Only, Read Write.
      Returns:
      cachingMode
    • setCachingMode

      public void setCachingMode(String cachingMode)
    • diskName

      public V1AzureDiskVolumeSource diskName(String diskName)
    • getDiskName

      @Nonnull public String getDiskName()
      diskName is the Name of the data disk in the blob storage
      Returns:
      diskName
    • setDiskName

      public void setDiskName(String diskName)
    • diskURI

      public V1AzureDiskVolumeSource diskURI(String diskURI)
    • getDiskURI

      @Nonnull public String getDiskURI()
      diskURI is the URI of data disk in the blob storage
      Returns:
      diskURI
    • setDiskURI

      public void setDiskURI(String diskURI)
    • fsType

      public V1AzureDiskVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public String getFsType()
      fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • kind

      public V1AzureDiskVolumeSource kind(String kind)
    • getKind

      @Nullable public String getKind()
      kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • readOnly

      public V1AzureDiskVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1AzureDiskVolumeSource
    • fromJson

      public static V1AzureDiskVolumeSource fromJson(String jsonString) throws IOException
      Create an instance of V1AzureDiskVolumeSource given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1AzureDiskVolumeSource
      Throws:
      IOException - if the JSON string is invalid with respect to V1AzureDiskVolumeSource
    • toJson

      public String toJson()
      Convert an instance of V1AzureDiskVolumeSource to an JSON string
      Returns:
      JSON string