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 Details

  • Constructor Details

    • V1PersistentVolumeSpec

      public V1PersistentVolumeSpec()
  • Method Details

    • getAccessModes

      public List<@NotNull String> 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

      public void setAccessModes(List<@NotNull String> accessModes)
      Set the accessModes property value
      Parameters:
      accessModes - property value to set
    • accessModes

      public V1PersistentVolumeSpec accessModes(List<@NotNull String> accessModes)
      Set accessModes in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • addaccessModesItem

      public V1PersistentVolumeSpec addaccessModesItem(String accessModesItem)
      Add an item to the accessModes property in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getAwsElasticBlockStore

      public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore()
      Returns:
      the awsElasticBlockStore property value
    • setAwsElasticBlockStore

      public void setAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore)
      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

      public V1AzureDiskVolumeSource getAzureDisk()
      Returns:
      the azureDisk property value
    • setAzureDisk

      public void setAzureDisk(V1AzureDiskVolumeSource azureDisk)
      Set the azureDisk property value
      Parameters:
      azureDisk - property value to set
    • azureDisk

      public V1PersistentVolumeSpec azureDisk(V1AzureDiskVolumeSource azureDisk)
      Set azureDisk in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getAzureFile

      public V1AzureFilePersistentVolumeSource getAzureFile()
      Returns:
      the azureFile property value
    • setAzureFile

      public void setAzureFile(V1AzureFilePersistentVolumeSource azureFile)
      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

      public Map<String,@NotNull String> 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

      public void setCapacity(Map<String,@NotNull String> capacity)
      Set the capacity property value
      Parameters:
      capacity - property value to set
    • capacity

      public V1PersistentVolumeSpec capacity(Map<String,@NotNull String> capacity)
      Set capacity in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • putcapacityItem

      public V1PersistentVolumeSpec putcapacityItem(String key, String capacityItem)
      Set the value for the key for the capacity map property in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getCephfs

      public V1CephFSPersistentVolumeSource getCephfs()
      Returns:
      the cephfs property value
    • setCephfs

      public void setCephfs(V1CephFSPersistentVolumeSource cephfs)
      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

      public V1CinderPersistentVolumeSource getCinder()
      Returns:
      the cinder property value
    • setCinder

      public void setCinder(V1CinderPersistentVolumeSource cinder)
      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

      public V1ObjectReference getClaimRef()
      Returns:
      the claimRef property value
    • setClaimRef

      public void setClaimRef(V1ObjectReference claimRef)
      Set the claimRef property value
      Parameters:
      claimRef - property value to set
    • claimRef

      public V1PersistentVolumeSpec claimRef(V1ObjectReference claimRef)
      Set claimRef in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getCsi

      public V1CSIPersistentVolumeSource getCsi()
      Returns:
      the csi property value
    • setCsi

      public void setCsi(V1CSIPersistentVolumeSource csi)
      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

      public V1FCVolumeSource getFc()
      Returns:
      the fc property value
    • setFc

      public void setFc(V1FCVolumeSource fc)
      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

      public V1FlexPersistentVolumeSource getFlexVolume()
      Returns:
      the flexVolume property value
    • setFlexVolume

      public void setFlexVolume(V1FlexPersistentVolumeSource flexVolume)
      Set the flexVolume property value
      Parameters:
      flexVolume - property value to set
    • flexVolume

      public V1PersistentVolumeSpec flexVolume(V1FlexPersistentVolumeSource flexVolume)
      Set flexVolume in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getFlocker

      public V1FlockerVolumeSource getFlocker()
      Returns:
      the flocker property value
    • setFlocker

      public void setFlocker(V1FlockerVolumeSource flocker)
      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

      public V1GCEPersistentDiskVolumeSource getGcePersistentDisk()
      Returns:
      the gcePersistentDisk property value
    • setGcePersistentDisk

      public void setGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk)
      Set the gcePersistentDisk property value
      Parameters:
      gcePersistentDisk - property value to set
    • gcePersistentDisk

      public V1PersistentVolumeSpec gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk)
      Set gcePersistentDisk in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getGlusterfs

      public V1GlusterfsPersistentVolumeSource getGlusterfs()
      Returns:
      the glusterfs property value
    • setGlusterfs

      public void setGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs)
      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

      public V1HostPathVolumeSource getHostPath()
      Returns:
      the hostPath property value
    • setHostPath

      public void setHostPath(V1HostPathVolumeSource hostPath)
      Set the hostPath property value
      Parameters:
      hostPath - property value to set
    • hostPath

      public V1PersistentVolumeSpec hostPath(V1HostPathVolumeSource hostPath)
      Set hostPath in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getIscsi

      public V1ISCSIPersistentVolumeSource getIscsi()
      Returns:
      the iscsi property value
    • setIscsi

      public void setIscsi(V1ISCSIPersistentVolumeSource iscsi)
      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

      public V1LocalVolumeSource getLocal()
      Returns:
      the local property value
    • setLocal

      public void setLocal(V1LocalVolumeSource local)
      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

      public List<@NotNull 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
      Returns:
      the mountOptions property value
    • setMountOptions

      public void setMountOptions(List<@NotNull String> mountOptions)
      Set the mountOptions property value
      Parameters:
      mountOptions - property value to set
    • mountOptions

      public V1PersistentVolumeSpec mountOptions(List<@NotNull String> mountOptions)
      Set mountOptions in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • addmountOptionsItem

      public V1PersistentVolumeSpec addmountOptionsItem(String mountOptionsItem)
      Add an item to the mountOptions property in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getNfs

      public V1NFSVolumeSource getNfs()
      Returns:
      the nfs property value
    • setNfs

      public void setNfs(V1NFSVolumeSource nfs)
      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

      public V1VolumeNodeAffinity getNodeAffinity()
      Returns:
      the nodeAffinity property value
    • setNodeAffinity

      public void setNodeAffinity(V1VolumeNodeAffinity nodeAffinity)
      Set the nodeAffinity property value
      Parameters:
      nodeAffinity - property value to set
    • nodeAffinity

      public V1PersistentVolumeSpec nodeAffinity(V1VolumeNodeAffinity nodeAffinity)
      Set nodeAffinity in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • 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
      Returns:
      the persistentVolumeReclaimPolicy property value
    • setPersistentVolumeReclaimPolicy

      public void setPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy)
      Set the persistentVolumeReclaimPolicy property value
      Parameters:
      persistentVolumeReclaimPolicy - property value to set
    • persistentVolumeReclaimPolicy

      public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy)
      Set persistentVolumeReclaimPolicy in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getPhotonPersistentDisk

      public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk()
      Returns:
      the photonPersistentDisk property value
    • setPhotonPersistentDisk

      public void setPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk)
      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

      public V1PortworxVolumeSource getPortworxVolume()
      Returns:
      the portworxVolume property value
    • setPortworxVolume

      public void setPortworxVolume(V1PortworxVolumeSource portworxVolume)
      Set the portworxVolume property value
      Parameters:
      portworxVolume - property value to set
    • portworxVolume

      public V1PersistentVolumeSpec portworxVolume(V1PortworxVolumeSource portworxVolume)
      Set portworxVolume in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getQuobyte

      public V1QuobyteVolumeSource getQuobyte()
      Returns:
      the quobyte property value
    • setQuobyte

      public void setQuobyte(V1QuobyteVolumeSource quobyte)
      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

      public V1RBDPersistentVolumeSource getRbd()
      Returns:
      the rbd property value
    • setRbd

      public void setRbd(V1RBDPersistentVolumeSource rbd)
      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

      public V1ScaleIOPersistentVolumeSource getScaleIO()
      Returns:
      the scaleIO property value
    • setScaleIO

      public void setScaleIO(V1ScaleIOPersistentVolumeSource scaleIO)
      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

      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.
      Returns:
      the storageClassName property value
    • setStorageClassName

      public void setStorageClassName(String storageClassName)
      Set the storageClassName property value
      Parameters:
      storageClassName - property value to set
    • storageClassName

      public V1PersistentVolumeSpec storageClassName(String storageClassName)
      Set storageClassName in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getStorageos

      public V1StorageOSPersistentVolumeSource getStorageos()
      Returns:
      the storageos property value
    • setStorageos

      public void setStorageos(V1StorageOSPersistentVolumeSource storageos)
      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

      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.
      Returns:
      the volumeMode property value
    • setVolumeMode

      public void setVolumeMode(String volumeMode)
      Set the volumeMode property value
      Parameters:
      volumeMode - property value to set
    • volumeMode

      public V1PersistentVolumeSpec volumeMode(String volumeMode)
      Set volumeMode in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • getVsphereVolume

      public V1VsphereVirtualDiskVolumeSource getVsphereVolume()
      Returns:
      the vsphereVolume property value
    • setVsphereVolume

      public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume)
      Set the vsphereVolume property value
      Parameters:
      vsphereVolume - property value to set
    • vsphereVolume

      public V1PersistentVolumeSpec vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume)
      Set vsphereVolume in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeSpec for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object