ResourceSkuRestrictions Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResourceSkuRestrictions
- com.
Implements
public final class ResourceSkuRestrictions
implements JsonSerializable<ResourceSkuRestrictions>
Describes scaling information of a SKU.
Constructor | Description |
---|---|
Resource |
Creates an instance of Resource |
Modifier and Type | Method and Description |
---|---|
static
Resource |
from Reads an instance of Resource |
Resource |
reason Get the reason |
Resource |
restriction Get the restriction |
Json |
to |
Resource |
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
ResourceSkuRestrictions
public ResourceSkuRestrictions()
Creates an instance of ResourceSkuRestrictions class.
fromJson
public static ResourceSkuRestrictions fromJson(JsonReader jsonReader)
Reads an instance of ResourceSkuRestrictions from the JsonReader.
Parameters:
Returns:
Throws:
reasonCode
public ResourceSkuRestrictionsReasonCode reasonCode()
Get the reasonCode property: The reason for restriction.
Returns:
restrictionInfo
public ResourceSkuRestrictionInfo restrictionInfo()
Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.
Returns:
toJson
type
public ResourceSkuRestrictionsType type()
Get the type property: The type of restrictions.
Returns:
validate
public void validate()
Validates the instance.
values
public List
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:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: