Class AddInstanceGroupsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticmapreduce.model.AddInstanceGroupsRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class AddInstanceGroupsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Input to an AddInstanceGroups call.

See Also:
  • Constructor Details

    • AddInstanceGroupsRequest

      public AddInstanceGroupsRequest()
      Default constructor for AddInstanceGroupsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • AddInstanceGroupsRequest

      public AddInstanceGroupsRequest(List<InstanceGroupConfig> instanceGroups, String jobFlowId)
      Constructs a new AddInstanceGroupsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      instanceGroups - Instance Groups to add.
      jobFlowId - Job flow in which to add the instance groups.
  • Method Details

    • getInstanceGroups

      public List<InstanceGroupConfig> getInstanceGroups()

      Instance Groups to add.

      Returns:
      Instance Groups to add.
    • setInstanceGroups

      public void setInstanceGroups(Collection<InstanceGroupConfig> instanceGroups)

      Instance Groups to add.

      Parameters:
      instanceGroups - Instance Groups to add.
    • withInstanceGroups

      public AddInstanceGroupsRequest withInstanceGroups(InstanceGroupConfig... instanceGroups)

      Instance Groups to add.

      NOTE: This method appends the values to the existing list (if any). Use setInstanceGroups(java.util.Collection) or withInstanceGroups(java.util.Collection) if you want to override the existing values.

      Parameters:
      instanceGroups - Instance Groups to add.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withInstanceGroups

      public AddInstanceGroupsRequest withInstanceGroups(Collection<InstanceGroupConfig> instanceGroups)

      Instance Groups to add.

      Parameters:
      instanceGroups - Instance Groups to add.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setJobFlowId

      public void setJobFlowId(String jobFlowId)

      Job flow in which to add the instance groups.

      Parameters:
      jobFlowId - Job flow in which to add the instance groups.
    • getJobFlowId

      public String getJobFlowId()

      Job flow in which to add the instance groups.

      Returns:
      Job flow in which to add the instance groups.
    • withJobFlowId

      public AddInstanceGroupsRequest withJobFlowId(String jobFlowId)

      Job flow in which to add the instance groups.

      Parameters:
      jobFlowId - Job flow in which to add the instance groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AddInstanceGroupsRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: