Class CfnJobDefinition.NodePropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.NodePropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.NodePropertiesProperty>
- Enclosing interface:
- CfnJobDefinition.NodePropertiesProperty
@Stability(Stable)
public static final class CfnJobDefinition.NodePropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.NodePropertiesProperty>
A builder for
CfnJobDefinition.NodePropertiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinition.NodePropertiesProperty.getMainNode()nodeRangeProperties(List<? extends Object> nodeRangeProperties) Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNodeRangeProperties()nodeRangeProperties(IResolvable nodeRangeProperties) Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNodeRangeProperties()Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNumNodes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mainNode
Sets the value ofCfnJobDefinition.NodePropertiesProperty.getMainNode()- Parameters:
mainNode- Specifies the node index for the main node of a multi-node parallel job. This parameter is required. This node index value must be fewer than the number of nodes.- Returns:
this
-
nodeRangeProperties
@Stability(Stable) public CfnJobDefinition.NodePropertiesProperty.Builder nodeRangeProperties(IResolvable nodeRangeProperties) Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNodeRangeProperties()- Parameters:
nodeRangeProperties- A list of node ranges and their properties that are associated with a multi-node parallel job. This parameter is required.- Returns:
this
-
nodeRangeProperties
@Stability(Stable) public CfnJobDefinition.NodePropertiesProperty.Builder nodeRangeProperties(List<? extends Object> nodeRangeProperties) Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNodeRangeProperties()- Parameters:
nodeRangeProperties- A list of node ranges and their properties that are associated with a multi-node parallel job. This parameter is required.- Returns:
this
-
numNodes
Sets the value ofCfnJobDefinition.NodePropertiesProperty.getNumNodes()- Parameters:
numNodes- The number of nodes that are associated with a multi-node parallel job. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.NodePropertiesProperty>- Returns:
- a new instance of
CfnJobDefinition.NodePropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-