public class EnterStandbyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupName
The name of the Auto Scaling group.
|
private SdkInternalList<java.lang.String> |
instanceIds
One or more instances to move into
Standby mode. |
private java.lang.Boolean |
shouldDecrementDesiredCapacity
Specifies whether the instances moved to
Standby mode count
as part of the Auto Scaling group's desired capacity. |
NOOP
Constructor and Description |
---|
EnterStandbyRequest() |
Modifier and Type | Method and Description |
---|---|
EnterStandbyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more instances to move into
Standby mode. |
java.lang.Boolean |
getShouldDecrementDesiredCapacity()
Specifies whether the instances moved to
Standby mode count
as part of the Auto Scaling group's desired capacity. |
int |
hashCode() |
java.lang.Boolean |
isShouldDecrementDesiredCapacity()
Specifies whether the instances moved to
Standby mode count
as part of the Auto Scaling group's desired capacity. |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instances to move into
Standby mode. |
void |
setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to
Standby mode count
as part of the Auto Scaling group's desired capacity. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnterStandbyRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
EnterStandbyRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instances to move into
Standby mode. |
EnterStandbyRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more instances to move into
Standby mode. |
EnterStandbyRequest |
withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to
Standby mode count
as part of the Auto Scaling group's desired capacity. |
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 instances to move into Standby
mode. You must
specify at least one instance ID.
private java.lang.String autoScalingGroupName
The name of the Auto Scaling group.
private java.lang.Boolean shouldDecrementDesiredCapacity
Specifies whether the instances moved to Standby
mode count
as part of the Auto Scaling group's desired capacity. If set, the desired
capacity for the Auto Scaling group decrements by the number of instances
moved to Standby
mode.
public java.util.List<java.lang.String> getInstanceIds()
One or more instances to move into Standby
mode. You must
specify at least one instance ID.
Standby
mode. You
must specify at least one instance ID.public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instances to move into Standby
mode. You must
specify at least one instance ID.
instanceIds
- One or more instances to move into Standby
mode. You
must specify at least one instance ID.public EnterStandbyRequest withInstanceIds(java.lang.String... instanceIds)
One or more instances to move into Standby
mode. You must
specify at least one instance ID.
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 instances to move into Standby
mode. You
must specify at least one instance ID.public EnterStandbyRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instances to move into Standby
mode. You must
specify at least one instance ID.
instanceIds
- One or more instances to move into Standby
mode. You
must specify at least one instance ID.public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.
public EnterStandbyRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to Standby
mode count
as part of the Auto Scaling group's desired capacity. If set, the desired
capacity for the Auto Scaling group decrements by the number of instances
moved to Standby
mode.
shouldDecrementDesiredCapacity
- Specifies whether the instances moved to Standby
mode
count as part of the Auto Scaling group's desired capacity. If
set, the desired capacity for the Auto Scaling group decrements by
the number of instances moved to Standby
mode.public java.lang.Boolean getShouldDecrementDesiredCapacity()
Specifies whether the instances moved to Standby
mode count
as part of the Auto Scaling group's desired capacity. If set, the desired
capacity for the Auto Scaling group decrements by the number of instances
moved to Standby
mode.
Standby
mode count as part of the Auto Scaling group's desired capacity.
If set, the desired capacity for the Auto Scaling group
decrements by the number of instances moved to
Standby
mode.public EnterStandbyRequest withShouldDecrementDesiredCapacity(java.lang.Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to Standby
mode count
as part of the Auto Scaling group's desired capacity. If set, the desired
capacity for the Auto Scaling group decrements by the number of instances
moved to Standby
mode.
shouldDecrementDesiredCapacity
- Specifies whether the instances moved to Standby
mode
count as part of the Auto Scaling group's desired capacity. If
set, the desired capacity for the Auto Scaling group decrements by
the number of instances moved to Standby
mode.public java.lang.Boolean isShouldDecrementDesiredCapacity()
Specifies whether the instances moved to Standby
mode count
as part of the Auto Scaling group's desired capacity. If set, the desired
capacity for the Auto Scaling group decrements by the number of instances
moved to Standby
mode.
Standby
mode count as part of the Auto Scaling group's desired capacity.
If set, the desired capacity for the Auto Scaling group
decrements by the number of instances moved to
Standby
mode.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 EnterStandbyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()