|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.autoscaling.model.TerminateInstanceInAutoScalingGroupRequest
public class TerminateInstanceInAutoScalingGroupRequest
Container for the parameters to the 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.
AmazonAutoScaling.terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest)
Constructor Summary | |
---|---|
TerminateInstanceInAutoScalingGroupRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TerminateInstanceInAutoScalingGroupRequest()
Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |