@Stability(value=Stable) public static final class MountPoint.Builder extends Object implements software.amazon.jsii.Builder<MountPoint>
MountPoint
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MountPoint |
build()
Builds the configured instance.
|
MountPoint.Builder |
containerPath(String containerPath)
Sets the value of
MountPoint.getContainerPath() |
MountPoint.Builder |
readOnly(Boolean readOnly)
Sets the value of
MountPoint.getReadOnly() |
MountPoint.Builder |
sourceVolume(String sourceVolume)
Sets the value of
MountPoint.getSourceVolume() |
@Stability(value=Stable) public MountPoint.Builder containerPath(String containerPath)
MountPoint.getContainerPath()
containerPath
- The path on the container to mount the host volume at. This parameter is required.this
@Stability(value=Stable) public MountPoint.Builder readOnly(Boolean readOnly)
MountPoint.getReadOnly()
readOnly
- Specifies whether to give the container read-only access to the volume. This parameter is required.
If this value is true, the container has read-only access to the volume.
If this value is false, then the container can write to the volume.this
@Stability(value=Stable) public MountPoint.Builder sourceVolume(String sourceVolume)
MountPoint.getSourceVolume()
sourceVolume
- The name of the volume to mount. This parameter is required.
Must be a volume name referenced in the name parameter of task definition volume.this
@Stability(value=Stable) public MountPoint build()
build
in interface software.amazon.jsii.Builder<MountPoint>
MountPoint
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.