public class DetachInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupName
The name of the group.
|
private SdkInternalList<java.lang.String> |
instanceIds
One or more instance IDs.
|
private java.lang.Boolean |
shouldDecrementDesiredCapacity
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
NOOP
Constructor and Description |
---|
DetachInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
DetachInstancesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more instance IDs.
|
java.lang.Boolean |
getShouldDecrementDesiredCapacity()
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
int |
hashCode() |
java.lang.Boolean |
isShouldDecrementDesiredCapacity()
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
void |
setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachInstancesRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
DetachInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
DetachInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
|
DetachInstancesRequest |
withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If
True , the Auto Scaling group decrements the desired
capacity value by the number of instances detached. |
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 SdkInternalList<java.lang.String> instanceIds
One or more instance IDs.
private java.lang.String autoScalingGroupName
The name of the group.
private java.lang.Boolean shouldDecrementDesiredCapacity
If True
, the Auto Scaling group decrements the desired
capacity value by the number of instances detached.
public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public DetachInstancesRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
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.
instanceIds
- One or more instance IDs.public DetachInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public java.lang.String getAutoScalingGroupName()
The name of the group.
public DetachInstancesRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If 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 java.lang.Boolean getShouldDecrementDesiredCapacity()
If 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 DetachInstancesRequest withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
If 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 java.lang.Boolean isShouldDecrementDesiredCapacity()
If 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 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 DetachInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()