public class TerminateInstanceInAutoScalingGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
Constructor and Description |
---|
TerminateInstanceInAutoScalingGroupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.Boolean |
getShouldDecrementDesiredCapacity()
Indicates whether terminating the instance also decrements the size of
the Auto Scaling group.
|
int |
hashCode() |
java.lang.Boolean |
isShouldDecrementDesiredCapacity()
Indicates whether 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)
Indicates whether 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)
Indicates whether terminating the instance also decrements the size of
the Auto Scaling group.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public TerminateInstanceInAutoScalingGroupRequest()
public java.lang.String getInstanceId()
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
The ID of the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
public TerminateInstanceInAutoScalingGroupRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
public java.lang.Boolean isShouldDecrementDesiredCapacity()
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
public java.lang.Boolean getShouldDecrementDesiredCapacity()
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
shouldDecrementDesiredCapacity
- Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Indicates whether terminating the 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
- Indicates whether 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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.