public static class AutoScalePolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AutoScalePolicy |
build() |
AutoScalePolicy.Builder |
copy(AutoScalePolicy model) |
AutoScalePolicy.Builder |
policyType(AutoScalePolicy.PolicyType policyType)
Types of autoscale policies.
|
AutoScalePolicy.Builder |
rules(List<AutoScalePolicyRule> rules)
The list of rules for autoscaling.
|
public AutoScalePolicy.Builder policyType(AutoScalePolicy.PolicyType policyType)
Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)
policyType
- the value to setpublic AutoScalePolicy.Builder rules(List<AutoScalePolicyRule> rules)
The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.
rules
- the value to setpublic AutoScalePolicy build()
public AutoScalePolicy.Builder copy(AutoScalePolicy model)
Copyright © 2016–2024. All rights reserved.