com.amazonaws.services.elasticmapreduce.model
Class InstanceGroupModifyConfig

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.InstanceGroupModifyConfig

public class InstanceGroupModifyConfig
extends Object

Modify an instance group size.


Constructor Summary
InstanceGroupModifyConfig()
          Default constructor for a new InstanceGroupModifyConfig object.
InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount)
          Constructs a new InstanceGroupModifyConfig object.
 
Method Summary
 Integer getInstanceCount()
          Target size for the instance group.
 String getInstanceGroupId()
          Unique ID of the instance group to expand or shrink.
 void setInstanceCount(Integer instanceCount)
          Target size for the instance group.
 void setInstanceGroupId(String instanceGroupId)
          Unique ID of the instance group to expand or shrink.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceGroupModifyConfig withInstanceCount(Integer instanceCount)
          Target size for the instance group.
 InstanceGroupModifyConfig withInstanceGroupId(String instanceGroupId)
          Unique ID of the instance group to expand or shrink.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceGroupModifyConfig

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


InstanceGroupModifyConfig

public InstanceGroupModifyConfig(String instanceGroupId,
                                 Integer instanceCount)
Constructs a new InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceGroupId - Unique ID of the instance group to expand or shrink.
instanceCount - Target size for the instance group.
Method Detail

getInstanceGroupId

public String getInstanceGroupId()
Unique ID of the instance group to expand or shrink.

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

Returns:
Unique ID of the instance group to expand or shrink.

setInstanceGroupId

public void setInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.

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

Parameters:
instanceGroupId - Unique ID of the instance group to expand or shrink.

withInstanceGroupId

public InstanceGroupModifyConfig withInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.

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

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

Parameters:
instanceGroupId - Unique ID of the instance group to expand or shrink.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

public Integer getInstanceCount()
Target size for the instance group.

Returns:
Target size for the instance group.

setInstanceCount

public void setInstanceCount(Integer instanceCount)
Target size for the instance group.

Parameters:
instanceCount - Target size for the instance group.

withInstanceCount

public InstanceGroupModifyConfig withInstanceCount(Integer instanceCount)
Target size for the instance group.

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

Parameters:
instanceCount - Target size for the instance group.
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()


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