ScaleCapacity Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. ScaleCapacity
- com.
Implements
public final class ScaleCapacity
implements JsonSerializable<ScaleCapacity>
The number of instances that can be used during this profile.
Constructor Summary
Constructor | Description |
---|---|
ScaleCapacity() |
Creates an instance of Scale |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
defaultProperty()
Get the default |
static
Scale |
fromJson(JsonReader jsonReader)
Reads an instance of Scale |
String |
maximum()
Get the maximum property: the maximum number of instances for the resource. |
String |
minimum()
Get the minimum property: the minimum number of instances for the resource. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Scale |
withDefaultProperty(String defaultProperty)
Set the default |
Scale |
withMaximum(String maximum)
Set the maximum property: the maximum number of instances for the resource. |
Scale |
withMinimum(String minimum)
Set the minimum property: the minimum number of instances for the resource. |
Methods inherited from java.lang.Object
Constructor Details
ScaleCapacity
public ScaleCapacity()
Creates an instance of ScaleCapacity class.
Method Details
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:
fromJson
public static ScaleCapacity fromJson(JsonReader jsonReader)
Reads an instance of ScaleCapacity from the JsonReader.
Parameters:
Returns:
Throws:
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:
minimum
public String minimum()
Get the minimum property: the minimum number of instances for the resource.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
withMinimum
public ScaleCapacity withMinimum(String minimum)
Set the minimum property: the minimum number of instances for the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java