Class MountPoint.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.MountPoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MountPoint>
- Enclosing interface:
- MountPoint
@Stability(Stable)
public static final class MountPoint.Builder
extends Object
implements software.amazon.jsii.Builder<MountPoint>
A builder for
MountPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofMountPoint.getContainerPath()
Sets the value ofMountPoint.getReadOnly()
sourceVolume
(String sourceVolume) Sets the value ofMountPoint.getSourceVolume()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
Sets the value ofMountPoint.getContainerPath()
- Parameters:
containerPath
- The path on the container to mount the host volume at. This parameter is required.- Returns:
this
-
readOnly
Sets the value ofMountPoint.getReadOnly()
- Parameters:
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.- Returns:
this
-
sourceVolume
Sets the value ofMountPoint.getSourceVolume()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MountPoint>
- Returns:
- a new instance of
MountPoint
- Throws:
NullPointerException
- if any required attribute was not provided
-