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 -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()
withInstanceCount
(Integer instanceCount) Specify the new size of the instance group.withInstanceGroup
(String instanceGroup) Set the identification for the instance group to modify.
-
Constructor Details
-
ModifyInstanceGroup
public ModifyInstanceGroup()
-
-
Method Details
-
withInstanceGroup
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
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
- Specified by:
getArgs
in interfaceResizeJobFlowStep.ResizeAction
-