ScaleSettings Class

  • java.lang.Object
    • com.microsoft.azure.management.batch.ScaleSettings

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

Method Summary

Modifier and Type Method and Description
AutoScaleSettings autoScale()

Get this property and fixedScale are mutually exclusive and one of the properties must be specified.

FixedScaleSettings fixedScale()

Get this property and autoScale are mutually exclusive and one of the properties must be specified.

ScaleSettings withAutoScale(AutoScaleSettings autoScale)

Set this property and fixedScale are mutually exclusive and one of the properties must be specified.

ScaleSettings withFixedScale(FixedScaleSettings fixedScale)

Set this property and autoScale are mutually exclusive and one of the properties must be specified.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ScaleSettings

public ScaleSettings()

Method Details

autoScale

public AutoScaleSettings autoScale()

Get this property and fixedScale are mutually exclusive and one of the properties must be specified.

Returns:

the autoScale value

fixedScale

public FixedScaleSettings fixedScale()

Get this property and autoScale are mutually exclusive and one of the properties must be specified.

Returns:

the fixedScale value

withAutoScale

public ScaleSettings withAutoScale(AutoScaleSettings autoScale)

Set 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.

withFixedScale

public ScaleSettings withFixedScale(FixedScaleSettings fixedScale)

Set 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.

Applies to