Interface ScalingRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScalingRule.Builder,ScalingRule>,SdkBuilder<ScalingRule.Builder,ScalingRule>,SdkPojo
- Enclosing class:
- ScalingRule
public static interface ScalingRule.Builder extends SdkPojo, CopyableBuilder<ScalingRule.Builder,ScalingRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ScalingRule.Builderaction(Consumer<ScalingAction.Builder> action)The conditions that trigger an automatic scaling activity.ScalingRule.Builderaction(ScalingAction action)The conditions that trigger an automatic scaling activity.ScalingRule.Builderdescription(String description)A friendly, more verbose description of the automatic scaling rule.ScalingRule.Buildername(String name)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.ScalingRule.Buildertrigger(ScalingTrigger trigger)The CloudWatch alarm definition that determines when automatic scaling activity is triggered.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
ScalingRule.Builder name(String 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
ScalingRule.Builder description(String 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
ScalingRule.Builder action(ScalingAction 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
default ScalingRule.Builder action(Consumer<ScalingAction.Builder> 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:
action(ScalingAction)
-
trigger
ScalingRule.Builder trigger(ScalingTrigger 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
default ScalingRule.Builder trigger(Consumer<ScalingTrigger.Builder> 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:
trigger(ScalingTrigger)
-
-