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 Details

    • AddInstanceGroup

      public AddInstanceGroup()
  • Method Details

    • 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 interface ResizeJobFlowStep.ResizeAction