public class TerminateInstanceInAutoScalingGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.Boolean |
shouldDecrementDesiredCapacity
If
true , terminating the instance also decrements the size
of the Auto Scaling group. |
NOOP
Constructor and Description |
---|
TerminateInstanceInAutoScalingGroupRequest() |
Modifier and Type | Method and Description |
---|---|
TerminateInstanceInAutoScalingGroupRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.Boolean |
getShouldDecrementDesiredCapacity()
If
true , terminating the instance also decrements the size
of the Auto Scaling group. |
int |
hashCode() |
java.lang.Boolean |
isShouldDecrementDesiredCapacity()
If
true , terminating the instance also decrements the size
of the Auto Scaling group. |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If
true , terminating the instance also decrements the size
of the Auto Scaling group. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TerminateInstanceInAutoScalingGroupRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
TerminateInstanceInAutoScalingGroupRequest |
withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If
true , terminating the instance also decrements the size
of the Auto Scaling group. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String instanceId
The ID of the instance.
private java.lang.Boolean shouldDecrementDesiredCapacity
If true
, terminating the instance also decrements the size
of the Auto Scaling group.
public TerminateInstanceInAutoScalingGroupRequest()
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public TerminateInstanceInAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If true
, terminating the instance also decrements the size
of the Auto Scaling group.
shouldDecrementDesiredCapacity
- If true
, terminating the instance also decrements the
size of the Auto Scaling group.public java.lang.Boolean getShouldDecrementDesiredCapacity()
If true
, terminating the instance also decrements the size
of the Auto Scaling group.
true
, terminating the instance also decrements
the size of the Auto Scaling group.public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If true
, terminating the instance also decrements the size
of the Auto Scaling group.
shouldDecrementDesiredCapacity
- If true
, terminating the instance also decrements the
size of the Auto Scaling group.public java.lang.Boolean isShouldDecrementDesiredCapacity()
If true
, terminating the instance also decrements the size
of the Auto Scaling group.
true
, terminating the instance also decrements
the size of the Auto Scaling group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TerminateInstanceInAutoScalingGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()