Package org.cdk8s.plus24
Interface PersistentVolumeProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,ResourceProps
- All Known Subinterfaces:
AwsElasticBlockStorePersistentVolumeProps
,AzureDiskPersistentVolumeProps
,GCEPersistentDiskPersistentVolumeProps
- All Known Implementing Classes:
AwsElasticBlockStorePersistentVolumeProps.Jsii$Proxy
,AzureDiskPersistentVolumeProps.Jsii$Proxy
,GCEPersistentDiskPersistentVolumeProps.Jsii$Proxy
,PersistentVolumeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-11-24T11:18:28.493Z") @Stability(Stable) public interface PersistentVolumeProps extends software.amazon.jsii.JsiiSerializable, ResourceProps
Properties for `PersistentVolume`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistentVolumeProps.Builder
A builder forPersistentVolumeProps
static class
PersistentVolumeProps.Jsii$Proxy
An implementation forPersistentVolumeProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PersistentVolumeProps.Builder
builder()
default List<PersistentVolumeAccessMode>
getAccessModes()
Contains all ways the volume can be mounted.default IPersistentVolumeClaim
getClaim()
Part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.default List<String>
getMountOptions()
A list of mount options, e.g.default PersistentVolumeReclaimPolicy
getReclaimPolicy()
When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource.default org.cdk8s.Size
getStorage()
What is the storage capacity of this volume.default String
getStorageClassName()
Name of StorageClass to which this persistent volume belongs.default PersistentVolumeMode
getVolumeMode()
Defines what type of volume is required by the claim.-
Methods inherited from interface org.cdk8s.plus24.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getAccessModes
@Stability(Stable) @Nullable default List<PersistentVolumeAccessMode> getAccessModes()
Contains all ways the volume can be mounted.Default: - No access modes.
-
getClaim
@Stability(Stable) @Nullable default IPersistentVolumeClaim getClaim()
Part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.Expected to be non-nil when bound.
Default: - Not bound to a specific claim.
-
getMountOptions
@Stability(Stable) @Nullable default List<String> getMountOptions()
A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid.Default: - No options.
-
getReclaimPolicy
@Stability(Stable) @Nullable default PersistentVolumeReclaimPolicy getReclaimPolicy()
When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource.The reclaim policy tells the cluster what to do with the volume after it has been released of its claim.
Default: PersistentVolumeReclaimPolicy.RETAIN
-
getStorage
@Stability(Stable) @Nullable default org.cdk8s.Size getStorage()
What is the storage capacity of this volume.Default: - No specified.
-
getStorageClassName
@Stability(Stable) @Nullable default String getStorageClassName()
Name of StorageClass to which this persistent volume belongs.Default: - Volume does not belong to any storage class.
-
getVolumeMode
@Stability(Stable) @Nullable default PersistentVolumeMode getVolumeMode()
Defines what type of volume is required by the claim.Default: VolumeMode.FILE_SYSTEM
-
builder
@Stability(Stable) static PersistentVolumeProps.Builder builder()
- Returns:
- a
PersistentVolumeProps.Builder
ofPersistentVolumeProps
-
-