public static class ThresholdBasedAutoScalingPolicyDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ThresholdBasedAutoScalingPolicyDetails |
build() |
ThresholdBasedAutoScalingPolicyDetails.Builder |
copy(ThresholdBasedAutoScalingPolicyDetails model) |
ThresholdBasedAutoScalingPolicyDetails.Builder |
initialInstanceCount(Integer initialInstanceCount)
For a threshold-based autoscaling policy, this value is the initial number of instances
to launch in the model deployment immediately after autoscaling is enabled.
|
ThresholdBasedAutoScalingPolicyDetails.Builder |
maximumInstanceCount(Integer maximumInstanceCount)
For a threshold-based autoscaling policy, this value is the maximum number of instances
the model deployment is allowed to increase to (scale out).
|
ThresholdBasedAutoScalingPolicyDetails.Builder |
minimumInstanceCount(Integer minimumInstanceCount)
For a threshold-based autoscaling policy, this value is the minimum number of instances
the model deployment is allowed to decrease to (scale in).
|
ThresholdBasedAutoScalingPolicyDetails.Builder |
rules(List<MetricExpressionRule> rules)
The list of autoscaling policy rules.
|
public ThresholdBasedAutoScalingPolicyDetails.Builder rules(List<MetricExpressionRule> rules)
The list of autoscaling policy rules.
rules
- the value to setpublic ThresholdBasedAutoScalingPolicyDetails.Builder maximumInstanceCount(Integer maximumInstanceCount)
For a threshold-based autoscaling policy, this value is the maximum number of instances the model deployment is allowed to increase to (scale out).
maximumInstanceCount
- the value to setpublic ThresholdBasedAutoScalingPolicyDetails.Builder minimumInstanceCount(Integer minimumInstanceCount)
For a threshold-based autoscaling policy, this value is the minimum number of instances the model deployment is allowed to decrease to (scale in).
minimumInstanceCount
- the value to setpublic ThresholdBasedAutoScalingPolicyDetails.Builder initialInstanceCount(Integer initialInstanceCount)
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the model deployment immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
initialInstanceCount
- the value to setpublic ThresholdBasedAutoScalingPolicyDetails build()
public ThresholdBasedAutoScalingPolicyDetails.Builder copy(ThresholdBasedAutoScalingPolicyDetails model)
Copyright © 2016–2024. All rights reserved.