ResourceSkuRestrictionInfo Class

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

Implements

public final class ResourceSkuRestrictionInfo
implements JsonSerializable<ResourceSkuRestrictionInfo>

Describes an available Compute SKU Restriction Information.

Constructor Summary

Constructor Description
ResourceSkuRestrictionInfo()

Creates an instance of ResourceSkuRestrictionInfo class.

Method Summary

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

Reads an instance of ResourceSkuRestrictionInfo from the JsonReader.

List<String> locations()

Get the locations property: Locations where the SKU is restricted.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> zones()

Get the zones property: List of availability zones where the SKU is restricted.

Methods inherited from java.lang.Object

Constructor Details

ResourceSkuRestrictionInfo

public ResourceSkuRestrictionInfo()

Creates an instance of ResourceSkuRestrictionInfo class.

Method Details

fromJson

public static ResourceSkuRestrictionInfo fromJson(JsonReader jsonReader)

Reads an instance of ResourceSkuRestrictionInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

locations

public List locations()

Get the locations property: Locations where the SKU is restricted.

Returns:

the locations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

zones

public List zones()

Get the zones property: List of availability zones where the SKU is restricted.

Returns:

the zones value.

Applies to