ResourceSkuRestrictions Class

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

Implements

public final class ResourceSkuRestrictions
implements JsonSerializable<ResourceSkuRestrictions>

Describes scaling information of a SKU.

Method Summary

Modifier and Type Method and Description
static ResourceSkuRestrictions fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuRestrictions from the JsonReader.

ResourceSkuRestrictionsReasonCode reasonCode()

Get the reasonCode property: The reason for restriction.

ResourceSkuRestrictionInfo restrictionInfo()

Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceSkuRestrictionsType type()

Get the type property: The type of restrictions.

void validate()

Validates the instance.

List<String> values()

Get the values property: The value of restrictions.

Methods inherited from java.lang.Object

Method Details

fromJson

public static ResourceSkuRestrictions fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuRestrictions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reasonCode

public ResourceSkuRestrictionsReasonCode reasonCode()

Get the reasonCode property: The reason for restriction.

Returns:

the reasonCode value.

restrictionInfo

public ResourceSkuRestrictionInfo restrictionInfo()

Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.

Returns:

the restrictionInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceSkuRestrictionsType type()

Get the type property: The type of restrictions.

Returns:

the type value.

validate

public void validate()

Validates the instance.

values

public List<String> values()

Get the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

Returns:

the values value.

Applies to