Class AutoScaleSettings

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

public final class AutoScaleSettings extends Object
AutoScale settings for the pool.
  • Constructor Details

    • AutoScaleSettings

      public AutoScaleSettings()
      Creates an instance of AutoScaleSettings class.
  • Method Details

    • formula

      public String formula()
      Get the formula property: A formula for the desired number of compute nodes in the pool.
      Returns:
      the formula value.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.