Class V1PersistentVolumeSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PersistentVolumeSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1PersistentVolumeSpec
extends Object
PersistentVolumeSpec is the specification of a persistent volume.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessModes
(List<@NotNull String> accessModes) Set accessModes in a chainable fashion.addaccessModesItem
(String accessModesItem) Add an item to the accessModes property in a chainable fashion.addmountOptionsItem
(String mountOptionsItem) Add an item to the mountOptions property in a chainable fashion.awsElasticBlockStore
(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) Set awsElasticBlockStore in a chainable fashion.azureDisk
(V1AzureDiskVolumeSource azureDisk) Set azureDisk in a chainable fashion.azureFile
(V1AzureFilePersistentVolumeSource azureFile) Set azureFile in a chainable fashion.Set capacity in a chainable fashion.cephfs
(V1CephFSPersistentVolumeSource cephfs) Set cephfs in a chainable fashion.cinder
(V1CinderPersistentVolumeSource cinder) Set cinder in a chainable fashion.claimRef
(V1ObjectReference claimRef) Set claimRef in a chainable fashion.Set csi in a chainable fashion.boolean
fc
(V1FCVolumeSource fc) Set fc in a chainable fashion.flexVolume
(V1FlexPersistentVolumeSource flexVolume) Set flexVolume in a chainable fashion.flocker
(V1FlockerVolumeSource flocker) Set flocker in a chainable fashion.gcePersistentDisk
(V1GCEPersistentDiskVolumeSource gcePersistentDisk) Set gcePersistentDisk in a chainable fashion.accessModes contains all ways the volume can be mounted.capacity is the description of the persistent volume's resources and capacity.getCsi()
getFc()
getIscsi()
getLocal()
mountOptions is the list of mount options, e.g.getNfs()
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.getRbd()
storageClassName is the name of StorageClass to which this persistent volume belongs.volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.glusterfs
(V1GlusterfsPersistentVolumeSource glusterfs) Set glusterfs in a chainable fashion.int
hashCode()
hostPath
(V1HostPathVolumeSource hostPath) Set hostPath in a chainable fashion.Set iscsi in a chainable fashion.local
(V1LocalVolumeSource local) Set local in a chainable fashion.mountOptions
(List<@NotNull String> mountOptions) Set mountOptions in a chainable fashion.nfs
(V1NFSVolumeSource nfs) Set nfs in a chainable fashion.nodeAffinity
(V1VolumeNodeAffinity nodeAffinity) Set nodeAffinity in a chainable fashion.persistentVolumeReclaimPolicy
(String persistentVolumeReclaimPolicy) Set persistentVolumeReclaimPolicy in a chainable fashion.photonPersistentDisk
(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) Set photonPersistentDisk in a chainable fashion.portworxVolume
(V1PortworxVolumeSource portworxVolume) Set portworxVolume in a chainable fashion.putcapacityItem
(String key, String capacityItem) Set the value for the key for the capacity map property in a chainable fashion.quobyte
(V1QuobyteVolumeSource quobyte) Set quobyte in a chainable fashion.Set rbd in a chainable fashion.scaleIO
(V1ScaleIOPersistentVolumeSource scaleIO) Set scaleIO in a chainable fashion.void
setAccessModes
(List<@NotNull String> accessModes) Set the accessModes property valuevoid
setAwsElasticBlockStore
(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) Set the awsElasticBlockStore property valuevoid
setAzureDisk
(V1AzureDiskVolumeSource azureDisk) Set the azureDisk property valuevoid
setAzureFile
(V1AzureFilePersistentVolumeSource azureFile) Set the azureFile property valuevoid
setCapacity
(Map<String, @NotNull String> capacity) Set the capacity property valuevoid
Set the cephfs property valuevoid
Set the cinder property valuevoid
setClaimRef
(V1ObjectReference claimRef) Set the claimRef property valuevoid
Set the csi property valuevoid
Set the fc property valuevoid
setFlexVolume
(V1FlexPersistentVolumeSource flexVolume) Set the flexVolume property valuevoid
setFlocker
(V1FlockerVolumeSource flocker) Set the flocker property valuevoid
setGcePersistentDisk
(V1GCEPersistentDiskVolumeSource gcePersistentDisk) Set the gcePersistentDisk property valuevoid
setGlusterfs
(V1GlusterfsPersistentVolumeSource glusterfs) Set the glusterfs property valuevoid
setHostPath
(V1HostPathVolumeSource hostPath) Set the hostPath property valuevoid
Set the iscsi property valuevoid
setLocal
(V1LocalVolumeSource local) Set the local property valuevoid
setMountOptions
(List<@NotNull String> mountOptions) Set the mountOptions property valuevoid
setNfs
(V1NFSVolumeSource nfs) Set the nfs property valuevoid
setNodeAffinity
(V1VolumeNodeAffinity nodeAffinity) Set the nodeAffinity property valuevoid
setPersistentVolumeReclaimPolicy
(String persistentVolumeReclaimPolicy) Set the persistentVolumeReclaimPolicy property valuevoid
setPhotonPersistentDisk
(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) Set the photonPersistentDisk property valuevoid
setPortworxVolume
(V1PortworxVolumeSource portworxVolume) Set the portworxVolume property valuevoid
setQuobyte
(V1QuobyteVolumeSource quobyte) Set the quobyte property valuevoid
Set the rbd property valuevoid
Set the scaleIO property valuevoid
setStorageClassName
(String storageClassName) Set the storageClassName property valuevoid
setStorageos
(V1StorageOSPersistentVolumeSource storageos) Set the storageos property valuevoid
setVolumeMode
(String volumeMode) Set the volumeMode property valuevoid
setVsphereVolume
(V1VsphereVirtualDiskVolumeSource vsphereVolume) Set the vsphereVolume property valuestorageClassName
(String storageClassName) Set storageClassName in a chainable fashion.storageos
(V1StorageOSPersistentVolumeSource storageos) Set storageos in a chainable fashion.toString()
volumeMode
(String volumeMode) Set volumeMode in a chainable fashion.vsphereVolume
(V1VsphereVirtualDiskVolumeSource vsphereVolume) Set vsphereVolume in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ACCESS_MODES
- See Also:
-
JSON_PROPERTY_AWS_ELASTIC_BLOCK_STORE
- See Also:
-
JSON_PROPERTY_AZURE_DISK
- See Also:
-
JSON_PROPERTY_AZURE_FILE
- See Also:
-
JSON_PROPERTY_CAPACITY
- See Also:
-
JSON_PROPERTY_CEPHFS
- See Also:
-
JSON_PROPERTY_CINDER
- See Also:
-
JSON_PROPERTY_CLAIM_REF
- See Also:
-
JSON_PROPERTY_CSI
- See Also:
-
JSON_PROPERTY_FC
- See Also:
-
JSON_PROPERTY_FLEX_VOLUME
- See Also:
-
JSON_PROPERTY_FLOCKER
- See Also:
-
JSON_PROPERTY_GCE_PERSISTENT_DISK
- See Also:
-
JSON_PROPERTY_GLUSTERFS
- See Also:
-
JSON_PROPERTY_HOST_PATH
- See Also:
-
JSON_PROPERTY_ISCSI
- See Also:
-
JSON_PROPERTY_LOCAL
- See Also:
-
JSON_PROPERTY_MOUNT_OPTIONS
- See Also:
-
JSON_PROPERTY_NFS
- See Also:
-
JSON_PROPERTY_NODE_AFFINITY
- See Also:
-
JSON_PROPERTY_PERSISTENT_VOLUME_RECLAIM_POLICY
- See Also:
-
JSON_PROPERTY_PHOTON_PERSISTENT_DISK
- See Also:
-
JSON_PROPERTY_PORTWORX_VOLUME
- See Also:
-
JSON_PROPERTY_QUOBYTE
- See Also:
-
JSON_PROPERTY_RBD
- See Also:
-
JSON_PROPERTY_SCALE_I_O
- See Also:
-
JSON_PROPERTY_STORAGE_CLASS_NAME
- See Also:
-
JSON_PROPERTY_STORAGEOS
- See Also:
-
JSON_PROPERTY_VOLUME_MODE
- See Also:
-
JSON_PROPERTY_VSPHERE_VOLUME
- See Also:
-
-
Constructor Details
-
V1PersistentVolumeSpec
public V1PersistentVolumeSpec()
-
-
Method Details
-
getAccessModes
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes- Returns:
- the accessModes property value
-
setAccessModes
Set the accessModes property value- Parameters:
accessModes
- property value to set
-
accessModes
Set accessModes in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
addaccessModesItem
Add an item to the accessModes property in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getAwsElasticBlockStore
- Returns:
- the awsElasticBlockStore property value
-
setAwsElasticBlockStore
Set the awsElasticBlockStore property value- Parameters:
awsElasticBlockStore
- property value to set
-
awsElasticBlockStore
public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) Set awsElasticBlockStore in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getAzureDisk
- Returns:
- the azureDisk property value
-
setAzureDisk
Set the azureDisk property value- Parameters:
azureDisk
- property value to set
-
azureDisk
Set azureDisk in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getAzureFile
- Returns:
- the azureFile property value
-
setAzureFile
Set the azureFile property value- Parameters:
azureFile
- property value to set
-
azureFile
Set azureFile in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getCapacity
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity- Returns:
- the capacity property value
-
setCapacity
Set the capacity property value- Parameters:
capacity
- property value to set
-
capacity
Set capacity in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
putcapacityItem
Set the value for the key for the capacity map property in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getCephfs
- Returns:
- the cephfs property value
-
setCephfs
Set the cephfs property value- Parameters:
cephfs
- property value to set
-
cephfs
Set cephfs in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getCinder
- Returns:
- the cinder property value
-
setCinder
Set the cinder property value- Parameters:
cinder
- property value to set
-
cinder
Set cinder in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getClaimRef
- Returns:
- the claimRef property value
-
setClaimRef
Set the claimRef property value- Parameters:
claimRef
- property value to set
-
claimRef
Set claimRef in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getCsi
- Returns:
- the csi property value
-
setCsi
Set the csi property value- Parameters:
csi
- property value to set
-
csi
Set csi in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getFc
- Returns:
- the fc property value
-
setFc
Set the fc property value- Parameters:
fc
- property value to set
-
fc
Set fc in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getFlexVolume
- Returns:
- the flexVolume property value
-
setFlexVolume
Set the flexVolume property value- Parameters:
flexVolume
- property value to set
-
flexVolume
Set flexVolume in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getFlocker
- Returns:
- the flocker property value
-
setFlocker
Set the flocker property value- Parameters:
flocker
- property value to set
-
flocker
Set flocker in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getGcePersistentDisk
- Returns:
- the gcePersistentDisk property value
-
setGcePersistentDisk
Set the gcePersistentDisk property value- Parameters:
gcePersistentDisk
- property value to set
-
gcePersistentDisk
Set gcePersistentDisk in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getGlusterfs
- Returns:
- the glusterfs property value
-
setGlusterfs
Set the glusterfs property value- Parameters:
glusterfs
- property value to set
-
glusterfs
Set glusterfs in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getHostPath
- Returns:
- the hostPath property value
-
setHostPath
Set the hostPath property value- Parameters:
hostPath
- property value to set
-
hostPath
Set hostPath in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getIscsi
- Returns:
- the iscsi property value
-
setIscsi
Set the iscsi property value- Parameters:
iscsi
- property value to set
-
iscsi
Set iscsi in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getLocal
- Returns:
- the local property value
-
setLocal
Set the local property value- Parameters:
local
- property value to set
-
local
Set local in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
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- Returns:
- the mountOptions property value
-
setMountOptions
Set the mountOptions property value- Parameters:
mountOptions
- property value to set
-
mountOptions
Set mountOptions in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
addmountOptionsItem
Add an item to the mountOptions property in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getNfs
- Returns:
- the nfs property value
-
setNfs
Set the nfs property value- Parameters:
nfs
- property value to set
-
nfs
Set nfs in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getNodeAffinity
- Returns:
- the nodeAffinity property value
-
setNodeAffinity
Set the nodeAffinity property value- Parameters:
nodeAffinity
- property value to set
-
nodeAffinity
Set nodeAffinity in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
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- Returns:
- the persistentVolumeReclaimPolicy property value
-
setPersistentVolumeReclaimPolicy
Set the persistentVolumeReclaimPolicy property value- Parameters:
persistentVolumeReclaimPolicy
- property value to set
-
persistentVolumeReclaimPolicy
Set persistentVolumeReclaimPolicy in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getPhotonPersistentDisk
- Returns:
- the photonPersistentDisk property value
-
setPhotonPersistentDisk
Set the photonPersistentDisk property value- Parameters:
photonPersistentDisk
- property value to set
-
photonPersistentDisk
public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) Set photonPersistentDisk in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getPortworxVolume
- Returns:
- the portworxVolume property value
-
setPortworxVolume
Set the portworxVolume property value- Parameters:
portworxVolume
- property value to set
-
portworxVolume
Set portworxVolume in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getQuobyte
- Returns:
- the quobyte property value
-
setQuobyte
Set the quobyte property value- Parameters:
quobyte
- property value to set
-
quobyte
Set quobyte in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getRbd
- Returns:
- the rbd property value
-
setRbd
Set the rbd property value- Parameters:
rbd
- property value to set
-
rbd
Set rbd in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getScaleIO
- Returns:
- the scaleIO property value
-
setScaleIO
Set the scaleIO property value- Parameters:
scaleIO
- property value to set
-
scaleIO
Set scaleIO in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
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.- Returns:
- the storageClassName property value
-
setStorageClassName
Set the storageClassName property value- Parameters:
storageClassName
- property value to set
-
storageClassName
Set storageClassName in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getStorageos
- Returns:
- the storageos property value
-
setStorageos
Set the storageos property value- Parameters:
storageos
- property value to set
-
storageos
Set storageos in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
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.- Returns:
- the volumeMode property value
-
setVolumeMode
Set the volumeMode property value- Parameters:
volumeMode
- property value to set
-
volumeMode
Set volumeMode in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
getVsphereVolume
- Returns:
- the vsphereVolume property value
-
setVsphereVolume
Set the vsphereVolume property value- Parameters:
vsphereVolume
- property value to set
-
vsphereVolume
Set vsphereVolume in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-