AutoScaleSettings Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. AutoScaleSettings
- com.
Implements
public final class AutoScaleSettings
implements JsonSerializable<AutoScaleSettings>
AutoScale settings for the pool.
Constructor Summary
Constructor | Description |
---|---|
AutoScaleSettings() |
Creates an instance of Auto |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
evaluationInterval()
Get the evaluation |
String |
formula()
Get the formula property: A formula for the desired number of compute nodes in the pool. |
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Auto |
withEvaluationInterval(Duration evaluationInterval)
Set the evaluation |
Auto |
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()
Creates an instance of AutoScaleSettings class.
Method Details
evaluationInterval
public Duration evaluationInterval()
Get the evaluationInterval property: If omitted, the default value is 15 minutes (PT15M).
Returns:
formula
public String formula()
Get the formula property: A formula for the desired number of compute nodes in the pool.
Returns:
fromJson
public static AutoScaleSettings fromJson(JsonReader jsonReader)
Reads an instance of AutoScaleSettings from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEvaluationInterval
public AutoScaleSettings withEvaluationInterval(Duration evaluationInterval)
Set the evaluationInterval property: If omitted, the default value is 15 minutes (PT15M).
Parameters:
Returns:
withFormula
public AutoScaleSettings withFormula(String formula)
Set the formula property: A formula for the desired number of compute nodes in the pool.
Parameters:
Returns:
Applies to
Azure SDK for Java