public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutScalingPolicy operation.
Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
NOOP| Constructor and Description |
|---|
PutScalingPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutScalingPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAdjustmentType()
The adjustment type.
|
String |
getAutoScalingGroupName()
The name or ARN of the group.
|
Integer |
getCooldown()
The amount of time, in seconds, after a scaling activity completes and
before the next scaling activity can start.
|
Integer |
getMinAdjustmentStep()
Used with
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
String |
getPolicyName()
The name of the policy.
|
Integer |
getScalingAdjustment()
The number of instances by which to scale.
|
int |
hashCode() |
void |
setAdjustmentType(String adjustmentType)
The adjustment type.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the group.
|
void |
setCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes and
before the next scaling activity can start.
|
void |
setMinAdjustmentStep(Integer minAdjustmentStep)
Used with
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
void |
setPolicyName(String policyName)
The name of the policy.
|
void |
setScalingAdjustment(Integer scalingAdjustment)
The number of instances by which to scale.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutScalingPolicyRequest |
withAdjustmentType(String adjustmentType)
The adjustment type.
|
PutScalingPolicyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the group.
|
PutScalingPolicyRequest |
withCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes and
before the next scaling activity can start.
|
PutScalingPolicyRequest |
withMinAdjustmentStep(Integer minAdjustmentStep)
Used with
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
PutScalingPolicyRequest |
withPolicyName(String policyName)
The name of the policy.
|
PutScalingPolicyRequest |
withScalingAdjustment(Integer scalingAdjustment)
The number of instances by which to scale.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 or ARN of the group.public PutScalingPolicyRequest 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 or ARN of the group.public String getPolicyName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
policyName - The name of the policy.public PutScalingPolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
policyName - The name of the policy.public Integer getScalingAdjustment()
AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.public void setScalingAdjustment(Integer scalingAdjustment)
AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.scalingAdjustment - The number of instances by which to scale. AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.public PutScalingPolicyRequest withScalingAdjustment(Integer scalingAdjustment)
AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.
Returns a reference to this object so that method calls can be chained together.
scalingAdjustment - The number of instances by which to scale. AdjustmentType
determines the interpretation of this number (for example, as an
absolute number or as a percentage of the existing Auto Scaling group
size). A positive increment adds to the current capacity and a
negative value removes from the current capacity.public String getAdjustmentType()
ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
public void setAdjustmentType(String adjustmentType)
ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
adjustmentType - The adjustment type. Valid values are ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
public PutScalingPolicyRequest withAdjustmentType(String adjustmentType)
ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
adjustmentType - The adjustment type. Valid values are ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.
public Integer getCooldown()
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public void setCooldown(Integer cooldown)
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
cooldown - The amount of time, in seconds, after a scaling activity completes and
before the next scaling activity can start. For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public PutScalingPolicyRequest withCooldown(Integer cooldown)
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
Returns a reference to this object so that method calls can be chained together.
cooldown - The amount of time, in seconds, after a scaling activity completes and
before the next scaling activity can start. For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public Integer getMinAdjustmentStep()
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
public void setMinAdjustmentStep(Integer minAdjustmentStep)
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
minAdjustmentStep - Used with AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
public PutScalingPolicyRequest withMinAdjustmentStep(Integer minAdjustmentStep)
AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
Returns a reference to this object so that method calls can be chained together.
minAdjustmentStep - Used with AdjustmentType with the value
PercentChangeInCapacity, the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError if you use MinAdjustmentStep
on a policy with an AdjustmentType other than
PercentChangeInCapacity.
public String toString()
toString in class ObjectObject.toString()public PutScalingPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.