SkuCapacity Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.SkuCapacity

Implements

public final class SkuCapacity
implements JsonSerializable<SkuCapacity>

Describes scaling information of a sku.

Constructor Summary

Constructor Description
SkuCapacity()

Creates an instance of SkuCapacity class.

Method Summary

Modifier and Type Method and Description
List<Integer> allowedValues()

Get the allowedValues property: Allows capacity value list.

Integer defaultProperty()

Get the defaultProperty property: The default capacity.

static SkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of SkuCapacity from the JsonReader.

Integer maximum()

Get the maximum property: The highest permitted capacity for this resource.

Integer minimum()

Get the minimum property: The lowest permitted capacity for this resource.

ScaleType 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

Constructor Details

SkuCapacity

public SkuCapacity()

Creates an instance of SkuCapacity class.

Method Details

allowedValues

public List<Integer> allowedValues()

Get the allowedValues property: Allows capacity value list.

Returns:

the allowedValues value.

defaultProperty

public Integer defaultProperty()

Get the defaultProperty property: The default capacity.

Returns:

the defaultProperty value.

fromJson

public static SkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of SkuCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SkuCapacity 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 SkuCapacity.

maximum

public Integer maximum()

Get the maximum property: The highest permitted capacity for this resource.

Returns:

the maximum value.

minimum

public Integer minimum()

Get the minimum property: The lowest permitted capacity for this resource.

Returns:

the minimum value.

scaleType

public ScaleType 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