Package com.oracle.bmc.datascience.model
Class ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder
-
- Enclosing class:
- ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails
public static class ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedComputeClusterThresholdBasedAutoScalingPolicyDetailsbuild()ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Buildercopy(ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails model)ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.BuilderinitialInstanceCount(Integer initialInstanceCount)For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled.ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.BuildermaximumInstanceCount(Integer maximumInstanceCount)For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.BuilderminimumInstanceCount(Integer minimumInstanceCount)For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builderrules(List<ManagedComputeClusterMetricExpressionRule> rules)The list of autoscaling policy rules.
-
-
-
Method Detail
-
rules
public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder rules(List<ManagedComputeClusterMetricExpressionRule> rules)
The list of autoscaling policy rules.- Parameters:
rules- the value to set- Returns:
- this builder
-
maximumInstanceCount
public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder maximumInstanceCount(Integer maximumInstanceCount)
For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).- Parameters:
maximumInstanceCount- the value to set- Returns:
- this builder
-
minimumInstanceCount
public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder minimumInstanceCount(Integer minimumInstanceCount)
For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).- Parameters:
minimumInstanceCount- the value to set- Returns:
- this builder
-
initialInstanceCount
public ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.Builder initialInstanceCount(Integer initialInstanceCount)
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target 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 ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails build()
-
-