ScaleSettings Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ScaleSettings
- com.
Implements
public final class ScaleSettings
implements JsonSerializable<ScaleSettings>
Scale settings for the pool Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
Constructor Summary
Constructor | Description |
---|---|
ScaleSettings() |
Creates an instance of Scale |
Method Summary
Modifier and Type | Method and Description |
---|---|
Auto |
autoScale()
Get the auto |
Fixed |
fixedScale()
Get the fixed |
static
Scale |
fromJson(JsonReader jsonReader)
Reads an instance of Scale |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Scale |
withAutoScale(AutoScaleSettings autoScale)
Set the auto |
Scale |
withFixedScale(FixedScaleSettings fixedScale)
Set the fixed |
Methods inherited from java.lang.Object
Constructor Details
ScaleSettings
public ScaleSettings()
Creates an instance of ScaleSettings class.
Method Details
autoScale
public AutoScaleSettings autoScale()
Get the autoScale property: This property and fixedScale are mutually exclusive and one of the properties must be specified.
Returns:
fixedScale
public FixedScaleSettings fixedScale()
Get the fixedScale property: This property and autoScale are mutually exclusive and one of the properties must be specified.
Returns:
fromJson
public static ScaleSettings fromJson(JsonReader jsonReader)
Reads an instance of ScaleSettings from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAutoScale
public ScaleSettings withAutoScale(AutoScaleSettings autoScale)
Set the autoScale property: This property and fixedScale are mutually exclusive and one of the properties must be specified.
Parameters:
Returns:
withFixedScale
public ScaleSettings withFixedScale(FixedScaleSettings fixedScale)
Set the fixedScale property: This property and autoScale are mutually exclusive and one of the properties must be specified.
Parameters:
Returns:
Applies to
Azure SDK for Java