Class CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty>
- Enclosing interface:
CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty
@Stability(Stable)
public static final class CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty>
A builder for
CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containers(List<? extends Object> containers) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getContainers()containers(IResolvable containers) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getContainers()executionRoleArn(String executionRoleArn) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getIpcMode()Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getPidMode()taskRoleArn(String taskRoleArn) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getTaskRoleArn()Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getVolumes()volumes(IResolvable volumes) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containers
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder containers(IResolvable containers) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getContainers()- Parameters:
containers- the value to be set.- Returns:
this
-
containers
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder containers(List<? extends Object> containers) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getContainers()- Parameters:
containers- the value to be set.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder executionRoleArn(String executionRoleArn) - Parameters:
executionRoleArn- the value to be set.- Returns:
this
-
ipcMode
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder ipcMode(String ipcMode) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getIpcMode()- Parameters:
ipcMode- the value to be set.- Returns:
this
-
pidMode
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder pidMode(String pidMode) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getPidMode()- Parameters:
pidMode- the value to be set.- Returns:
this
-
taskRoleArn
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder taskRoleArn(String taskRoleArn) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getTaskRoleArn()- Parameters:
taskRoleArn- the value to be set.- Returns:
this
-
volumes
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder volumes(IResolvable volumes) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getVolumes()- Parameters:
volumes- the value to be set.- Returns:
this
-
volumes
@Stability(Stable) public CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.Builder volumes(List<? extends Object> volumes) Sets the value ofCfnJobDefinition.MultiNodeEcsTaskPropertiesProperty.getVolumes()- Parameters:
volumes- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty>- Returns:
- a new instance of
CfnJobDefinition.MultiNodeEcsTaskPropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-