Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class AddInstanceGroupsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticmapreduce.model.AddInstanceGroupsRequest
All Implemented Interfaces:
Serializable

public class AddInstanceGroupsRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AddInstanceGroups operation.

AddInstanceGroups adds an instance group to a running cluster.

See Also:
AmazonElasticMapReduce.addInstanceGroups(AddInstanceGroupsRequest), Serialized Form

Constructor Summary
AddInstanceGroupsRequest()
          Default constructor for a new AddInstanceGroupsRequest object.
AddInstanceGroupsRequest(List<InstanceGroupConfig> instanceGroups, String jobFlowId)
          Constructs a new AddInstanceGroupsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<InstanceGroupConfig> getInstanceGroups()
          Instance Groups to add.
 String getJobFlowId()
          Job flow in which to add the instance groups.
 int hashCode()
           
 void setInstanceGroups(Collection<InstanceGroupConfig> instanceGroups)
          Instance Groups to add.
 void setJobFlowId(String jobFlowId)
          Job flow in which to add the instance groups.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AddInstanceGroupsRequest withInstanceGroups(Collection<InstanceGroupConfig> instanceGroups)
          Instance Groups to add.
 AddInstanceGroupsRequest withInstanceGroups(InstanceGroupConfig... instanceGroups)
          Instance Groups to add.
 AddInstanceGroupsRequest withJobFlowId(String jobFlowId)
          Job flow in which to add the instance groups.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddInstanceGroupsRequest

public AddInstanceGroupsRequest()
Default constructor for a new AddInstanceGroupsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 Detail

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.

Returns a reference to this object so that method calls can be chained together.

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

withInstanceGroups

public AddInstanceGroupsRequest withInstanceGroups(Collection<InstanceGroupConfig> instanceGroups)
Instance Groups to add.

Returns a reference to this object so that method calls can be chained together.

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

getJobFlowId

public String getJobFlowId()
Job flow in which to add the instance groups.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

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

setJobFlowId

public void setJobFlowId(String jobFlowId)
Job flow in which to add the instance groups.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

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

withJobFlowId

public AddInstanceGroupsRequest withJobFlowId(String jobFlowId)
Job flow in which to add the instance groups.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
jobFlowId - Job flow in which to add the instance groups.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.