Package org.cdk8s.plus24
Class PersistentVolumeClaimProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.plus24.PersistentVolumeClaimProps
PersistentVolumeClaimProps.Builder, PersistentVolumeClaimProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(PersistentVolumeClaimProps.Builder builder)
Constructor that initializes the object based on literal property values passed by thePersistentVolumeClaimProps.Builder
.protected
Jsii$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()
boolean
equals(Object o)
List<PersistentVolumeAccessMode>
getAccessModes()
Contains the access modes the volume should support.org.cdk8s.ApiObjectMetadata
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.org.cdk8s.Size
getStorage()
Minimum storage size the volume should have.String
getStorageClassName()
Name of the StorageClass required by the claim.IPersistentVolume
getVolume()
The PersistentVolume backing this claim.PersistentVolumeMode
getVolumeMode()
Defines what type of volume is required by the claim.int
hashCode()
-
-
-
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:PersistentVolumeClaimProps
Contains the access modes the volume should support.Default: - No access modes requirement.
- Specified by:
getAccessModes
in 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:PersistentVolumeClaimProps
Minimum storage size the volume should have.Default: - No storage requirement.
- Specified by:
getStorage
in interfacePersistentVolumeClaimProps
- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
-
getStorageClassName
public final String getStorageClassName()
Description copied from interface:PersistentVolumeClaimProps
Name 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:
getStorageClassName
in interfacePersistentVolumeClaimProps
- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
-
getVolume
public final IPersistentVolume getVolume()
Description copied from interface:PersistentVolumeClaimProps
The 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
claimRef
referring 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:
getVolume
in interfacePersistentVolumeClaimProps
- See Also:
- https://kubernetes.io/docs/concepts/storage/persistent-volumes/#binding.
-
getVolumeMode
public final PersistentVolumeMode getVolumeMode()
Description copied from interface:PersistentVolumeClaimProps
Defines what type of volume is required by the claim.Default: VolumeMode.FILE_SYSTEM
- Specified by:
getVolumeMode
in interfacePersistentVolumeClaimProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourceProps
Metadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadata
in interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-