Class PersistentVolumeClaimProps.Jsii$Proxy

    • 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.
    • Method Detail

      • 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 interface PersistentVolumeClaimProps
      • 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 interface PersistentVolumeClaimProps
      • 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 interface ResourceProps
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object