public class ExecutePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ExecutePolicy operation
.
Executes the specified policy.
NOOP
Constructor and Description |
---|
ExecutePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
ExecutePolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
Double |
getBreachThreshold()
The breach threshold for the alarm.
|
Boolean |
getHonorCooldown()
If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy.
|
Double |
getMetricValue()
The metric value to compare to
BreachThreshold . |
String |
getPolicyName()
The name or ARN of the policy.
|
int |
hashCode() |
Boolean |
isHonorCooldown()
If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setBreachThreshold(Double breachThreshold)
The breach threshold for the alarm.
|
void |
setHonorCooldown(Boolean honorCooldown)
If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy.
|
void |
setMetricValue(Double metricValue)
The metric value to compare to
BreachThreshold . |
void |
setPolicyName(String policyName)
The name or ARN of the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ExecutePolicyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
ExecutePolicyRequest |
withBreachThreshold(Double breachThreshold)
The breach threshold for the alarm.
|
ExecutePolicyRequest |
withHonorCooldown(Boolean honorCooldown)
If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy.
|
ExecutePolicyRequest |
withMetricValue(Double metricValue)
The metric value to compare to
BreachThreshold . |
ExecutePolicyRequest |
withPolicyName(String policyName)
The name or ARN of the policy.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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 or Amazon Resource Name (ARN) of the Auto Scaling group.public ExecutePolicyRequest 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 Amazon Resource Name (ARN) of the Auto Scaling group.public String getPolicyName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
policyName
- The name or ARN of the policy.public ExecutePolicyRequest withPolicyName(String policyName)
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]*
policyName
- The name or ARN of the policy.public Boolean isHonorCooldown()
This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public void setHonorCooldown(Boolean honorCooldown)
This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
honorCooldown
- If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy. Otherwise, Auto Scaling
executes the policy without waiting for the cooldown period to
complete. This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public ExecutePolicyRequest withHonorCooldown(Boolean honorCooldown)
This parameter is not supported if the policy type is
StepScaling
.
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.
honorCooldown
- If this parameter is true, Auto Scaling waits for the cooldown period
to complete before executing the policy. Otherwise, Auto Scaling
executes the policy without waiting for the cooldown period to
complete. This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public Boolean getHonorCooldown()
This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
This parameter is not supported if the policy type is
StepScaling
.
For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.
public Double getMetricValue()
BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
public void setMetricValue(Double metricValue)
BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
metricValue
- The metric value to compare to BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
public ExecutePolicyRequest withMetricValue(Double metricValue)
BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
Returns a reference to this object so that method calls can be chained together.
metricValue
- The metric value to compare to BreachThreshold
. This
enables you to execute a policy of type StepScaling
and
determine which step adjustment to use. For example, if the breach
threshold is 50 and you want to use a step adjustment with a lower
bound of 0 and an upper bound of 10, you can set the metric value to
59. If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
This
parameter is required if the policy type is StepScaling
and not supported otherwise.
public Double getBreachThreshold()
This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
public void setBreachThreshold(Double breachThreshold)
This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
breachThreshold
- The breach threshold for the alarm. This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
public ExecutePolicyRequest withBreachThreshold(Double breachThreshold)
This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
Returns a reference to this object so that method calls can be chained together.
breachThreshold
- The breach threshold for the alarm. This parameter is required if
the policy type is StepScaling
and not supported
otherwise.
public String toString()
toString
in class Object
Object.toString()
public ExecutePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.