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