AutoScaleSettings Class

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

Implements

public final class AutoScaleSettings
implements JsonSerializable<AutoScaleSettings>

AutoScale settings for the pool.

Constructor Summary

Constructor Description
AutoScaleSettings()

Creates an instance of AutoScaleSettings class.

Method Summary

Modifier and Type Method and Description
Duration evaluationInterval()

Get the evaluationInterval property: If omitted, the default value is 15 minutes (PT15M).

String formula()

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

static AutoScaleSettings fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoScaleSettings withEvaluationInterval(Duration evaluationInterval)

Set the evaluationInterval property: If omitted, the default value is 15 minutes (PT15M).

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()

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:

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.

fromJson

public static AutoScaleSettings fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutoScaleSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

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