Class AutoScaleRun

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

public final class AutoScaleRun extends Object
The results and errors from an execution of a pool autoscale formula.
  • Constructor Details

    • AutoScaleRun

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

    • evaluationTime

      public OffsetDateTime evaluationTime()
      Get the evaluationTime property: The time at which the autoscale formula was last evaluated.
      Returns:
      the evaluationTime value.
    • withEvaluationTime

      public AutoScaleRun withEvaluationTime(OffsetDateTime evaluationTime)
      Set the evaluationTime property: The time at which the autoscale formula was last evaluated.
      Parameters:
      evaluationTime - the evaluationTime value to set.
      Returns:
      the AutoScaleRun object itself.
    • results

      public String results()
      Get the results property: The final values of all variables used in the evaluation of the autoscale formula.

      Each variable value is returned in the form $variable=value, and variables are separated by semicolons.

      Returns:
      the results value.
    • withResults

      public AutoScaleRun withResults(String results)
      Set the results property: The final values of all variables used in the evaluation of the autoscale formula.

      Each variable value is returned in the form $variable=value, and variables are separated by semicolons.

      Parameters:
      results - the results value to set.
      Returns:
      the AutoScaleRun object itself.
    • error

      public AutoScaleRunError error()
      Get the error property: An error that occurred when autoscaling a pool.
      Returns:
      the error value.
    • withError

      public AutoScaleRun withError(AutoScaleRunError error)
      Set the error property: An error that occurred when autoscaling a pool.
      Parameters:
      error - the error value to set.
      Returns:
      the AutoScaleRun object itself.
    • validate

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