Package io.fabric8.kubernetes.api.model
Class PersistentVolumeSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.PersistentVolumeSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PersistentVolumeSpecBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PersistentVolumeSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<PersistentVolumeSpecBuilder>, KubernetesResource
PersistentVolumeSpec is the specification of a persistent volume.- See Also:
- Serialized Form
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentVolumeSpecBuilder
edit()
List<String>
getAccessModes()
accessModes contains all ways the volume can be mounted.Map<String,Object>
getAdditionalProperties()
AWSElasticBlockStoreVolumeSource
getAwsElasticBlockStore()
PersistentVolumeSpec is the specification of a persistent volume.AzureDiskVolumeSource
getAzureDisk()
PersistentVolumeSpec is the specification of a persistent volume.AzureFilePersistentVolumeSource
getAzureFile()
PersistentVolumeSpec is the specification of a persistent volume.Map<String,Quantity>
getCapacity()
capacity is the description of the persistent volume's resources and capacity.CephFSPersistentVolumeSource
getCephfs()
PersistentVolumeSpec is the specification of a persistent volume.CinderPersistentVolumeSource
getCinder()
PersistentVolumeSpec is the specification of a persistent volume.ObjectReference
getClaimRef()
PersistentVolumeSpec is the specification of a persistent volume.CSIPersistentVolumeSource
getCsi()
PersistentVolumeSpec is the specification of a persistent volume.FCVolumeSource
getFc()
PersistentVolumeSpec is the specification of a persistent volume.FlexPersistentVolumeSource
getFlexVolume()
PersistentVolumeSpec is the specification of a persistent volume.FlockerVolumeSource
getFlocker()
PersistentVolumeSpec is the specification of a persistent volume.GCEPersistentDiskVolumeSource
getGcePersistentDisk()
PersistentVolumeSpec is the specification of a persistent volume.GlusterfsPersistentVolumeSource
getGlusterfs()
PersistentVolumeSpec is the specification of a persistent volume.HostPathVolumeSource
getHostPath()
PersistentVolumeSpec is the specification of a persistent volume.ISCSIPersistentVolumeSource
getIscsi()
PersistentVolumeSpec is the specification of a persistent volume.LocalVolumeSource
getLocal()
PersistentVolumeSpec is the specification of a persistent volume.List<String>
getMountOptions()
mountOptions is the list of mount options, e.g.NFSVolumeSource
getNfs()
PersistentVolumeSpec is the specification of a persistent volume.VolumeNodeAffinity
getNodeAffinity()
PersistentVolumeSpec is the specification of a persistent volume.String
getPersistentVolumeReclaimPolicy()
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.PhotonPersistentDiskVolumeSource
getPhotonPersistentDisk()
PersistentVolumeSpec is the specification of a persistent volume.PortworxVolumeSource
getPortworxVolume()
PersistentVolumeSpec is the specification of a persistent volume.QuobyteVolumeSource
getQuobyte()
PersistentVolumeSpec is the specification of a persistent volume.RBDPersistentVolumeSource
getRbd()
PersistentVolumeSpec is the specification of a persistent volume.ScaleIOPersistentVolumeSource
getScaleIO()
PersistentVolumeSpec is the specification of a persistent volume.String
getStorageClassName()
storageClassName is the name of StorageClass to which this persistent volume belongs.StorageOSPersistentVolumeSource
getStorageos()
PersistentVolumeSpec is the specification of a persistent volume.String
getVolumeAttributesClassName()
Name of VolumeAttributesClass to which this persistent volume belongs.String
getVolumeMode()
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.VsphereVirtualDiskVolumeSource
getVsphereVolume()
PersistentVolumeSpec is the specification of a persistent volume.void
setAccessModes(List<String> accessModes)
accessModes contains all ways the volume can be mounted.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
PersistentVolumeSpec is the specification of a persistent volume.void
setAzureDisk(AzureDiskVolumeSource azureDisk)
PersistentVolumeSpec is the specification of a persistent volume.void
setAzureFile(AzureFilePersistentVolumeSource azureFile)
PersistentVolumeSpec is the specification of a persistent volume.void
setCapacity(Map<String,Quantity> capacity)
capacity is the description of the persistent volume's resources and capacity.void
setCephfs(CephFSPersistentVolumeSource cephfs)
PersistentVolumeSpec is the specification of a persistent volume.void
setCinder(CinderPersistentVolumeSource cinder)
PersistentVolumeSpec is the specification of a persistent volume.void
setClaimRef(ObjectReference claimRef)
PersistentVolumeSpec is the specification of a persistent volume.void
setCsi(CSIPersistentVolumeSource csi)
PersistentVolumeSpec is the specification of a persistent volume.void
setFc(FCVolumeSource fc)
PersistentVolumeSpec is the specification of a persistent volume.void
setFlexVolume(FlexPersistentVolumeSource flexVolume)
PersistentVolumeSpec is the specification of a persistent volume.void
setFlocker(FlockerVolumeSource flocker)
PersistentVolumeSpec is the specification of a persistent volume.void
setGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)
PersistentVolumeSpec is the specification of a persistent volume.void
setGlusterfs(GlusterfsPersistentVolumeSource glusterfs)
PersistentVolumeSpec is the specification of a persistent volume.void
setHostPath(HostPathVolumeSource hostPath)
PersistentVolumeSpec is the specification of a persistent volume.void
setIscsi(ISCSIPersistentVolumeSource iscsi)
PersistentVolumeSpec is the specification of a persistent volume.void
setLocal(LocalVolumeSource local)
PersistentVolumeSpec is the specification of a persistent volume.void
setMountOptions(List<String> mountOptions)
mountOptions is the list of mount options, e.g.void
setNfs(NFSVolumeSource nfs)
PersistentVolumeSpec is the specification of a persistent volume.void
setNodeAffinity(VolumeNodeAffinity nodeAffinity)
PersistentVolumeSpec is the specification of a persistent volume.void
setPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy)
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.void
setPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)
PersistentVolumeSpec is the specification of a persistent volume.void
setPortworxVolume(PortworxVolumeSource portworxVolume)
PersistentVolumeSpec is the specification of a persistent volume.void
setQuobyte(QuobyteVolumeSource quobyte)
PersistentVolumeSpec is the specification of a persistent volume.void
setRbd(RBDPersistentVolumeSource rbd)
PersistentVolumeSpec is the specification of a persistent volume.void
setScaleIO(ScaleIOPersistentVolumeSource scaleIO)
PersistentVolumeSpec is the specification of a persistent volume.void
setStorageClassName(String storageClassName)
storageClassName is the name of StorageClass to which this persistent volume belongs.void
setStorageos(StorageOSPersistentVolumeSource storageos)
PersistentVolumeSpec is the specification of a persistent volume.void
setVolumeAttributesClassName(String volumeAttributesClassName)
Name of VolumeAttributesClass to which this persistent volume belongs.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.void
setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)
PersistentVolumeSpec is the specification of a persistent volume.PersistentVolumeSpecBuilder
toBuilder()
-
-
-
Constructor Detail
-
PersistentVolumeSpec
public PersistentVolumeSpec()
No args constructor for use in serialization
-
PersistentVolumeSpec
public PersistentVolumeSpec(List<String> accessModes, AWSElasticBlockStoreVolumeSource awsElasticBlockStore, AzureDiskVolumeSource azureDisk, AzureFilePersistentVolumeSource azureFile, Map<String,Quantity> capacity, CephFSPersistentVolumeSource cephfs, CinderPersistentVolumeSource cinder, ObjectReference claimRef, CSIPersistentVolumeSource csi, FCVolumeSource fc, FlexPersistentVolumeSource flexVolume, FlockerVolumeSource flocker, GCEPersistentDiskVolumeSource gcePersistentDisk, GlusterfsPersistentVolumeSource glusterfs, HostPathVolumeSource hostPath, ISCSIPersistentVolumeSource iscsi, LocalVolumeSource local, List<String> mountOptions, NFSVolumeSource nfs, VolumeNodeAffinity nodeAffinity, String persistentVolumeReclaimPolicy, PhotonPersistentDiskVolumeSource photonPersistentDisk, PortworxVolumeSource portworxVolume, QuobyteVolumeSource quobyte, RBDPersistentVolumeSource rbd, ScaleIOPersistentVolumeSource scaleIO, String storageClassName, StorageOSPersistentVolumeSource storageos, String volumeAttributesClassName, String volumeMode, VsphereVirtualDiskVolumeSource vsphereVolume)
-
-
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
-
getAwsElasticBlockStore
public AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
PersistentVolumeSpec is the specification of a persistent volume.
-
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.
-
getAzureFile
public AzureFilePersistentVolumeSource getAzureFile()
PersistentVolumeSpec is the specification of a persistent volume.
-
setAzureFile
public void setAzureFile(AzureFilePersistentVolumeSource azureFile)
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
-
getCephfs
public CephFSPersistentVolumeSource getCephfs()
PersistentVolumeSpec is the specification of a persistent volume.
-
setCephfs
public void setCephfs(CephFSPersistentVolumeSource cephfs)
PersistentVolumeSpec is the specification of a persistent volume.
-
getCinder
public CinderPersistentVolumeSource getCinder()
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.
-
getCsi
public CSIPersistentVolumeSource getCsi()
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.
-
getGlusterfs
public GlusterfsPersistentVolumeSource getGlusterfs()
PersistentVolumeSpec is the specification of a persistent volume.
-
setGlusterfs
public void setGlusterfs(GlusterfsPersistentVolumeSource glusterfs)
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.
-
getIscsi
public ISCSIPersistentVolumeSource getIscsi()
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
-
getPhotonPersistentDisk
public PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
PersistentVolumeSpec is the specification of a persistent volume.
-
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.
-
getRbd
public RBDPersistentVolumeSource getRbd()
PersistentVolumeSpec is the specification of a persistent volume.
-
setRbd
public void setRbd(RBDPersistentVolumeSource rbd)
PersistentVolumeSpec is the specification of a persistent volume.
-
getScaleIO
public ScaleIOPersistentVolumeSource getScaleIO()
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.
-
getStorageos
public StorageOSPersistentVolumeSource getStorageos()
PersistentVolumeSpec is the specification of a persistent volume.
-
setStorageos
public void setStorageos(StorageOSPersistentVolumeSource storageos)
PersistentVolumeSpec is the specification of a persistent volume.
-
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.
-
getVsphereVolume
public VsphereVirtualDiskVolumeSource getVsphereVolume()
PersistentVolumeSpec is the specification of a persistent volume.
-
setVsphereVolume
public void setVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)
PersistentVolumeSpec is the specification of a persistent volume.
-
edit
public PersistentVolumeSpecBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<PersistentVolumeSpecBuilder>
-
toBuilder
public PersistentVolumeSpecBuilder toBuilder()
-
-