ScaleCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ScaleCapacity

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 ScaleCapacity class.

Method Summary

Modifier and Type Method and Description
String defaultProperty()

Get the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation.

static ScaleCapacity fromJson(JsonReader jsonReader)

Reads an instance of ScaleCapacity from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScaleCapacity withDefaultProperty(String defaultProperty)

Set the defaultProperty property: the number of instances that will be set if metrics are not available for evaluation.

ScaleCapacity withMaximum(String maximum)

Set the maximum property: the maximum number of instances for the resource.

ScaleCapacity 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:

the defaultProperty value.

fromJson

public static ScaleCapacity fromJson(JsonReader jsonReader)

Reads an instance of ScaleCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScaleCapacity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

minimum

public String minimum()

Get the minimum property: the minimum number of instances for the resource.

Returns:

the minimum value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

defaultProperty - the defaultProperty value to set.

Returns:

the ScaleCapacity object itself.

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.

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.

Applies to