Class V1PhotonPersistentDiskVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource extends Object
Represents a Photon Controller persistent disk resource.
  • Field Details

  • Constructor Details

    • V1PhotonPersistentDiskVolumeSource

      public V1PhotonPersistentDiskVolumeSource()
  • Method Details

    • 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\". Implicitly inferred to be \"ext4\" if unspecified.
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • pdID

    • getPdID

      @Nonnull public String getPdID()
      pdID is the ID that identifies Photon Controller persistent disk
      Returns:
      pdID
    • setPdID

      public void setPdID(String pdID)
    • 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 V1PhotonPersistentDiskVolumeSource
    • fromJson

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

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