Package org.cdk8s.plus23
Class PersistentVolumeClaimProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.PersistentVolumeClaimProps.Jsii$Proxy
-
- All Implemented Interfaces:
PersistentVolumeClaimProps,ResourceProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PersistentVolumeClaimProps
@Stability(Stable) @Internal public static final class PersistentVolumeClaimProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PersistentVolumeClaimProps
An implementation forPersistentVolumeClaimProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus23.PersistentVolumeClaimProps
PersistentVolumeClaimProps.Builder, PersistentVolumeClaimProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PersistentVolumeClaimProps.Builder builder)Constructor that initializes the object based on literal property values passed by thePersistentVolumeClaimProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<PersistentVolumeAccessMode>getAccessModes()Contains the access modes the volume should support.org.cdk8s.ApiObjectMetadatagetMetadata()Metadata that all persisted resources must have, which includes all objects users must create.org.cdk8s.SizegetStorage()Minimum storage size the volume should have.StringgetStorageClassName()Name of the StorageClass required by the claim.IPersistentVolumegetVolume()The PersistentVolume backing this claim.PersistentVolumeModegetVolumeMode()Defines what type of volume is required by the claim.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PersistentVolumeClaimProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePersistentVolumeClaimProps.Builder.
-
-
Method Detail
-
getAccessModes
public final List<PersistentVolumeAccessMode> getAccessModes()
Description copied from interface:PersistentVolumeClaimPropsContains the access modes the volume should support.Default: - No access modes requirement.
- Specified by:
getAccessModesin interfacePersistentVolumeClaimProps- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
-
getStorage
public final org.cdk8s.Size getStorage()
Description copied from interface:PersistentVolumeClaimPropsMinimum storage size the volume should have.Default: - No storage requirement.
- Specified by:
getStoragein interfacePersistentVolumeClaimProps- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
-
getStorageClassName
public final String getStorageClassName()
Description copied from interface:PersistentVolumeClaimPropsName of the StorageClass required by the claim. When this property is not set, the behavior is as follows:.- If the admission plugin is turned on, the storage class marked as default will be used.
- If the admission plugin is turned off, the pvc can only be bound to volumes without a storage class.
Default: - Not set.
- Specified by:
getStorageClassNamein interfacePersistentVolumeClaimProps- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
-
getVolume
public final IPersistentVolume getVolume()
Description copied from interface:PersistentVolumeClaimPropsThe PersistentVolume backing this claim.The control plane still checks that storage class, access modes, and requested storage size on the volume are valid.
Note that in order to guarantee a proper binding, the volume should also define a
claimRefreferring to this claim. Otherwise, the volume may be claimed be other pvc's before it gets a chance to bind to this one.If the volume is managed (i.e not imported), you can use
pv.claim()to easily create a bi-directional bounded claim.Default: - No specific volume binding.
- Specified by:
getVolumein interfacePersistentVolumeClaimProps- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes/#binding.
-
getVolumeMode
public final PersistentVolumeMode getVolumeMode()
Description copied from interface:PersistentVolumeClaimPropsDefines what type of volume is required by the claim.Default: VolumeMode.FILE_SYSTEM
- Specified by:
getVolumeModein interfacePersistentVolumeClaimProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourcePropsMetadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadatain interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-