AutoScaleSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.AutoScaleSettings

public final class AutoScaleSettings

AutoScale settings for the pool.

Constructor Summary

Constructor Description
AutoScaleSettings()

Method Summary

Modifier and Type Method and Description
Duration evaluationInterval()

Get the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.

String formula()

Get the formula property: A formula for the desired number of compute nodes in the pool.

void validate()

Validates the instance.

AutoScaleSettings withEvaluationInterval(Duration evaluationInterval)

Set the evaluationInterval property: The time interval at which to automatically adjust the pool size according to the autoscale formula.

AutoScaleSettings withFormula(String formula)

Set the formula property: A formula for the desired number of compute nodes in the pool.

Methods inherited from java.lang.Object

Constructor Details

AutoScaleSettings

public AutoScaleSettings()

Method Details

evaluationInterval

public Duration 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.

formula

public String formula()

Get the formula property: A formula for the desired number of compute nodes in the pool.

Returns:

the formula value.

validate

public void validate()

Validates the instance.

withEvaluationInterval

public AutoScaleSettings withEvaluationInterval(Duration evaluationInterval)

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.

withFormula

public AutoScaleSettings withFormula(String formula)

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.

Applies to