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 PersistentVolumeSpecBuilderedit()List<String>getAccessModes()accessModes contains all ways the volume can be mounted.Map<String,Object>getAdditionalProperties()AWSElasticBlockStoreVolumeSourcegetAwsElasticBlockStore()PersistentVolumeSpec is the specification of a persistent volume.AzureDiskVolumeSourcegetAzureDisk()PersistentVolumeSpec is the specification of a persistent volume.AzureFilePersistentVolumeSourcegetAzureFile()PersistentVolumeSpec is the specification of a persistent volume.Map<String,Quantity>getCapacity()capacity is the description of the persistent volume's resources and capacity.CephFSPersistentVolumeSourcegetCephfs()PersistentVolumeSpec is the specification of a persistent volume.CinderPersistentVolumeSourcegetCinder()PersistentVolumeSpec is the specification of a persistent volume.ObjectReferencegetClaimRef()PersistentVolumeSpec is the specification of a persistent volume.CSIPersistentVolumeSourcegetCsi()PersistentVolumeSpec is the specification of a persistent volume.FCVolumeSourcegetFc()PersistentVolumeSpec is the specification of a persistent volume.FlexPersistentVolumeSourcegetFlexVolume()PersistentVolumeSpec is the specification of a persistent volume.FlockerVolumeSourcegetFlocker()PersistentVolumeSpec is the specification of a persistent volume.GCEPersistentDiskVolumeSourcegetGcePersistentDisk()PersistentVolumeSpec is the specification of a persistent volume.GlusterfsPersistentVolumeSourcegetGlusterfs()PersistentVolumeSpec is the specification of a persistent volume.HostPathVolumeSourcegetHostPath()PersistentVolumeSpec is the specification of a persistent volume.ISCSIPersistentVolumeSourcegetIscsi()PersistentVolumeSpec is the specification of a persistent volume.LocalVolumeSourcegetLocal()PersistentVolumeSpec is the specification of a persistent volume.List<String>getMountOptions()mountOptions is the list of mount options, e.g.NFSVolumeSourcegetNfs()PersistentVolumeSpec is the specification of a persistent volume.VolumeNodeAffinitygetNodeAffinity()PersistentVolumeSpec is the specification of a persistent volume.StringgetPersistentVolumeReclaimPolicy()persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.PhotonPersistentDiskVolumeSourcegetPhotonPersistentDisk()PersistentVolumeSpec is the specification of a persistent volume.PortworxVolumeSourcegetPortworxVolume()PersistentVolumeSpec is the specification of a persistent volume.QuobyteVolumeSourcegetQuobyte()PersistentVolumeSpec is the specification of a persistent volume.RBDPersistentVolumeSourcegetRbd()PersistentVolumeSpec is the specification of a persistent volume.ScaleIOPersistentVolumeSourcegetScaleIO()PersistentVolumeSpec is the specification of a persistent volume.StringgetStorageClassName()storageClassName is the name of StorageClass to which this persistent volume belongs.StorageOSPersistentVolumeSourcegetStorageos()PersistentVolumeSpec is the specification of a persistent volume.StringgetVolumeAttributesClassName()Name of VolumeAttributesClass to which this persistent volume belongs.StringgetVolumeMode()volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.VsphereVirtualDiskVolumeSourcegetVsphereVolume()PersistentVolumeSpec is the specification of a persistent volume.voidsetAccessModes(List<String> accessModes)accessModes contains all ways the volume can be mounted.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAwsElasticBlockStore(AWSElasticBlockStoreVolumeSource awsElasticBlockStore)PersistentVolumeSpec is the specification of a persistent volume.voidsetAzureDisk(AzureDiskVolumeSource azureDisk)PersistentVolumeSpec is the specification of a persistent volume.voidsetAzureFile(AzureFilePersistentVolumeSource azureFile)PersistentVolumeSpec is the specification of a persistent volume.voidsetCapacity(Map<String,Quantity> capacity)capacity is the description of the persistent volume's resources and capacity.voidsetCephfs(CephFSPersistentVolumeSource cephfs)PersistentVolumeSpec is the specification of a persistent volume.voidsetCinder(CinderPersistentVolumeSource cinder)PersistentVolumeSpec is the specification of a persistent volume.voidsetClaimRef(ObjectReference claimRef)PersistentVolumeSpec is the specification of a persistent volume.voidsetCsi(CSIPersistentVolumeSource csi)PersistentVolumeSpec is the specification of a persistent volume.voidsetFc(FCVolumeSource fc)PersistentVolumeSpec is the specification of a persistent volume.voidsetFlexVolume(FlexPersistentVolumeSource flexVolume)PersistentVolumeSpec is the specification of a persistent volume.voidsetFlocker(FlockerVolumeSource flocker)PersistentVolumeSpec is the specification of a persistent volume.voidsetGcePersistentDisk(GCEPersistentDiskVolumeSource gcePersistentDisk)PersistentVolumeSpec is the specification of a persistent volume.voidsetGlusterfs(GlusterfsPersistentVolumeSource glusterfs)PersistentVolumeSpec is the specification of a persistent volume.voidsetHostPath(HostPathVolumeSource hostPath)PersistentVolumeSpec is the specification of a persistent volume.voidsetIscsi(ISCSIPersistentVolumeSource iscsi)PersistentVolumeSpec is the specification of a persistent volume.voidsetLocal(LocalVolumeSource local)PersistentVolumeSpec is the specification of a persistent volume.voidsetMountOptions(List<String> mountOptions)mountOptions is the list of mount options, e.g.voidsetNfs(NFSVolumeSource nfs)PersistentVolumeSpec is the specification of a persistent volume.voidsetNodeAffinity(VolumeNodeAffinity nodeAffinity)PersistentVolumeSpec is the specification of a persistent volume.voidsetPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy)persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.voidsetPhotonPersistentDisk(PhotonPersistentDiskVolumeSource photonPersistentDisk)PersistentVolumeSpec is the specification of a persistent volume.voidsetPortworxVolume(PortworxVolumeSource portworxVolume)PersistentVolumeSpec is the specification of a persistent volume.voidsetQuobyte(QuobyteVolumeSource quobyte)PersistentVolumeSpec is the specification of a persistent volume.voidsetRbd(RBDPersistentVolumeSource rbd)PersistentVolumeSpec is the specification of a persistent volume.voidsetScaleIO(ScaleIOPersistentVolumeSource scaleIO)PersistentVolumeSpec is the specification of a persistent volume.voidsetStorageClassName(String storageClassName)storageClassName is the name of StorageClass to which this persistent volume belongs.voidsetStorageos(StorageOSPersistentVolumeSource storageos)PersistentVolumeSpec is the specification of a persistent volume.voidsetVolumeAttributesClassName(String volumeAttributesClassName)Name of VolumeAttributesClass to which this persistent volume belongs.voidsetVolumeMode(String volumeMode)volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.voidsetVsphereVolume(VsphereVirtualDiskVolumeSource vsphereVolume)PersistentVolumeSpec is the specification of a persistent volume.PersistentVolumeSpecBuildertoBuilder()
-
-
-
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.
-
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.
-
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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PersistentVolumeSpecBuilder>
-
toBuilder
public PersistentVolumeSpecBuilder toBuilder()
-
-