Package com.oracle.bmc.datascience.model
Class ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder
-
- Enclosing class:
- ManagedComputeClusterWorkloadThresholdBasedPolicyDetails
public static class ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
rules
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder rules(List<ManagedComputeClusterWorkloadMetricExpressionRule> rules)
The list of autoscaling policy rules for workload scaling..- Parameters:
rules- the value to set- Returns:
- this builder
-
maximumInstanceCount
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder maximumInstanceCount(Integer maximumInstanceCount)
For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out).- Parameters:
maximumInstanceCount- the value to set- Returns:
- this builder
-
minimumInstanceCount
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder minimumInstanceCount(Integer minimumInstanceCount)
For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in).This should be zero for scale-to-zero.
- Parameters:
minimumInstanceCount- the value to set- Returns:
- this builder
-
initialInstanceCount
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder initialInstanceCount(Integer initialInstanceCount)
For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch 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
-
scaleInPolicy
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder scaleInPolicy(ManagedComputeClusterWorkloadScalePolicy scaleInPolicy)
-
scaleOutPolicy
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder scaleOutPolicy(ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy)
-
build
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails build()
-
-