Class V1FlexVolumeSource

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

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

  • Constructor Details

    • V1FlexVolumeSource

      public V1FlexVolumeSource()
  • Method Details

    • driver

      public V1FlexVolumeSource 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 V1FlexVolumeSource 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 V1FlexVolumeSource options(Map<String,String> options)
    • putOptionsItem

      public V1FlexVolumeSource 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 V1FlexVolumeSource 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 V1FlexVolumeSource secretRef(V1LocalObjectReference secretRef)
    • getSecretRef

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

      public void setSecretRef(V1LocalObjectReference 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 V1FlexVolumeSource
    • fromJson

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

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