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