Package org.cdk8s.plus24
Class VolumeMount.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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 forVolumeMount
-
-
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.VolumeMount
VolumeMount.Builder, VolumeMount.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(VolumeMount.Builder builder)
Constructor that initializes the object based on literal property values passed by theVolumeMount.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)
String
getPath()
Path within the container at which the volume should be mounted.MountPropagation
getPropagation()
Determines how mounts are propagated from the host to container and the other way around.Boolean
getReadOnly()
Mounted read-only if true, read-write otherwise (false or unspecified).String
getSubPath()
Path within the volume from which the container's volume should be mounted.).String
getSubPathExpr()
Expanded path within the volume from which the container's volume should be mounted.Volume
getVolume()
The volume to mount.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(VolumeMount.Builder builder)
Constructor that initializes the object based on literal property values passed by theVolumeMount.Builder
.
-
-
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 interfaceVolumeMount
-
getVolume
public final Volume getVolume()
Description copied from interface:VolumeMount
The volume to mount.- Specified by:
getVolume
in interfaceVolumeMount
-
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 interfaceMountOptions
-
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 interfaceMountOptions
-
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 interfaceMountOptions
-
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
andsubPath
are mutually exclusive.Default: "" volume's root.
- Specified by:
getSubPathExpr
in interfaceMountOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-