Class ResizeJobFlowStep.ModifyInstanceGroup
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.util.ResizeJobFlowStep.ModifyInstanceGroup
-
- All Implemented Interfaces:
ResizeJobFlowStep.ResizeAction
- Enclosing class:
- ResizeJobFlowStep
public static class ResizeJobFlowStep.ModifyInstanceGroup extends Object implements ResizeJobFlowStep.ResizeAction
Class representing a change to an existing instance group.
-
-
Constructor Summary
Constructors Constructor Description ModifyInstanceGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getArgs()
ResizeJobFlowStep.ModifyInstanceGroup
withInstanceCount(Integer instanceCount)
Specify the new size of the instance group.ResizeJobFlowStep.ModifyInstanceGroup
withInstanceGroup(String instanceGroup)
Set the identification for the instance group to modify.
-
-
-
Method Detail
-
withInstanceGroup
public ResizeJobFlowStep.ModifyInstanceGroup withInstanceGroup(String instanceGroup)
Set the identification for the instance group to modify. You can specify either core or task if there is only one instance group of that role. Otherwise you can specify the instance group ID (such as ig-ABABABABABAB).- Parameters:
instanceGroup
- Identifier for the instance group.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
withInstanceCount
public ResizeJobFlowStep.ModifyInstanceGroup withInstanceCount(Integer instanceCount)
Specify the new size of the instance group.- Parameters:
instanceCount
- Target size of the instance group.- 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
-
-