Package com.oracle.bmc.datascience.model
Class ThresholdBasedAutoScalingPolicyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ThresholdBasedAutoScalingPolicyDetails.Builder
-
- Enclosing class:
- ThresholdBasedAutoScalingPolicyDetails
public static class ThresholdBasedAutoScalingPolicyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
rules
public ThresholdBasedAutoScalingPolicyDetails.Builder rules(List<MetricExpressionRule> rules)
The list of autoscaling policy rules.- Parameters:
rules
- the value to set- Returns:
- this builder
-
maximumInstanceCount
public 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).- Parameters:
maximumInstanceCount
- the value to set- Returns:
- this builder
-
minimumInstanceCount
public 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).- Parameters:
minimumInstanceCount
- the value to set- Returns:
- this builder
-
initialInstanceCount
public 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.
- Parameters:
initialInstanceCount
- the value to set- Returns:
- this builder
-
build
public ThresholdBasedAutoScalingPolicyDetails build()
-
copy
public ThresholdBasedAutoScalingPolicyDetails.Builder copy(ThresholdBasedAutoScalingPolicyDetails model)
-
-