public class EnterStandbyRequest extends AmazonWebServiceRequest implements Serializable
EnterStandby operation
.
Move instances in an Auto Scaling group into a Standby mode.
To learn more about how to put instances into a Standby mode, see Auto Scaling InService State .
NOOP
Constructor and Description |
---|
EnterStandbyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group from which to move instances into
Standby mode.
|
List<String> |
getInstanceIds()
The instances to move into Standby mode.
|
Boolean |
getShouldDecrementDesiredCapacity()
Specifies whether the instances moved to Standby mode count as part of
the Auto Scaling group's desired capacity.
|
int |
hashCode() |
Boolean |
isShouldDecrementDesiredCapacity()
Specifies whether the instances moved to Standby mode count as part of
the Auto Scaling group's desired capacity.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group from which to move instances into
Standby mode.
|
void |
setInstanceIds(Collection<String> instanceIds)
The instances to move into Standby mode.
|
void |
setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to Standby mode count as part of
the Auto Scaling group's desired capacity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnterStandbyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group from which to move instances into
Standby mode.
|
EnterStandbyRequest |
withInstanceIds(Collection<String> instanceIds)
The instances to move into Standby mode.
|
EnterStandbyRequest |
withInstanceIds(String... instanceIds)
The instances to move into Standby mode.
|
EnterStandbyRequest |
withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Specifies whether the instances moved to Standby mode count as part of
the Auto Scaling group's desired capacity.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- The instances to move into Standby mode. You must specify at least one
instance ID.public EnterStandbyRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The instances to move into Standby mode. You must specify at least one
instance ID.public EnterStandbyRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The instances to move into Standby mode. You must specify at least one
instance ID.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 Auto Scaling group from which to move instances into
Standby mode.public EnterStandbyRequest 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 Auto Scaling group from which to move instances into
Standby mode.public Boolean isShouldDecrementDesiredCapacity()
public void setShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
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 EnterStandbyRequest withShouldDecrementDesiredCapacity(Boolean shouldDecrementDesiredCapacity)
Returns a reference to this object so that method calls can be chained together.
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 Boolean getShouldDecrementDesiredCapacity()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.