Class V1StorageOSPersistentVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource extends Object
Represents a StorageOS persistent volume resource.
  • Field Details

  • Constructor Details

    • V1StorageOSPersistentVolumeSource

      public V1StorageOSPersistentVolumeSource()
  • Method Details

    • fsType

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

      public void setFsType(String fsType)
    • readOnly

      public V1StorageOSPersistentVolumeSource 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)
    • secretRef

    • getSecretRef

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

      public void setSecretRef(V1ObjectReference secretRef)
    • volumeName

      public V1StorageOSPersistentVolumeSource volumeName(String volumeName)
    • getVolumeName

      @Nullable public String getVolumeName()
      volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
      Returns:
      volumeName
    • setVolumeName

      public void setVolumeName(String volumeName)
    • volumeNamespace

      public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace)
    • getVolumeNamespace

      @Nullable public String getVolumeNamespace()
      volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
      Returns:
      volumeNamespace
    • setVolumeNamespace

      public void setVolumeNamespace(String volumeNamespace)
    • 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 V1StorageOSPersistentVolumeSource
    • fromJson

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

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