Class V1PortworxVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1PortworxVolumeSource extends Object
PortworxVolumeSource represents a Portworx volume resource.
  • Field Details

  • Constructor Details

    • V1PortworxVolumeSource

      public V1PortworxVolumeSource()
  • Method Details

    • fsType

      public V1PortworxVolumeSource fsType(String fsType)
    • getFsType

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

      public void setFsType(String fsType)
    • readOnly

      public V1PortworxVolumeSource 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)
    • volumeID

      public V1PortworxVolumeSource volumeID(String volumeID)
    • getVolumeID

      @Nonnull public String getVolumeID()
      volumeID uniquely identifies a Portworx volume
      Returns:
      volumeID
    • setVolumeID

      public void setVolumeID(String volumeID)
    • 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 V1PortworxVolumeSource
    • fromJson

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

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