Aracılığıyla paylaş


SkuRestriction Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.SkuRestriction

Implements

public final class SkuRestriction
implements JsonSerializable<SkuRestriction>

The restrictions because of which SKU cannot be used.

Constructor Summary

Constructor Description
SkuRestriction()

Creates an instance of SkuRestriction class.

Method Summary

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

Reads an instance of SkuRestriction from the JsonReader.

SkuRestrictionReasonCode reasonCode()

Get the reasonCode property: The SKU restriction reason.

SkuRestrictionInfo restrictionInfo()

Get the restrictionInfo property: Restriction of the SKU for the location/zone.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the restriction.

void validate()

Validates the instance.

List<String> values()

Get the values property: The locations where sku is restricted.

Methods inherited from java.lang.Object

Constructor Details

SkuRestriction

public SkuRestriction()

Creates an instance of SkuRestriction class.

Method Details

fromJson

public static SkuRestriction fromJson(JsonReader jsonReader)

Reads an instance of SkuRestriction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reasonCode

public SkuRestrictionReasonCode reasonCode()

Get the reasonCode property: The SKU restriction reason.

Returns:

the reasonCode value.

restrictionInfo

public SkuRestrictionInfo restrictionInfo()

Get the restrictionInfo property: Restriction of the SKU for the location/zone.

Returns:

the restrictionInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the restriction.

Returns:

the type value.

validate

public void validate()

Validates the instance.

values

public List<String> values()

Get the values property: The locations where sku is restricted.

Returns:

the values value.

Applies to