public final class OptimizedAutoscale extends Object
Constructor and Description |
---|
OptimizedAutoscale() |
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.
|
public int version()
public OptimizedAutoscale withVersion(int version)
version
- the version value to set.public boolean isEnabled()
public OptimizedAutoscale withIsEnabled(boolean isEnabled)
isEnabled
- the isEnabled value to set.public int minimum()
public OptimizedAutoscale withMinimum(int minimum)
minimum
- the minimum value to set.public int maximum()
public OptimizedAutoscale withMaximum(int maximum)
maximum
- the maximum value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.