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.consumableResourceProperties(IResolvable consumableResourceProperties) consumableResourceProperties(CfnJobDefinition.ConsumableResourcePropertiesProperty consumableResourceProperties) 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.MultiNodeEcsPropertiesProperty 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: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
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder consumableResourceProperties(IResolvable consumableResourceProperties) - Parameters:
consumableResourceProperties- Contains a list of consumable resources required by a job.- Returns:
this
-
consumableResourceProperties
@Stability(Stable) public CfnJobDefinition.NodeRangePropertyProperty.Builder consumableResourceProperties(CfnJobDefinition.ConsumableResourcePropertiesProperty consumableResourceProperties) - Parameters:
consumableResourceProperties- Contains a list of consumable resources required by a job.- 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.MultiNodeEcsPropertiesProperty 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.NodeRangePropertyProperty>- Returns:
- a new instance of
CfnJobDefinition.NodeRangePropertyProperty - Throws:
NullPointerException- if any required attribute was not provided
-