Class ScaleSettings
java.lang.Object
com.azure.resourcemanager.batch.models.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
-
Method Summary
Modifier and TypeMethodDescriptionGet the autoScale property: AutoScale settings for the pool.Get the fixedScale property: Fixed scale settings for the pool.void
validate()
Validates the instance.withAutoScale
(AutoScaleSettings autoScale) Set the autoScale property: AutoScale settings for the pool.withFixedScale
(FixedScaleSettings fixedScale) Set the fixedScale property: Fixed scale settings for the pool.
-
Constructor Details
-
ScaleSettings
public ScaleSettings()Creates an instance of ScaleSettings class.
-
-
Method Details
-
fixedScale
Get the fixedScale property: Fixed scale settings for the pool.This property and autoScale are mutually exclusive and one of the properties must be specified.
- Returns:
- the fixedScale value.
-
withFixedScale
Set the fixedScale property: Fixed scale settings for the pool.This property and autoScale are mutually exclusive and one of the properties must be specified.
- Parameters:
fixedScale
- the fixedScale value to set.- Returns:
- the ScaleSettings object itself.
-
autoScale
Get the autoScale property: AutoScale settings for the pool.This property and fixedScale are mutually exclusive and one of the properties must be specified.
- Returns:
- the autoScale value.
-
withAutoScale
Set the autoScale property: AutoScale settings for the pool.This property and fixedScale are mutually exclusive and one of the properties must be specified.
- Parameters:
autoScale
- the autoScale value to set.- Returns:
- the ScaleSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-