Class PersistentVolumeClaimVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class PersistentVolumeClaimVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
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 Classes Modifier and Type Class Description static class
PersistentVolumeClaimVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description PersistentVolumeClaimVolumeSource()
PersistentVolumeClaimVolumeSource(@NonNull java.lang.String claimName, java.lang.Boolean readOnly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PersistentVolumeClaimVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getClaimName()
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.java.lang.Boolean
getReadOnly()
readOnly Will force the ReadOnly setting in VolumeMounts.int
hashCode()
void
setClaimName(@NonNull java.lang.String claimName)
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.void
setReadOnly(java.lang.Boolean readOnly)
readOnly Will force the ReadOnly setting in VolumeMounts.PersistentVolumeClaimVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static PersistentVolumeClaimVolumeSource.Builder builder()
-
toBuilder
public PersistentVolumeClaimVolumeSource.Builder toBuilder()
-
getClaimName
@NonNull public @NonNull java.lang.String 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
-
getReadOnly
public java.lang.Boolean getReadOnly()
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
-
setClaimName
public void setClaimName(@NonNull @NonNull java.lang.String claimName)
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
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-