@Generated(value="software.amazon.awssdk:codegen") public final class ScalingRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScalingRule.Builder,ScalingRule>
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
Modifier and Type | Class and Description |
---|---|
static interface |
ScalingRule.Builder |
Modifier and Type | Method and Description |
---|---|
ScalingAction |
action()
The conditions that trigger an automatic scaling activity.
|
static ScalingRule.Builder |
builder() |
String |
description()
A friendly, more verbose description of the automatic scaling rule.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name used to identify an automatic scaling rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ScalingRule.Builder> |
serializableBuilderClass() |
ScalingRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ScalingTrigger |
trigger()
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String name()
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
public String description()
A friendly, more verbose description of the automatic scaling rule.
public ScalingAction action()
The conditions that trigger an automatic scaling activity.
public ScalingTrigger trigger()
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
public ScalingRule.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ScalingRule.Builder,ScalingRule>
public static ScalingRule.Builder builder()
public static Class<? extends ScalingRule.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.