Class MultiNodeContainer.Builder
java.lang.Object
software.amazon.awscdk.services.batch.MultiNodeContainer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MultiNodeContainer>
- Enclosing interface:
MultiNodeContainer
@Stability(Stable)
public static final class MultiNodeContainer.Builder
extends Object
implements software.amazon.jsii.Builder<MultiNodeContainer>
A builder for
MultiNodeContainer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.container
(IEcsContainerDefinition container) Sets the value ofMultiNodeContainer.getContainer()
Sets the value ofMultiNodeContainer.getEndNode()
Sets the value ofMultiNodeContainer.getStartNode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
container
Sets the value ofMultiNodeContainer.getContainer()
- Parameters:
container
- The container that this node range will run. This parameter is required.- Returns:
this
-
endNode
Sets the value ofMultiNodeContainer.getEndNode()
- Parameters:
endNode
- The index of the last node to run this container. This parameter is required. The container is run on all nodes in the range [startNode, endNode] (inclusive)- Returns:
this
-
startNode
Sets the value ofMultiNodeContainer.getStartNode()
- Parameters:
startNode
- The index of the first node to run this container. This parameter is required. The container is run on all nodes in the range [startNode, endNode] (inclusive)- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MultiNodeContainer>
- Returns:
- a new instance of
MultiNodeContainer
- Throws:
NullPointerException
- if any required attribute was not provided
-