public static class AutoScalingPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AutoScalingPolicy.Builder |
autoScalingPolicies(List<AutoScalingPolicyDetails> autoScalingPolicies)
The list of autoscaling policy details.
|
AutoScalingPolicy |
build() |
AutoScalingPolicy.Builder |
coolDownInSeconds(Integer coolDownInSeconds)
For threshold-based autoscaling policies, this value is the minimum period of time to
wait between scaling actions.
|
AutoScalingPolicy.Builder |
copy(AutoScalingPolicy model) |
AutoScalingPolicy.Builder |
isEnabled(Boolean isEnabled)
Whether the autoscaling policy is enabled.
|
public AutoScalingPolicy.Builder coolDownInSeconds(Integer coolDownInSeconds)
For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.
coolDownInSeconds
- the value to setpublic AutoScalingPolicy.Builder isEnabled(Boolean isEnabled)
Whether the autoscaling policy is enabled.
isEnabled
- the value to setpublic AutoScalingPolicy.Builder autoScalingPolicies(List<AutoScalingPolicyDetails> autoScalingPolicies)
The list of autoscaling policy details.
autoScalingPolicies
- the value to setpublic AutoScalingPolicy build()
public AutoScalingPolicy.Builder copy(AutoScalingPolicy model)
Copyright © 2016–2024. All rights reserved.