public class SetDesiredCapacityRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.
Constructor and Description |
---|
SetDesiredCapacityRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
java.lang.Integer |
getDesiredCapacity()
The number of EC2 instances that should be running in the Auto Scaling
group.
|
java.lang.Boolean |
getHonorCooldown()
By default,
SetDesiredCapacity overrides any cooldown period
associated with the Auto Scaling group. |
int |
hashCode() |
java.lang.Boolean |
isHonorCooldown()
By default,
SetDesiredCapacity overrides any cooldown period
associated with the Auto Scaling group. |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling
group.
|
void |
setHonorCooldown(java.lang.Boolean honorCooldown)
By default,
SetDesiredCapacity overrides any cooldown period
associated with the Auto Scaling group. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDesiredCapacityRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
SetDesiredCapacityRequest |
withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling
group.
|
SetDesiredCapacityRequest |
withHonorCooldown(java.lang.Boolean honorCooldown)
By default,
SetDesiredCapacity overrides any cooldown period
associated with the Auto Scaling group. |
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the Auto Scaling group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.
public SetDesiredCapacityRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
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 java.lang.Integer getDesiredCapacity()
The number of EC2 instances that should be running in the Auto Scaling group.
The number of EC2 instances that should be running in the Auto Scaling group.
public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling group.
desiredCapacity
- The number of EC2 instances that should be running in the Auto Scaling group.
public SetDesiredCapacityRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
desiredCapacity
- The number of EC2 instances that should be running in the Auto Scaling group.
public java.lang.Boolean isHonorCooldown()
By default, SetDesiredCapacity
overrides any cooldown period
associated with the Auto Scaling group. Specify True
to make
Auto Scaling to wait for the cool-down period associated with the Auto
Scaling group to complete before initiating a scaling activity to set
your Auto Scaling group to its new capacity.
By default, SetDesiredCapacity
overrides any
cooldown period associated with the Auto Scaling group. Specify
True
to make Auto Scaling to wait for the cool-down
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to
its new capacity.
public java.lang.Boolean getHonorCooldown()
By default, SetDesiredCapacity
overrides any cooldown period
associated with the Auto Scaling group. Specify True
to make
Auto Scaling to wait for the cool-down period associated with the Auto
Scaling group to complete before initiating a scaling activity to set
your Auto Scaling group to its new capacity.
By default, SetDesiredCapacity
overrides any
cooldown period associated with the Auto Scaling group. Specify
True
to make Auto Scaling to wait for the cool-down
period associated with the Auto Scaling group to complete before
initiating a scaling activity to set your Auto Scaling group to
its new capacity.
public void setHonorCooldown(java.lang.Boolean honorCooldown)
By default, SetDesiredCapacity
overrides any cooldown period
associated with the Auto Scaling group. Specify True
to make
Auto Scaling to wait for the cool-down period associated with the Auto
Scaling group to complete before initiating a scaling activity to set
your Auto Scaling group to its new capacity.
honorCooldown
-
By default, SetDesiredCapacity
overrides any
cooldown period associated with the Auto Scaling group.
Specify True
to make Auto Scaling to wait for the
cool-down period associated with the Auto Scaling group to
complete before initiating a scaling activity to set your Auto
Scaling group to its new capacity.
public SetDesiredCapacityRequest withHonorCooldown(java.lang.Boolean honorCooldown)
By default, SetDesiredCapacity
overrides any cooldown period
associated with the Auto Scaling group. Specify True
to make
Auto Scaling to wait for the cool-down period associated with the Auto
Scaling group to complete before initiating a scaling activity to set
your Auto Scaling group to its new capacity.
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.
Specify True
to make Auto Scaling to wait for the
cool-down period associated with the Auto Scaling group to
complete before initiating a scaling activity to set your Auto
Scaling group to its new capacity.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.