ResourceSkuCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ResourceSkuCapacity

Implements

public final class ResourceSkuCapacity
implements JsonSerializable<ResourceSkuCapacity>

Describes scaling information of a SKU.

Method Summary

Modifier and Type Method and Description
Long defaultProperty()

Get the defaultProperty property: The default capacity.

static ResourceSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuCapacity from the JsonReader.

Long maximum()

Get the maximum property: The maximum capacity that can be set.

Long minimum()

Get the minimum property: The minimum capacity.

ResourceSkuCapacityScaleType scaleType()

Get the scaleType property: The scale type applicable to the sku.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

defaultProperty

public Long defaultProperty()

Get the defaultProperty property: The default capacity.

Returns:

the defaultProperty value.

fromJson

public static ResourceSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ResourceSkuCapacity.

maximum

public Long maximum()

Get the maximum property: The maximum capacity that can be set.

Returns:

the maximum value.

minimum

public Long minimum()

Get the minimum property: The minimum capacity.

Returns:

the minimum value.

scaleType

public ResourceSkuCapacityScaleType scaleType()

Get the scaleType property: The scale type applicable to the sku.

Returns:

the scaleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to