Class AutoScaleSettings
java.lang.Object
com.azure.resourcemanager.batch.models.AutoScaleSettings
AutoScale settings for the pool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.formula()
Get the formula property: A formula for the desired number of compute nodes in the pool.void
validate()
Validates the instance.withEvaluationInterval
(Duration evaluationInterval) Set the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.withFormula
(String formula) Set the formula property: A formula for the desired number of compute nodes in the pool.
-
Constructor Details
-
AutoScaleSettings
public AutoScaleSettings()Creates an instance of AutoScaleSettings class.
-
-
Method Details
-
formula
Get the formula property: A formula for the desired number of compute nodes in the pool.- Returns:
- the formula value.
-
withFormula
Set the formula property: A formula for the desired number of compute nodes in the pool.- Parameters:
formula
- the formula value to set.- Returns:
- the AutoScaleSettings object itself.
-
evaluationInterval
Get the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.If omitted, the default value is 15 minutes (PT15M).
- Returns:
- the evaluationInterval value.
-
withEvaluationInterval
Set the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.If omitted, the default value is 15 minutes (PT15M).
- Parameters:
evaluationInterval
- the evaluationInterval value to set.- Returns:
- the AutoScaleSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-