Class V1PersistentVolumeClaimSpec

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PersistentVolumeClaimSpec

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PersistentVolumeClaimSpec extends Object
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
  • Field Details

  • Constructor Details

    • V1PersistentVolumeClaimSpec

      public V1PersistentVolumeClaimSpec()
  • Method Details

    • getAccessModes

      public List<String> getAccessModes()
      accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
      Returns:
      the accessModes property value
    • setAccessModes

      public void setAccessModes(List<String> accessModes)
      Set the accessModes property value
    • accessModes

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

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

      public V1TypedLocalObjectReference getDataSource()
      Returns:
      the dataSource property value
    • setDataSource

      public void setDataSource(V1TypedLocalObjectReference dataSource)
      Set the dataSource property value
    • dataSource

      Set dataSource in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimSpec for chaining.
    • getDataSourceRef

      public V1TypedObjectReference getDataSourceRef()
      Returns:
      the dataSourceRef property value
    • setDataSourceRef

      public void setDataSourceRef(V1TypedObjectReference dataSourceRef)
      Set the dataSourceRef property value
    • dataSourceRef

      public V1PersistentVolumeClaimSpec dataSourceRef(V1TypedObjectReference dataSourceRef)
      Set dataSourceRef in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimSpec for chaining.
    • getResources

      public V1ResourceRequirements getResources()
      Returns:
      the resources property value
    • setResources

      public void setResources(V1ResourceRequirements resources)
      Set the resources property value
    • resources

      Set resources in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimSpec for chaining.
    • getSelector

      public V1LabelSelector getSelector()
      Returns:
      the selector property value
    • setSelector

      public void setSelector(V1LabelSelector selector)
      Set the selector property value
    • selector

      public V1PersistentVolumeClaimSpec selector(V1LabelSelector selector)
      Set selector in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimSpec for chaining.
    • getStorageClassName

      public String getStorageClassName()
      storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
      Returns:
      the storageClassName property value
    • setStorageClassName

      public void setStorageClassName(String storageClassName)
      Set the storageClassName property value
    • storageClassName

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

      public String getVolumeMode()
      volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
      Returns:
      the volumeMode property value
    • setVolumeMode

      public void setVolumeMode(String volumeMode)
      Set the volumeMode property value
    • volumeMode

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

      public String getVolumeName()
      volumeName is the binding reference to the PersistentVolume backing this claim.
      Returns:
      the volumeName property value
    • setVolumeName

      public void setVolumeName(String volumeName)
      Set the volumeName property value
    • volumeName

      public V1PersistentVolumeClaimSpec volumeName(String volumeName)
      Set volumeName in a chainable fashion.
      Returns:
      The same instance of V1PersistentVolumeClaimSpec 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