public class TerminateInstanceInAutoScalingGroupRequest extends AmazonWebServiceRequest implements java.io.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.
| コンストラクタと説明 |
|---|
TerminateInstanceInAutoScalingGroupRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The ID of the Amazon EC2 instance to be terminated.
|
java.lang.Boolean |
getShouldDecrementDesiredCapacity()
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
int |
hashCode() |
java.lang.Boolean |
isShouldDecrementDesiredCapacity()
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance to be terminated.
|
void |
setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
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 Amazon EC2 instance to be terminated.
|
TerminateInstanceInAutoScalingGroupRequest |
withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic TerminateInstanceInAutoScalingGroupRequest()
public java.lang.String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
public void setInstanceId(java.lang.String instanceId)
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
instanceId - The ID of the Amazon EC2 instance to be terminated.public TerminateInstanceInAutoScalingGroupRequest withInstanceId(java.lang.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 java.lang.Boolean isShouldDecrementDesiredCapacity()
public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
shouldDecrementDesiredCapacity - Specifies whether (true) or not (false) terminating this
instance should also decrement the size of the
AutoScalingGroup.public TerminateInstanceInAutoScalingGroupRequest withShouldDecrementDesiredCapacity(java.lang.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 java.lang.Boolean getShouldDecrementDesiredCapacity()
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object