Class AutoScaleRun
java.lang.Object
com.azure.resourcemanager.batch.models.AutoScaleRun
The results and errors from an execution of a pool autoscale formula.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: An error that occurred when autoscaling a pool.Get the evaluationTime property: The time at which the autoscale formula was last evaluated.results()
Get the results property: The final values of all variables used in the evaluation of the autoscale formula.void
validate()
Validates the instance.withError
(AutoScaleRunError error) Set the error property: An error that occurred when autoscaling a pool.withEvaluationTime
(OffsetDateTime evaluationTime) Set the evaluationTime property: The time at which the autoscale formula was last evaluated.withResults
(String results) Set the results property: The final values of all variables used in the evaluation of the autoscale formula.
-
Constructor Details
-
AutoScaleRun
public AutoScaleRun()Creates an instance of AutoScaleRun class.
-
-
Method Details
-
evaluationTime
Get the evaluationTime property: The time at which the autoscale formula was last evaluated.- Returns:
- the evaluationTime value.
-
withEvaluationTime
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
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
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
Get the error property: An error that occurred when autoscaling a pool.- Returns:
- the error value.
-
withError
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.
-