Class V1PersistentVolumeClaimVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PersistentVolumeClaimVolumeSource
extends Object
PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1PersistentVolumeClaimVolumeSource given an JSON stringclaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.readOnly Will force the ReadOnly setting in VolumeMounts.int
hashCode()
void
setClaimName
(String claimName) void
setReadOnly
(Boolean readOnly) toJson()
Convert an instance of V1PersistentVolumeClaimVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CLAIM_NAME
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PersistentVolumeClaimVolumeSource
public V1PersistentVolumeClaimVolumeSource()
-
-
Method Details
-
claimName
-
getClaimName
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims- Returns:
- claimName
-
setClaimName
-
readOnly
-
getReadOnly
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.- Returns:
- readOnly
-
setReadOnly
-
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 V1PersistentVolumeClaimVolumeSource
-
fromJson
Create an instance of V1PersistentVolumeClaimVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PersistentVolumeClaimVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1PersistentVolumeClaimVolumeSource
-
toJson
Convert an instance of V1PersistentVolumeClaimVolumeSource to an JSON string- Returns:
- JSON string
-