Class VolumeMount.Jsii$Proxy

  • All Implemented Interfaces:
    MountOptions, VolumeMount, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    VolumeMount

    @Stability(Stable)
    @Internal
    public static final class VolumeMount.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements VolumeMount
    An implementation for VolumeMount
    • 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

      • getPath

        public final String getPath()
        Description copied from interface: VolumeMount
        Path within the container at which the volume should be mounted.

        Must not contain ':'.

        Specified by:
        getPath in interface VolumeMount
      • getPropagation

        public final MountPropagation getPropagation()
        Description copied from interface: MountOptions
        Determines how mounts are propagated from the host to container and the other way around.

        When not set, MountPropagationNone is used.

        Mount propagation allows for sharing volumes mounted by a Container to other Containers in the same Pod, or even to other Pods on the same node.

        Default: MountPropagation.NONE

        Specified by:
        getPropagation in interface MountOptions
      • getReadOnly

        public final Boolean getReadOnly()
        Description copied from interface: MountOptions
        Mounted read-only if true, read-write otherwise (false or unspecified).

        Defaults to false.

        Default: false

        Specified by:
        getReadOnly in interface MountOptions
      • getSubPath

        public final String getSubPath()
        Description copied from interface: MountOptions
        Path within the volume from which the container's volume should be mounted.).

        Default: "" the volume's root

        Specified by:
        getSubPath in interface MountOptions
      • getSubPathExpr

        public final String getSubPathExpr()
        Description copied from interface: MountOptions
        Expanded path within the volume from which the container's volume should be mounted.

        Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).

        subPathExpr and subPath are mutually exclusive.

        Default: "" volume's root.

        Specified by:
        getSubPathExpr in interface MountOptions
      • $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