public class TerminateInstanceInAutoScalingGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
TerminateInstanceInAutoScalingGroup operation.
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instances is not terminated immediately.
NOOP| Constructor and Description |
|---|
TerminateInstanceInAutoScalingGroupRequest() |
| Modifier and Type | Method and Description |
|---|---|
TerminateInstanceInAutoScalingGroupRequest |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the EC2 instance.
|
Boolean |
getShouldDecrementDesiredCapacity()
If
true, terminating this instance also decrements the
size of the Auto Scaling group. |
int |
hashCode() |
Boolean |
isShouldDecrementDesiredCapacity()
If
true, terminating this instance also decrements the
size of the Auto Scaling group. |
void |
setInstanceId(String instanceId)
The ID of the EC2 instance.
|
void |
setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
If
true, terminating this instance also decrements the
size of the Auto Scaling group. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminateInstanceInAutoScalingGroupRequest |
withInstanceId(String instanceId)
The ID of the EC2 instance.
|
TerminateInstanceInAutoScalingGroupRequest |
withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
If
true, terminating this instance also decrements the
size of the Auto Scaling group. |
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic TerminateInstanceInAutoScalingGroupRequest()
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the EC2 instance.public TerminateInstanceInAutoScalingGroupRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId - The ID of the EC2 instance.public Boolean isShouldDecrementDesiredCapacity()
true, terminating this instance also decrements the
size of the Auto Scaling group.true, terminating this instance also decrements the
size of the Auto Scaling group.public void setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
true, terminating this instance also decrements the
size of the Auto Scaling group.shouldDecrementDesiredCapacity - If true, terminating this instance also decrements the
size of the Auto Scaling group.public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
true, terminating this instance also decrements the
size of the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
shouldDecrementDesiredCapacity - If true, terminating this instance also decrements the
size of the Auto Scaling group.public Boolean getShouldDecrementDesiredCapacity()
true, terminating this instance also decrements the
size of the Auto Scaling group.true, terminating this instance also decrements the
size of the Auto Scaling group.public String toString()
toString in class ObjectObject.toString()public TerminateInstanceInAutoScalingGroupRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.