Package kubevirt.io
Class V1PersistentVolumeClaimSpec
java.lang.Object
kubevirt.io.V1PersistentVolumeClaimSpec
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1PersistentVolumeClaimSpec
extends Object
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate V1TypedLocalObjectReferenceprivate V1ResourceRequirementsprivate V1LabelSelectorprivate Stringprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessModes(List<String> accessModes) addAccessModesItem(String accessModesItem) dataSource(V1TypedLocalObjectReference dataSource) booleanAccessModes contains the desired access modes the volume should have.This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source.Resources represents the minimum resources the volume should have.A label query over volumes to consider for binding.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.inthashCode()resources(V1ResourceRequirements resources) selector(V1LabelSelector selector) voidsetAccessModes(List<String> accessModes) voidsetDataSource(V1TypedLocalObjectReference dataSource) voidsetResources(V1ResourceRequirements resources) voidsetSelector(V1LabelSelector selector) voidsetStorageClassName(String storageClassName) voidsetVolumeMode(String volumeMode) voidsetVolumeName(String volumeName) storageClassName(String storageClassName) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()volumeMode(String volumeMode) volumeName(String volumeName)
-
Field Details
-
accessModes
-
dataSource
-
resources
-
selector
-
storageClassName
-
volumeMode
-
volumeName
-
-
Constructor Details
-
V1PersistentVolumeClaimSpec
public V1PersistentVolumeClaimSpec()
-
-
Method Details
-
accessModes
-
addAccessModesItem
-
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:
- accessModes
-
setAccessModes
-
dataSource
-
getDataSource
This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.- Returns:
- dataSource
-
setDataSource
-
resources
-
getResources
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources- Returns:
- resources
-
setResources
-
selector
-
getSelector
A label query over volumes to consider for binding.- Returns:
- selector
-
setSelector
-
storageClassName
-
getStorageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1- Returns:
- storageClassName
-
setStorageClassName
-
volumeMode
-
getVolumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.- Returns:
- volumeMode
-
setVolumeMode
-
volumeName
-
getVolumeName
VolumeName is the binding reference to the PersistentVolume backing this claim.- Returns:
- volumeName
-
setVolumeName
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-