public class DetachInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DetachInstances operation
.
Removes one or more instances from the specified Auto Scaling group. After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.
For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide .
NOOP
Constructor and Description |
---|
DetachInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
DetachInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the group.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
Boolean |
getShouldDecrementDesiredCapacity()
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
int |
hashCode() |
Boolean |
isShouldDecrementDesiredCapacity()
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
|
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
void |
setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachInstancesRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
|
DetachInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
DetachInstancesRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
DetachInstancesRequest |
withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- One or more instance IDs.public DetachInstancesRequest withInstanceIds(String... instanceIds)
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public DetachInstancesRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the group.public DetachInstancesRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the group.public Boolean isShouldDecrementDesiredCapacity()
True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.public void setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.shouldDecrementDesiredCapacity
- If True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.public DetachInstancesRequest withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.
Returns a reference to this object so that method calls can be chained together.
shouldDecrementDesiredCapacity
- If True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.public Boolean getShouldDecrementDesiredCapacity()
True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.public String toString()
toString
in class Object
Object.toString()
public DetachInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.