Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class ModifyInstanceGroupsRequest

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

public class ModifyInstanceGroupsRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ModifyInstanceGroups operation.

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.

See Also:
AmazonElasticMapReduce.modifyInstanceGroups(ModifyInstanceGroupsRequest), Serialized Form

Constructor Summary
ModifyInstanceGroupsRequest()
          Default constructor for a new ModifyInstanceGroupsRequest object.
ModifyInstanceGroupsRequest(List<InstanceGroupModifyConfig> instanceGroups)
          Constructs a new ModifyInstanceGroupsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<InstanceGroupModifyConfig> getInstanceGroups()
          Instance groups to change.
 int hashCode()
           
 void setInstanceGroups(Collection<InstanceGroupModifyConfig> instanceGroups)
          Instance groups to change.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ModifyInstanceGroupsRequest withInstanceGroups(Collection<InstanceGroupModifyConfig> instanceGroups)
          Instance groups to change.
 ModifyInstanceGroupsRequest withInstanceGroups(InstanceGroupModifyConfig... instanceGroups)
          Instance groups to change.
 
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

ModifyInstanceGroupsRequest

public ModifyInstanceGroupsRequest()
Default constructor for a new ModifyInstanceGroupsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ModifyInstanceGroupsRequest

public ModifyInstanceGroupsRequest(List<InstanceGroupModifyConfig> instanceGroups)
Constructs a new ModifyInstanceGroupsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceGroups - Instance groups to change.
Method Detail

getInstanceGroups

public List<InstanceGroupModifyConfig> getInstanceGroups()
Instance groups to change.

Returns:
Instance groups to change.

setInstanceGroups

public void setInstanceGroups(Collection<InstanceGroupModifyConfig> instanceGroups)
Instance groups to change.

Parameters:
instanceGroups - Instance groups to change.

withInstanceGroups

public ModifyInstanceGroupsRequest withInstanceGroups(InstanceGroupModifyConfig... instanceGroups)
Instance groups to change.

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

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

withInstanceGroups

public ModifyInstanceGroupsRequest withInstanceGroups(Collection<InstanceGroupModifyConfig> instanceGroups)
Instance groups to change.

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

Parameters:
instanceGroups - Instance groups to change.
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.