Class InstanceGroupModifyConfig
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.InstanceGroupModifyConfig
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceGroupModifyConfig extends Object implements Serializable, Cloneable
Modify an instance group size.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceGroupModifyConfig()Default constructor for InstanceGroupModifyConfig object.InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount)Constructs a new InstanceGroupModifyConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceGroupModifyConfigclone()booleanequals(Object obj)List<String>getEC2InstanceIdsToTerminate()The EC2 InstanceIds to terminate.IntegergetInstanceCount()Target size for the instance group.StringgetInstanceGroupId()Unique ID of the instance group to expand or shrink.ShrinkPolicygetShrinkPolicy()Policy for customizing shrink operations.inthashCode()voidsetEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)The EC2 InstanceIds to terminate.voidsetInstanceCount(Integer instanceCount)Target size for the instance group.voidsetInstanceGroupId(String instanceGroupId)Unique ID of the instance group to expand or shrink.voidsetShrinkPolicy(ShrinkPolicy shrinkPolicy)Policy for customizing shrink operations.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceGroupModifyConfigwithEC2InstanceIdsToTerminate(String... eC2InstanceIdsToTerminate)The EC2 InstanceIds to terminate.InstanceGroupModifyConfigwithEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)The EC2 InstanceIds to terminate.InstanceGroupModifyConfigwithInstanceCount(Integer instanceCount)Target size for the instance group.InstanceGroupModifyConfigwithInstanceGroupId(String instanceGroupId)Unique ID of the instance group to expand or shrink.InstanceGroupModifyConfigwithShrinkPolicy(ShrinkPolicy shrinkPolicy)Policy for customizing shrink operations.
-
-
-
Constructor Detail
-
InstanceGroupModifyConfig
public InstanceGroupModifyConfig()
Default constructor for InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the 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
-
setInstanceGroupId
public void setInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
- Parameters:
instanceGroupId- Unique ID of the instance group to expand or shrink.
-
getInstanceGroupId
public String getInstanceGroupId()
Unique ID of the instance group to expand or shrink.
- Returns:
- 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.
- Parameters:
instanceGroupId- Unique ID of the instance group to expand or shrink.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
Target size for the instance group.
- Parameters:
instanceCount- Target size for the instance group.
-
getInstanceCount
public Integer getInstanceCount()
Target size for the instance group.
- Returns:
- Target size for the instance group.
-
withInstanceCount
public InstanceGroupModifyConfig withInstanceCount(Integer instanceCount)
Target size for the instance group.
- Parameters:
instanceCount- Target size for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEC2InstanceIdsToTerminate
public List<String> getEC2InstanceIdsToTerminate()
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Returns:
- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
-
setEC2InstanceIdsToTerminate
public void setEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
-
withEC2InstanceIdsToTerminate
public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate(String... eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
NOTE: This method appends the values to the existing list (if any). Use
setEC2InstanceIdsToTerminate(java.util.Collection)orwithEC2InstanceIdsToTerminate(java.util.Collection)if you want to override the existing values.- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEC2InstanceIdsToTerminate
public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShrinkPolicy
public void setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy- Policy for customizing shrink operations.
-
getShrinkPolicy
public ShrinkPolicy getShrinkPolicy()
Policy for customizing shrink operations.
- Returns:
- Policy for customizing shrink operations.
-
withShrinkPolicy
public InstanceGroupModifyConfig withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy- Policy for customizing shrink operations.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceGroupModifyConfig clone()
-
-