Class ScaleCapacity
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.ScaleCapacity
-
public final class ScaleCapacity extends Object
The number of instances that can be used during this profile.
-
-
Constructor Summary
Constructors Constructor Description ScaleCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultProperty()Get the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation.Stringmaximum()Get the maximum property: the maximum number of instances for the resource.Stringminimum()Get the minimum property: the minimum number of instances for the resource.voidvalidate()Validates the instance.ScaleCapacitywithDefaultProperty(String defaultProperty)Set the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation.ScaleCapacitywithMaximum(String maximum)Set the maximum property: the maximum number of instances for the resource.ScaleCapacitywithMinimum(String minimum)Set the minimum property: the minimum number of instances for the resource.
-
-
-
Method Detail
-
minimum
public String minimum()
Get the minimum property: the minimum number of instances for the resource.- Returns:
- the minimum value.
-
withMinimum
public ScaleCapacity withMinimum(String minimum)
Set the minimum property: the minimum number of instances for the resource.- Parameters:
minimum- the minimum value to set.- Returns:
- the ScaleCapacity object itself.
-
maximum
public String maximum()
Get the maximum property: the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.- Returns:
- the maximum value.
-
withMaximum
public ScaleCapacity withMaximum(String maximum)
Set the maximum property: the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.- Parameters:
maximum- the maximum value to set.- Returns:
- the ScaleCapacity object itself.
-
defaultProperty
public String defaultProperty()
Get the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.- Returns:
- the defaultProperty value.
-
withDefaultProperty
public ScaleCapacity withDefaultProperty(String defaultProperty)
Set the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.- Parameters:
defaultProperty- the defaultProperty value to set.- Returns:
- the ScaleCapacity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-