Interface AutoScalingPolicyDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutoScalingPolicyDescription.Builder,
,AutoScalingPolicyDescription> SdkBuilder<AutoScalingPolicyDescription.Builder,
,AutoScalingPolicyDescription> SdkPojo
- Enclosing class:
AutoScalingPolicyDescription
-
Method Summary
Modifier and TypeMethodDescriptionconstraints
(Consumer<ScalingConstraints.Builder> constraints) The upper and lower Amazon EC2 instance limits for an automatic scaling policy.constraints
(ScalingConstraints constraints) The upper and lower Amazon EC2 instance limits for an automatic scaling policy.rules
(Collection<ScalingRule> rules) The scale-in and scale-out rules that comprise the automatic scaling policy.rules
(Consumer<ScalingRule.Builder>... rules) The scale-in and scale-out rules that comprise the automatic scaling policy.rules
(ScalingRule... rules) The scale-in and scale-out rules that comprise the automatic scaling policy.The status of an automatic scaling policy.status
(AutoScalingPolicyStatus status) The status of an automatic scaling policy.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, sdkFields
-
Method Details
-
status
The status of an automatic scaling policy.
- Parameters:
status
- The status of an automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default AutoScalingPolicyDescription.Builder status(Consumer<AutoScalingPolicyStatus.Builder> status) The status of an automatic scaling policy.
This is a convenience method that creates an instance of theAutoScalingPolicyStatus.Builder
avoiding the need to create one manually viaAutoScalingPolicyStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(AutoScalingPolicyStatus)
.- Parameters:
status
- a consumer that will call methods onAutoScalingPolicyStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
constraints
The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
- Parameters:
constraints
- The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraints
default AutoScalingPolicyDescription.Builder constraints(Consumer<ScalingConstraints.Builder> constraints) The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
This is a convenience method that creates an instance of theScalingConstraints.Builder
avoiding the need to create one manually viaScalingConstraints.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconstraints(ScalingConstraints)
.- Parameters:
constraints
- a consumer that will call methods onScalingConstraints.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
The scale-in and scale-out rules that comprise the automatic scaling policy.
- Parameters:
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The scale-in and scale-out rules that comprise the automatic scaling policy.
- Parameters:
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The scale-in and scale-out rules that comprise the automatic scaling policy.
This is a convenience method that creates an instance of theScalingRule.Builder
avoiding the need to create one manually viaScalingRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<ScalingRule>)
.- Parameters:
rules
- a consumer that will call methods onScalingRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-