Class PersistentVolumeSpec

    • Method Detail

      • getAccessModes

        public List<String> getAccessModes()
        accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
      • setAccessModes

        public void setAccessModes​(List<String> accessModes)
        accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
      • setAwsElasticBlockStore

        public void setAwsElasticBlockStore​(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getAzureDisk

        public AzureDiskVolumeSource getAzureDisk()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setAzureDisk

        public void setAzureDisk​(AzureDiskVolumeSource azureDisk)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getCapacity

        public Map<String,​Quantity> getCapacity()
        capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
      • setCapacity

        public void setCapacity​(Map<String,​Quantity> capacity)
        capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
      • setCephfs

        public void setCephfs​(CephFSPersistentVolumeSource cephfs)
        PersistentVolumeSpec is the specification of a persistent volume.
      • setCinder

        public void setCinder​(CinderPersistentVolumeSource cinder)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getClaimRef

        public ObjectReference getClaimRef()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setClaimRef

        public void setClaimRef​(ObjectReference claimRef)
        PersistentVolumeSpec is the specification of a persistent volume.
      • setCsi

        public void setCsi​(CSIPersistentVolumeSource csi)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getFc

        public FCVolumeSource getFc()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setFc

        public void setFc​(FCVolumeSource fc)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getFlexVolume

        public FlexPersistentVolumeSource getFlexVolume()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setFlexVolume

        public void setFlexVolume​(FlexPersistentVolumeSource flexVolume)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getFlocker

        public FlockerVolumeSource getFlocker()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setFlocker

        public void setFlocker​(FlockerVolumeSource flocker)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getGcePersistentDisk

        public GCEPersistentDiskVolumeSource getGcePersistentDisk()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setGcePersistentDisk

        public void setGcePersistentDisk​(GCEPersistentDiskVolumeSource gcePersistentDisk)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getHostPath

        public HostPathVolumeSource getHostPath()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setHostPath

        public void setHostPath​(HostPathVolumeSource hostPath)
        PersistentVolumeSpec is the specification of a persistent volume.
      • setIscsi

        public void setIscsi​(ISCSIPersistentVolumeSource iscsi)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getLocal

        public LocalVolumeSource getLocal()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setLocal

        public void setLocal​(LocalVolumeSource local)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getMountOptions

        public List<String> getMountOptions()
        mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
      • setMountOptions

        public void setMountOptions​(List<String> mountOptions)
        mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
      • getNfs

        public NFSVolumeSource getNfs()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setNfs

        public void setNfs​(NFSVolumeSource nfs)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getNodeAffinity

        public VolumeNodeAffinity getNodeAffinity()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setNodeAffinity

        public void setNodeAffinity​(VolumeNodeAffinity nodeAffinity)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getPersistentVolumeReclaimPolicy

        public String getPersistentVolumeReclaimPolicy()
        persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
      • setPersistentVolumeReclaimPolicy

        public void setPersistentVolumeReclaimPolicy​(String persistentVolumeReclaimPolicy)
        persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
      • setPhotonPersistentDisk

        public void setPhotonPersistentDisk​(PhotonPersistentDiskVolumeSource photonPersistentDisk)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getPortworxVolume

        public PortworxVolumeSource getPortworxVolume()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setPortworxVolume

        public void setPortworxVolume​(PortworxVolumeSource portworxVolume)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getQuobyte

        public QuobyteVolumeSource getQuobyte()
        PersistentVolumeSpec is the specification of a persistent volume.
      • setQuobyte

        public void setQuobyte​(QuobyteVolumeSource quobyte)
        PersistentVolumeSpec is the specification of a persistent volume.
      • setRbd

        public void setRbd​(RBDPersistentVolumeSource rbd)
        PersistentVolumeSpec is the specification of a persistent volume.
      • setScaleIO

        public void setScaleIO​(ScaleIOPersistentVolumeSource scaleIO)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getStorageClassName

        public String getStorageClassName()
        storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
      • setStorageClassName

        public void setStorageClassName​(String storageClassName)
        storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
      • getVolumeAttributesClassName

        public String getVolumeAttributesClassName()
        Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
      • setVolumeAttributesClassName

        public void setVolumeAttributesClassName​(String volumeAttributesClassName)
        Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
      • getVolumeMode

        public String getVolumeMode()
        volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.
      • setVolumeMode

        public void setVolumeMode​(String volumeMode)
        volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.
      • setVsphereVolume

        public void setVsphereVolume​(VsphereVirtualDiskVolumeSource vsphereVolume)
        PersistentVolumeSpec is the specification of a persistent volume.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)