public class SetDesiredCapacityRequest extends AmazonWebServiceRequest implements Serializable
SetDesiredCapacity operation
.
Sets the desired size of the specified AutoScalingGroup.
Constructor and Description |
---|
SetDesiredCapacityRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
Integer |
getDesiredCapacity()
The new capacity setting for the Auto Scaling group.
|
Boolean |
getHonorCooldown()
By default,
SetDesiredCapacity overrides any cooldown
period associated with the Auto Scaling group. |
int |
hashCode() |
Boolean |
isHonorCooldown()
By default,
SetDesiredCapacity overrides any cooldown
period associated with the Auto Scaling group. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setDesiredCapacity(Integer desiredCapacity)
The new capacity setting for the Auto Scaling group.
|
void |
setHonorCooldown(Boolean honorCooldown)
By default,
SetDesiredCapacity overrides any cooldown
period associated with the Auto Scaling group. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDesiredCapacityRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
SetDesiredCapacityRequest |
withDesiredCapacity(Integer desiredCapacity)
The new capacity setting for the Auto Scaling group.
|
SetDesiredCapacityRequest |
withHonorCooldown(Boolean honorCooldown)
By default,
SetDesiredCapacity overrides any cooldown
period associated with the Auto Scaling group. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public SetDesiredCapacityRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public Integer getDesiredCapacity()
public void setDesiredCapacity(Integer desiredCapacity)
desiredCapacity
- The new capacity setting for the Auto Scaling group.public SetDesiredCapacityRequest withDesiredCapacity(Integer desiredCapacity)
Returns a reference to this object so that method calls can be chained together.
desiredCapacity
- The new capacity setting for the Auto Scaling group.public Boolean isHonorCooldown()
SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.public void setHonorCooldown(Boolean honorCooldown)
SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.honorCooldown
- By default, SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.public SetDesiredCapacityRequest withHonorCooldown(Boolean honorCooldown)
SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.
Returns a reference to this object so that method calls can be chained together.
honorCooldown
- By default, SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.public Boolean getHonorCooldown()
SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.SetDesiredCapacity
overrides any cooldown
period associated with the Auto Scaling group. Set to
True
if you want Auto Scaling to wait for the cooldown
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to the
new capacity setting.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.