Class V1PortworxVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1PortworxVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PortworxVolumeSource
extends Object
PortworxVolumeSource represents a Portworx volume resource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1PortworxVolumeSourceCreate an instance of V1PortworxVolumeSource given an JSON stringfSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system.readOnly defaults to false (read/write).volumeID uniquely identifies a Portworx volumeinthashCode()voidvoidsetReadOnly(Boolean readOnly) voidsetVolumeID(String volumeID) toJson()Convert an instance of V1PortworxVolumeSource to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_VOLUME_I_D
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PortworxVolumeSource
public V1PortworxVolumeSource()
-
-
Method Details
-
fsType
-
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
-
readOnly
-
getReadOnly
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
- readOnly
-
setReadOnly
-
volumeID
-
getVolumeID
volumeID uniquely identifies a Portworx volume- Returns:
- volumeID
-
setVolumeID
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 V1PortworxVolumeSource
-
fromJson
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
Convert an instance of V1PortworxVolumeSource to an JSON string- Returns:
- JSON string
-