@Generated(value="software.amazon.awssdk:codegen") public final class ExecutePolicyRequest extends AutoScalingRequest implements ToCopyableBuilder<ExecutePolicyRequest.Builder,ExecutePolicyRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ExecutePolicyRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
autoScalingGroupName()
The name of the Auto Scaling group.
|
Double |
breachThreshold()
The breach threshold for the alarm.
|
static ExecutePolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
honorCooldown()
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.
|
Double |
metricValue()
The metric value to compare to
BreachThreshold . |
String |
policyName()
The name or ARN of the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ExecutePolicyRequest.Builder> |
serializableBuilderClass() |
ExecutePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String autoScalingGroupName()
The name of the Auto Scaling group.
public final String policyName()
The name or ARN of the policy.
public final Boolean honorCooldown()
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling cooldowns for Amazon EC2 Auto
Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling cooldowns for Amazon
EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
public final Double 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.
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.
Required if the policy type is StepScaling
and not supported otherwise.
public final Double breachThreshold()
The breach threshold for the alarm.
Required if the policy type is StepScaling
and not supported otherwise.
Required if the policy type is StepScaling
and not supported otherwise.
public ExecutePolicyRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ExecutePolicyRequest.Builder,ExecutePolicyRequest>
toBuilder
in class AutoScalingRequest
public static ExecutePolicyRequest.Builder builder()
public static Class<? extends ExecutePolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2023. All rights reserved.