Class V1FlexPersistentVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1FlexPersistentVolumeSource extends Object
FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
  • Field Details

  • Constructor Details

    • V1FlexPersistentVolumeSource

      public V1FlexPersistentVolumeSource()
  • Method Details

    • driver

      public V1FlexPersistentVolumeSource driver(String driver)
    • getDriver

      @Nonnull public String getDriver()
      driver is the name of the driver to use for this volume.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • fsType

      public V1FlexPersistentVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public String getFsType()
      fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • options

      public V1FlexPersistentVolumeSource options(Map<String,String> options)
    • putOptionsItem

      public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsItem)
    • getOptions

      @Nullable public Map<String,String> getOptions()
      options is Optional: this field holds extra command options if any.
      Returns:
      options
    • setOptions

      public void setOptions(Map<String,String> options)
    • readOnly

      public V1FlexPersistentVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

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

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef)
    • getSecretRef

      @Nullable public V1SecretReference getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(V1SecretReference secretRef)
    • 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 V1FlexPersistentVolumeSource
    • fromJson

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

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