Interface ScalingRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScalingRule.Builder,,ScalingRule> SdkBuilder<ScalingRule.Builder,,ScalingRule> SdkPojo
- Enclosing class:
ScalingRule
@Mutable
@NotThreadSafe
public static interface ScalingRule.Builder
extends SdkPojo, CopyableBuilder<ScalingRule.Builder,ScalingRule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ScalingRule.Builderaction(Consumer<ScalingAction.Builder> action) The conditions that trigger an automatic scaling activity.action(ScalingAction action) The conditions that trigger an automatic scaling activity.description(String description) A friendly, more verbose description of the automatic scaling rule.The name used to identify an automatic scaling rule.default ScalingRule.Buildertrigger(Consumer<ScalingTrigger.Builder> trigger) The CloudWatch alarm definition that determines when automatic scaling activity is triggered.trigger(ScalingTrigger trigger) The CloudWatch alarm definition that determines when automatic scaling activity is triggered.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
- Parameters:
name- The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A friendly, more verbose description of the automatic scaling rule.
- Parameters:
description- A friendly, more verbose description of the automatic scaling rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The conditions that trigger an automatic scaling activity.
- Parameters:
action- The conditions that trigger an automatic scaling activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The conditions that trigger an automatic scaling activity.
This is a convenience method that creates an instance of theScalingAction.Builderavoiding the need to create one manually viaScalingAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(ScalingAction).- Parameters:
action- a consumer that will call methods onScalingAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trigger
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
- Parameters:
trigger- The CloudWatch alarm definition that determines when automatic scaling activity is triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trigger
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
This is a convenience method that creates an instance of theScalingTrigger.Builderavoiding the need to create one manually viaScalingTrigger.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrigger(ScalingTrigger).- Parameters:
trigger- a consumer that will call methods onScalingTrigger.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-