Interface AutoScalingPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutoScalingPolicy.Builder,,AutoScalingPolicy> SdkBuilder<AutoScalingPolicy.Builder,,AutoScalingPolicy> SdkPojo
- Enclosing class:
AutoScalingPolicy
-
Method Summary
Modifier and TypeMethodDescriptiondefault AutoScalingPolicy.Builderconstraints(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.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
-
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
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.Builderavoiding the need to create one manually viaScalingConstraints.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaScalingRule.builder().When the
Consumercompletes,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:
-