public class TerminateInstanceInAutoScalingGroupRequest extends AmazonWebServiceRequest implements Serializable
TerminateInstanceInAutoScalingGroup operation
.
Terminates the specified instance. Optionally, the desired group size can be adjusted.
NOTE: This call simply registers a termination request. The termination of the instance cannot happen immediately.
Constructor and Description |
---|
TerminateInstanceInAutoScalingGroupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the Amazon EC2 instance to be terminated.
|
Boolean |
getShouldDecrementDesiredCapacity()
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
int |
hashCode() |
Boolean |
isShouldDecrementDesiredCapacity()
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
void |
setInstanceId(String instanceId)
The ID of the Amazon EC2 instance to be terminated.
|
void |
setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminateInstanceInAutoScalingGroupRequest |
withInstanceId(String instanceId)
The ID of the Amazon EC2 instance to be terminated.
|
TerminateInstanceInAutoScalingGroupRequest |
withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public TerminateInstanceInAutoScalingGroupRequest()
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the Amazon EC2 instance to be terminated.public TerminateInstanceInAutoScalingGroupRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the Amazon EC2 instance to be terminated.public Boolean isShouldDecrementDesiredCapacity()
public void setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
shouldDecrementDesiredCapacity
- Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Returns a reference to this object so that method calls can be chained together.
shouldDecrementDesiredCapacity
- Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.public Boolean getShouldDecrementDesiredCapacity()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.