Package io.fabric8.kubernetes.api.model
Class PersistentVolumeClaimSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.PersistentVolumeClaimSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PersistentVolumeClaimSpecBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PersistentVolumeClaimSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<PersistentVolumeClaimSpecBuilder>, KubernetesResource
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PersistentVolumeClaimSpec()
No args constructor for use in serializationPersistentVolumeClaimSpec(List<String> accessModes, TypedLocalObjectReference dataSource, TypedObjectReference dataSourceRef, VolumeResourceRequirements resources, LabelSelector selector, String storageClassName, String volumeAttributesClassName, String volumeMode, String volumeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentVolumeClaimSpecBuilder
edit()
List<String>
getAccessModes()
accessModes contains the desired access modes the volume should have.Map<String,Object>
getAdditionalProperties()
TypedLocalObjectReference
getDataSource()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesTypedObjectReference
getDataSourceRef()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesVolumeResourceRequirements
getResources()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesLabelSelector
getSelector()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesString
getStorageClassName()
storageClassName is the name of the StorageClass required by the claim.String
getVolumeAttributesClassName()
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.String
getVolumeMode()
volumeMode defines what type of volume is required by the claim.String
getVolumeName()
volumeName is the binding reference to the PersistentVolume backing this claim.void
setAccessModes(List<String> accessModes)
accessModes contains the desired access modes the volume should have.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setDataSource(TypedLocalObjectReference dataSource)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesvoid
setDataSourceRef(TypedObjectReference dataSourceRef)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesvoid
setResources(VolumeResourceRequirements resources)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesvoid
setSelector(LabelSelector selector)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributesvoid
setStorageClassName(String storageClassName)
storageClassName is the name of the StorageClass required by the claim.void
setVolumeAttributesClassName(String volumeAttributesClassName)
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.void
setVolumeMode(String volumeMode)
volumeMode defines what type of volume is required by the claim.void
setVolumeName(String volumeName)
volumeName is the binding reference to the PersistentVolume backing this claim.PersistentVolumeClaimSpecBuilder
toBuilder()
-
-
-
Constructor Detail
-
PersistentVolumeClaimSpec
public PersistentVolumeClaimSpec()
No args constructor for use in serialization
-
PersistentVolumeClaimSpec
public PersistentVolumeClaimSpec(List<String> accessModes, TypedLocalObjectReference dataSource, TypedObjectReference dataSourceRef, VolumeResourceRequirements resources, LabelSelector selector, String storageClassName, String volumeAttributesClassName, String volumeMode, String volumeName)
-
-
Method Detail
-
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
-
setAccessModes
public void setAccessModes(List<String> accessModes)
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
-
getDataSource
public TypedLocalObjectReference getDataSource()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
setDataSource
public void setDataSource(TypedLocalObjectReference dataSource)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
getDataSourceRef
public TypedObjectReference getDataSourceRef()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
setDataSourceRef
public void setDataSourceRef(TypedObjectReference dataSourceRef)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
getResources
public VolumeResourceRequirements getResources()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
setResources
public void setResources(VolumeResourceRequirements resources)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
getSelector
public LabelSelector getSelector()
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
setSelector
public void setSelector(LabelSelector selector)
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
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
-
setStorageClassName
public void setStorageClassName(String storageClassName)
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
-
getVolumeAttributesClassName
public String getVolumeAttributesClassName()
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
-
setVolumeAttributesClassName
public void setVolumeAttributesClassName(String volumeAttributesClassName)
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
-
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.
-
setVolumeMode
public void setVolumeMode(String volumeMode)
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
-
getVolumeName
public String getVolumeName()
volumeName is the binding reference to the PersistentVolume backing this claim.
-
setVolumeName
public void setVolumeName(String volumeName)
volumeName is the binding reference to the PersistentVolume backing this claim.
-
edit
public PersistentVolumeClaimSpecBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<PersistentVolumeClaimSpecBuilder>
-
toBuilder
public PersistentVolumeClaimSpecBuilder toBuilder()
-
-