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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1PortworxVolumeSource
Create 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 volumeint
hashCode()
void
void
setReadOnly
(Boolean readOnly) void
setVolumeID
(String volumeID) toJson()
Convert an instance of V1PortworxVolumeSource to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
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
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
-