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<@NotNull 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<@NotNull String> accessModes)
      Set the accessModes property value
      Parameters:
      accessModes - property value to set
    • accessModes

      public V1PersistentVolumeClaimSpec accessModes(List<@NotNull 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
      Parameters:
      dataSource - property value to set
    • 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
      Parameters:
      dataSourceRef - property value to set
    • 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
      Parameters:
      resources - property value to set
    • 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
      Parameters:
      selector - property value to set
    • 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
      Parameters:
      storageClassName - property value to set
    • 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
      Parameters:
      volumeMode - property value to set
    • 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
      Parameters:
      volumeName - property value to set
    • 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