SkuRestriction Class
- java.
lang. Object - com.
azure. resourcemanager. databoxedge. models. SkuRestriction
- com.
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 Sku |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sku |
fromJson(JsonReader jsonReader)
Reads an instance of Sku |
|
Sku |
reasonCode()
Get the reason |
|
Sku |
restrictionInfo()
Get the restriction |
|
Json |
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:
Returns:
Throws:
reasonCode
public SkuRestrictionReasonCode reasonCode()
Get the reasonCode property: The SKU restriction reason.
Returns:
restrictionInfo
public SkuRestrictionInfo restrictionInfo()
Get the restrictionInfo property: Restriction of the SKU for the location/zone.
Returns:
toJson
type
public String type()
Get the type property: The type of the restriction.
Returns:
validate
public void validate()
Validates the instance.
values
public List<String> values()
Get the values property: The locations where sku is restricted.
Returns: