CopyableBuilder<AutoScalingPolicy.Builder,AutoScalingPolicy>
, SdkBuilder<AutoScalingPolicy.Builder,AutoScalingPolicy>
public static interface AutoScalingPolicy.Builder extends CopyableBuilder<AutoScalingPolicy.Builder,AutoScalingPolicy>
Modifier and Type | Method | Description |
---|---|---|
AutoScalingPolicy.Builder |
constraints(ScalingConstraints constraints) |
The upper and lower EC2 instance limits for an automatic scaling policy.
|
AutoScalingPolicy.Builder |
rules(Collection<ScalingRule> rules) |
The scale-in and scale-out rules that comprise the automatic scaling policy.
|
AutoScalingPolicy.Builder |
rules(ScalingRule... rules) |
The scale-in and scale-out rules that comprise the automatic scaling policy.
|
copy
apply, build
AutoScalingPolicy.Builder constraints(ScalingConstraints constraints)
The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
constraints
- The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity
will not cause an instance group to grow above or below these limits.AutoScalingPolicy.Builder rules(Collection<ScalingRule> rules)
The scale-in and scale-out rules that comprise the automatic scaling policy.
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy.AutoScalingPolicy.Builder rules(ScalingRule... rules)
The scale-in and scale-out rules that comprise the automatic scaling policy.
NOTE: This method appends the values to the existing list (if any). Use
#setRules(java.util.Collection)
or #withRules(java.util.Collection)
if you want to override
the existing values.
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.