Class V1AzureFilePersistentVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1AzureFilePersistentVolumeSource extends Object
AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
  • Field Details

  • Constructor Details

    • V1AzureFilePersistentVolumeSource

      public V1AzureFilePersistentVolumeSource()
  • Method Details

    • readOnly

      public V1AzureFilePersistentVolumeSource 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)
    • secretName

      public V1AzureFilePersistentVolumeSource secretName(String secretName)
    • getSecretName

      @Nonnull public String getSecretName()
      secretName is the name of secret that contains Azure Storage Account Name and Key
      Returns:
      secretName
    • setSecretName

      public void setSecretName(String secretName)
    • secretNamespace

      public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace)
    • getSecretNamespace

      @Nullable public String getSecretNamespace()
      secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod
      Returns:
      secretNamespace
    • setSecretNamespace

      public void setSecretNamespace(String secretNamespace)
    • shareName

      public V1AzureFilePersistentVolumeSource shareName(String shareName)
    • getShareName

      @Nonnull public String getShareName()
      shareName is the azure Share Name
      Returns:
      shareName
    • setShareName

      public void setShareName(String shareName)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1AzureFilePersistentVolumeSource
    • fromJson

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

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