Package com.oracle.bmc.autoscaling.model
Class Capacity.Builder
- java.lang.Object
-
- com.oracle.bmc.autoscaling.model.Capacity.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Capacity
build()
Capacity.Builder
copy(Capacity model)
Capacity.Builder
initial(Integer initial)
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled.Capacity.Builder
max(Integer max)
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).Capacity.Builder
min(Integer min)
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
-
-
-
Method Detail
-
max
public Capacity.Builder max(Integer max)
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).For a schedule-based autoscaling policy, this value is not used.
- Parameters:
max
- the value to set- Returns:
- this builder
-
min
public Capacity.Builder min(Integer min)
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).For a schedule-based autoscaling policy, this value is not used.
- Parameters:
min
- the value to set- Returns:
- this builder
-
initial
public Capacity.Builder initial(Integer initial)
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled.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.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- Parameters:
initial
- the value to set- Returns:
- this builder
-
build
public Capacity build()
-
copy
public Capacity.Builder copy(Capacity model)
-
-