Class OptimizedAutoscale
java.lang.Object
com.azure.resourcemanager.kusto.models.OptimizedAutoscale
A class that contains the optimized auto scale definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.withIsEnabled
(boolean isEnabled) Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.withMaximum
(int maximum) Set the maximum property: Maximum allowed instances count.withMinimum
(int minimum) Set the minimum property: Minimum allowed instances count.withVersion
(int version) Set the version property: The version of the template defined, for instance 1.
-
Constructor Details
-
OptimizedAutoscale
public OptimizedAutoscale()
-
-
Method Details
-
version
public int version()Get the version property: The version of the template defined, for instance 1.- Returns:
- the version value.
-
withVersion
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.
-
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.
-
withIsEnabled
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.
-
minimum
public int minimum()Get the minimum property: Minimum allowed instances count.- Returns:
- the minimum value.
-
withMinimum
Set the minimum property: Minimum allowed instances count.- Parameters:
minimum
- the minimum value to set.- Returns:
- the OptimizedAutoscale object itself.
-
maximum
public int maximum()Get the maximum property: Maximum allowed instances count.- Returns:
- the maximum value.
-
withMaximum
Set the maximum property: Maximum allowed instances count.- Parameters:
maximum
- the maximum value to set.- Returns:
- the OptimizedAutoscale object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-