Class ResizeJobFlowStep.AddInstanceGroup
java.lang.Object
com.amazonaws.services.elasticmapreduce.util.ResizeJobFlowStep.AddInstanceGroup
- All Implemented Interfaces:
ResizeJobFlowStep.ResizeAction
- Enclosing class:
ResizeJobFlowStep
public static class ResizeJobFlowStep.AddInstanceGroup
extends Object
implements ResizeJobFlowStep.ResizeAction
Class representing creating a new instance group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()
withInstanceCount
(int instanceCount) Specify the count of the new instance group.withInstanceGroup
(String instanceGroup) Specify the role of the new instance group (core, task).withInstanceType
(String instanceType) Specify the instance type to use for this instance group.
-
Constructor Details
-
AddInstanceGroup
public AddInstanceGroup()
-
-
Method Details
-
withInstanceGroup
Specify the role of the new instance group (core, task).- Parameters:
instanceGroup
- New instance group's role.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
withInstanceCount
Specify the count of the new instance group.- Parameters:
instanceCount
- Target instance group size.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
withInstanceType
Specify the instance type to use for this instance group.- Parameters:
instanceType
- Instance type.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
getArgs
- Specified by:
getArgs
in interfaceResizeJobFlowStep.ResizeAction
-