@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroupModifyConfig extends Object implements Serializable, Cloneable, StructuredPojo
Modify an instance group size.
Constructor and Description |
---|
InstanceGroupModifyConfig()
Default constructor for InstanceGroupModifyConfig object.
|
InstanceGroupModifyConfig(String instanceGroupId,
Integer instanceCount)
Constructs a new InstanceGroupModifyConfig object.
|
Modifier and Type | Method and Description |
---|---|
InstanceGroupModifyConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getEC2InstanceIdsToTerminate()
The EC2 InstanceIds to terminate.
|
Integer |
getInstanceCount()
Target size for the instance group.
|
String |
getInstanceGroupId()
Unique ID of the instance group to expand or shrink.
|
ShrinkPolicy |
getShrinkPolicy()
Policy for customizing shrink operations.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate.
|
void |
setInstanceCount(Integer instanceCount)
Target size for the instance group.
|
void |
setInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
|
void |
setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceGroupModifyConfig |
withEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate.
|
InstanceGroupModifyConfig |
withEC2InstanceIdsToTerminate(String... eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate.
|
InstanceGroupModifyConfig |
withInstanceCount(Integer instanceCount)
Target size for the instance group.
|
InstanceGroupModifyConfig |
withInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
|
InstanceGroupModifyConfig |
withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
public InstanceGroupModifyConfig()
public InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount)
instanceGroupId
- Unique ID of the instance group to expand or shrink.instanceCount
- Target size for the instance group.public void setInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
instanceGroupId
- Unique ID of the instance group to expand or shrink.public String getInstanceGroupId()
Unique ID of the instance group to expand or shrink.
public InstanceGroupModifyConfig withInstanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
instanceGroupId
- Unique ID of the instance group to expand or shrink.public void setInstanceCount(Integer instanceCount)
Target size for the instance group.
instanceCount
- Target size for the instance group.public Integer getInstanceCount()
Target size for the instance group.
public InstanceGroupModifyConfig withInstanceCount(Integer instanceCount)
Target size for the instance group.
instanceCount
- Target size for the instance group.public List<String> getEC2InstanceIdsToTerminate()
The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
public void setEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
eC2InstanceIdsToTerminate
- The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to
its original requested size.public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate(String... eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. After 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)
or
withEC2InstanceIdsToTerminate(java.util.Collection)
if you want to override the existing values.
eC2InstanceIdsToTerminate
- The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to
its original requested size.public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
eC2InstanceIdsToTerminate
- The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to
its original requested size.public void setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public ShrinkPolicy getShrinkPolicy()
Policy for customizing shrink operations.
public InstanceGroupModifyConfig withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public String toString()
toString
in class Object
Object.toString()
public InstanceGroupModifyConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.