Class ContainerMountPoint.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ContainerMountPoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerMountPoint>
- Enclosing interface:
ContainerMountPoint
@Stability(Stable)
public static final class ContainerMountPoint.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerMountPoint>
A builder for
ContainerMountPoint-
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:
buildin interfacesoftware.amazon.jsii.Builder<ContainerMountPoint>- Returns:
- a new instance of
ContainerMountPoint - Throws:
NullPointerException- if any required attribute was not provided
-