@Stability(value=Stable) public static final class VolumeMount.Builder extends Object implements software.amazon.jsii.Builder<VolumeMount>
VolumeMount| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
VolumeMount |
build()
Builds the configured instance.
|
VolumeMount.Builder |
path(String path)
Sets the value of
VolumeMount.getPath() |
VolumeMount.Builder |
propagation(MountPropagation propagation)
Sets the value of
MountOptions.getPropagation() |
VolumeMount.Builder |
readOnly(Boolean readOnly)
Sets the value of
MountOptions.getReadOnly() |
VolumeMount.Builder |
subPath(String subPath)
Sets the value of
MountOptions.getSubPath() |
VolumeMount.Builder |
subPathExpr(String subPathExpr)
Sets the value of
MountOptions.getSubPathExpr() |
VolumeMount.Builder |
volume(Volume volume)
Sets the value of
VolumeMount.getVolume() |
@Stability(value=Stable) public VolumeMount.Builder path(String path)
VolumeMount.getPath()path - Path within the container at which the volume should be mounted. This parameter is required.
Must not
contain ':'.this@Stability(value=Stable) public VolumeMount.Builder volume(Volume volume)
VolumeMount.getVolume()volume - The volume to mount. This parameter is required.this@Stability(value=Stable) public VolumeMount.Builder propagation(MountPropagation propagation)
MountOptions.getPropagation()propagation - 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.
This field is beta in 1.10.
this@Stability(value=Stable) public VolumeMount.Builder readOnly(Boolean readOnly)
MountOptions.getReadOnly()readOnly - Mounted read-only if true, read-write otherwise (false or unspecified).
Defaults to false.this@Stability(value=Stable) public VolumeMount.Builder subPath(String subPath)
MountOptions.getSubPath()subPath - Path within the volume from which the container's volume should be mounted.).this@Stability(value=Stable) public VolumeMount.Builder subPathExpr(String subPathExpr)
MountOptions.getSubPathExpr()subPathExpr - 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. This field
is beta in 1.15.
subPathExpr and subPath are mutually exclusive. This field is beta in
1.15.
this@Stability(value=Stable) public VolumeMount build()
build in interface software.amazon.jsii.Builder<VolumeMount>VolumeMountNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.