Class CfnTaskDefinition.MountPointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.MountPointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.MountPointProperty>
- Enclosing interface:
CfnTaskDefinition.MountPointProperty
@Stability(Stable)
public static final class CfnTaskDefinition.MountPointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.MountPointProperty>
A builder for
CfnTaskDefinition.MountPointProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofCfnTaskDefinition.MountPointProperty.getContainerPath()
Sets the value ofCfnTaskDefinition.MountPointProperty.getReadOnly()
readOnly
(IResolvable readOnly) Sets the value ofCfnTaskDefinition.MountPointProperty.getReadOnly()
sourceVolume
(String sourceVolume) Sets the value ofCfnTaskDefinition.MountPointProperty.getSourceVolume()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
@Stability(Stable) public CfnTaskDefinition.MountPointProperty.Builder containerPath(String containerPath) Sets the value ofCfnTaskDefinition.MountPointProperty.getContainerPath()
- Parameters:
containerPath
- The path on the container to mount the host volume at.- Returns:
this
-
readOnly
Sets the value ofCfnTaskDefinition.MountPointProperty.getReadOnly()
- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Returns:
this
-
readOnly
@Stability(Stable) public CfnTaskDefinition.MountPointProperty.Builder readOnly(IResolvable readOnly) Sets the value ofCfnTaskDefinition.MountPointProperty.getReadOnly()
- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Returns:
this
-
sourceVolume
@Stability(Stable) public CfnTaskDefinition.MountPointProperty.Builder sourceVolume(String sourceVolume) Sets the value ofCfnTaskDefinition.MountPointProperty.getSourceVolume()
- Parameters:
sourceVolume
- The name of the volume to mount. Must be a volume name referenced in thename
parameter of task definitionvolume
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.MountPointProperty>
- Returns:
- a new instance of
CfnTaskDefinition.MountPointProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-