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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.container
(IResolvable container) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()
Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getContainer()
ecsProperties
(IResolvable ecsProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEcsProperties()
ecsProperties
(CfnJobDefinition.EcsPropertiesProperty ecsProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEcsProperties()
eksProperties
(IResolvable eksProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEksProperties()
eksProperties
(CfnJobDefinition.EksPropertiesProperty eksProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEksProperties()
instanceTypes
(List<String> instanceTypes) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getInstanceTypes()
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:3
indicates nodes with index values of0
through3
. If the starting range value is omitted (:n
), then0
is 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:10
and4:5
). In this case, the4:5
range properties override the0:10
properties.- 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
-
ecsProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder ecsProperties(IResolvable ecsProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEcsProperties()
- Parameters:
ecsProperties
- This is an object that represents the properties of the node range for a multi-node parallel job.- Returns:
this
-
ecsProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder ecsProperties(CfnJobDefinition.EcsPropertiesProperty ecsProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEcsProperties()
- Parameters:
ecsProperties
- This is an object that represents the properties of the node range for a multi-node parallel job.- Returns:
this
-
eksProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder eksProperties(IResolvable eksProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEksProperties()
- Parameters:
eksProperties
- This is an object that represents the properties of the node range for a multi-node parallel job.- Returns:
this
-
eksProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder eksProperties(CfnJobDefinition.EksPropertiesProperty eksProperties) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getEksProperties()
- Parameters:
eksProperties
- This is an object that represents the properties of the node range for a multi-node parallel job.- Returns:
this
-
instanceTypes
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder instanceTypes(List<String> instanceTypes) Sets the value ofCfnJobDefinition.NodeRangePropertyProperty.getInstanceTypes()
- Parameters:
instanceTypes
- The instance types of the underlying host infrastructure of a multi-node parallel job.This parameter isn't applicable to jobs that are running on Fargate resources.
In addition, this list object is currently limited to one element.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.NodeRangePropertyProperty>
- Returns:
- a new instance of
CfnJobDefinition.NodeRangePropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-