Class V1PersistentVolumeClaimVolumeSource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PersistentVolumeClaimVolumeSource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(String claimName)
  • Method Details

    • 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:
      the claimName property value
    • setClaimName

      public void setClaimName(String claimName)
      Set the claimName property value
    • claimName

      public V1PersistentVolumeClaimVolumeSource claimName(String claimName)
      Set claimName in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimVolumeSource for chaining.
    • getReadOnly

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

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
    • readOnly

      public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimVolumeSource for chaining.
    • 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