OptimizedAutoscale Class

  • java.lang.Object
    • com.azure.resourcemanager.kusto.models.OptimizedAutoscale

public final class OptimizedAutoscale

A class that contains the optimized auto scale definition.

Constructor Summary

Constructor Description
OptimizedAutoscale()

Creates an instance of OptimizedAutoscale class.

Method Summary

Modifier and Type Method and Description
boolean isEnabled()

Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.

int maximum()

Get the maximum property: Maximum allowed instances count.

int minimum()

Get the minimum property: Minimum allowed instances count.

void validate()

Validates the instance.

int version()

Get the version property: The version of the template defined, for instance 1.

OptimizedAutoscale withIsEnabled(boolean isEnabled)

Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.

OptimizedAutoscale withMaximum(int maximum)

Set the maximum property: Maximum allowed instances count.

OptimizedAutoscale withMinimum(int minimum)

Set the minimum property: Minimum allowed instances count.

OptimizedAutoscale withVersion(int version)

Set the version property: The version of the template defined, for instance 1.

Methods inherited from java.lang.Object

Constructor Details

OptimizedAutoscale

public OptimizedAutoscale()

Creates an instance of OptimizedAutoscale class.

Method Details

isEnabled

public boolean isEnabled()

Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.

Returns:

the isEnabled value.

maximum

public int maximum()

Get the maximum property: Maximum allowed instances count.

Returns:

the maximum value.

minimum

public int minimum()

Get the minimum property: Minimum allowed instances count.

Returns:

the minimum value.

validate

public void validate()

Validates the instance.

version

public int version()

Get the version property: The version of the template defined, for instance 1.

Returns:

the version value.

withIsEnabled

public OptimizedAutoscale withIsEnabled(boolean isEnabled)

Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the OptimizedAutoscale object itself.

withMaximum

public OptimizedAutoscale withMaximum(int maximum)

Set the maximum property: Maximum allowed instances count.

Parameters:

maximum - the maximum value to set.

Returns:

the OptimizedAutoscale object itself.

withMinimum

public OptimizedAutoscale withMinimum(int minimum)

Set the minimum property: Minimum allowed instances count.

Parameters:

minimum - the minimum value to set.

Returns:

the OptimizedAutoscale object itself.

withVersion

public OptimizedAutoscale withVersion(int version)

Set the version property: The version of the template defined, for instance 1.

Parameters:

version - the version value to set.

Returns:

the OptimizedAutoscale object itself.

Applies to