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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessModes
(List<String> accessModes) Set accessModes in a chainable fashion.addaccessModesItem
(String accessModesItem) Add an item to the accessModes property in a chainable fashion.dataSource
(V1TypedLocalObjectReference dataSource) Set dataSource in a chainable fashion.dataSourceRef
(V1TypedObjectReference dataSourceRef) Set dataSourceRef in a chainable fashion.boolean
accessModes contains the desired access modes the volume should have.storageClassName is the name of the StorageClass required by the claim.volumeMode defines what type of volume is required by the claim.volumeName is the binding reference to the PersistentVolume backing this claim.int
hashCode()
resources
(V1ResourceRequirements resources) Set resources in a chainable fashion.selector
(V1LabelSelector selector) Set selector in a chainable fashion.void
setAccessModes
(List<String> accessModes) Set the accessModes property valuevoid
setDataSource
(V1TypedLocalObjectReference dataSource) Set the dataSource property valuevoid
setDataSourceRef
(V1TypedObjectReference dataSourceRef) Set the dataSourceRef property valuevoid
setResources
(V1ResourceRequirements resources) Set the resources property valuevoid
setSelector
(V1LabelSelector selector) Set the selector property valuevoid
setStorageClassName
(String storageClassName) Set the storageClassName property valuevoid
setVolumeMode
(String volumeMode) Set the volumeMode property valuevoid
setVolumeName
(String volumeName) Set the volumeName property valuestorageClassName
(String storageClassName) Set storageClassName in a chainable fashion.toString()
volumeMode
(String volumeMode) Set volumeMode in a chainable fashion.volumeName
(String volumeName) Set volumeName in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ACCESS_MODES
- See Also:
-
JSON_PROPERTY_DATA_SOURCE
- See Also:
-
JSON_PROPERTY_DATA_SOURCE_REF
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_SELECTOR
- See Also:
-
JSON_PROPERTY_STORAGE_CLASS_NAME
- See Also:
-
JSON_PROPERTY_VOLUME_MODE
- See Also:
-
JSON_PROPERTY_VOLUME_NAME
- See Also:
-
-
Constructor Details
-
V1PersistentVolumeClaimSpec
public V1PersistentVolumeClaimSpec()
-
-
Method Details
-
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
Set the accessModes property value -
accessModes
Set accessModes in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
addaccessModesItem
Add an item to the accessModes property in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
getDataSource
- Returns:
- the dataSource property value
-
setDataSource
Set the dataSource property value -
dataSource
Set dataSource in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
getDataSourceRef
- Returns:
- the dataSourceRef property value
-
setDataSourceRef
Set the dataSourceRef property value -
dataSourceRef
Set dataSourceRef in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
getResources
- Returns:
- the resources property value
-
setResources
Set the resources property value -
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
getSelector
- Returns:
- the selector property value
-
setSelector
Set the selector property value -
selector
Set selector in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
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
Set the storageClassName property value -
storageClassName
Set storageClassName in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
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
Set the volumeMode property value -
volumeMode
Set volumeMode in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
getVolumeName
volumeName is the binding reference to the PersistentVolume backing this claim.- Returns:
- the volumeName property value
-
setVolumeName
Set the volumeName property value -
volumeName
Set volumeName in a chainable fashion.- Returns:
- The same instance of V1PersistentVolumeClaimSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-