Package kubevirt.io

Class V1PersistentVolumeClaimVolumeSource


  • @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
               date="2019-11-10T14:44:51.030+02:00")
    public class V1PersistentVolumeClaimVolumeSource
    extends java.lang.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 Detail

      • claimName

        private java.lang.String claimName
      • readOnly

        private java.lang.Boolean readOnly
    • Constructor Detail

      • V1PersistentVolumeClaimVolumeSource

        public V1PersistentVolumeClaimVolumeSource()
    • Method Detail

      • getClaimName

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

        public void setClaimName​(java.lang.String claimName)
      • isReadOnly

        public java.lang.Boolean isReadOnly()
        Will force the ReadOnly setting in VolumeMounts. Default false.
        Returns:
        readOnly
      • setReadOnly

        public void setReadOnly​(java.lang.Boolean readOnly)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toIndentedString

        private java.lang.String toIndentedString​(java.lang.Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).