Class V1PersistentVolumeClaimVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[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).
  • Field Details

  • Constructor Details

    • V1PersistentVolumeClaimVolumeSource

      public V1PersistentVolumeClaimVolumeSource()
  • Method Details

    • claimName

      public V1PersistentVolumeClaimVolumeSource claimName(String claimName)
    • getClaimName

      public 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
      Returns:
      claimName
    • setClaimName

      public void setClaimName(String claimName)
    • readOnly

      public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • 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