Class CfnJobDefinition.NodeRangePropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.NodeRangePropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.NodeRangePropertyProperty>
- Enclosing interface:
- CfnJobDefinition.NodeRangePropertyProperty
@Stability(Stable)
public static final class CfnJobDefinition.NodeRangePropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.NodeRangePropertyProperty>
A builder for
CfnJobDefinition.NodeRangePropertyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.container(IResolvable container) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()targetNodes(String targetNodes) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getTargetNodes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetNodes
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder targetNodes(String targetNodes) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getTargetNodes()- Parameters:
targetNodes- The range of nodes, using node index values. This parameter is required. A range of0:3indicates nodes with index values of0through3. If the starting range value is omitted (:n), then0is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n). You can nest node ranges (for example,0:10and4:5). In this case, the4:5range properties override the0:10properties.- Returns:
this
-
container
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder container(IResolvable container) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()- Parameters:
container- The container details for the node range.- Returns:
this
-
container
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder container(CfnJobDefinition.ContainerPropertiesProperty container) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()- Parameters:
container- The container details for the node range.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.NodeRangePropertyProperty>- Returns:
- a new instance of
CfnJobDefinition.NodeRangePropertyProperty - Throws:
NullPointerException- if any required attribute was not provided
-