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 Constructor Description AddInstanceGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getArgs()
ResizeJobFlowStep.AddInstanceGroup
withInstanceCount(int instanceCount)
Specify the count of the new instance group.ResizeJobFlowStep.AddInstanceGroup
withInstanceGroup(String instanceGroup)
Specify the role of the new instance group (core, task).ResizeJobFlowStep.AddInstanceGroup
withInstanceType(String instanceType)
Specify the instance type to use for this instance group.
-
-
-
Method Detail
-
withInstanceGroup
public ResizeJobFlowStep.AddInstanceGroup withInstanceGroup(String instanceGroup)
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
public ResizeJobFlowStep.AddInstanceGroup withInstanceCount(int instanceCount)
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
public ResizeJobFlowStep.AddInstanceGroup withInstanceType(String instanceType)
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
public List<String> getArgs()
- Specified by:
getArgs
in interfaceResizeJobFlowStep.ResizeAction
-
-