ResourceSkuRestrictions Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. ResourceSkuRestrictions
- com.
Implements
public final class ResourceSkuRestrictions
implements JsonSerializable<ResourceSkuRestrictions>
Restrictions where the SKU cannot be used.
Constructor Summary
Constructor | Description |
---|---|
ResourceSkuRestrictions() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
Resource |
reasonCode()
Get the reason |
Resource |
restrictionInfo()
Get the restriction |
Json |
toJson(JsonWriter jsonWriter) |
Resource |
type()
Get the type property: Gets the type of restrictions. |
void |
validate()
Validates the instance. |
List<String> |
values()
Get the values property: Gets the value of restrictions. |
Resource |
withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reason |
Resource |
withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restriction |
Resource |
withType(ResourceSkuRestrictionsType type)
Set the type property: Gets the type of restrictions. |
Resource |
withValues(List<String> values)
Set the values property: Gets the value of restrictions. |
Methods inherited from java.lang.Object
Constructor Details
ResourceSkuRestrictions
public ResourceSkuRestrictions()
Creates an instance of ResourceSkuRestrictions class.
Method Details
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: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Returns:
restrictionInfo
public ResourceSkuRestrictionInfo restrictionInfo()
Get the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.
Returns:
toJson
type
public ResourceSkuRestrictionsType type()
Get the type property: Gets the type of restrictions. Possible values include: 'Location', 'Zone'.
Returns:
validate
public void validate()
Validates the instance.
values
public List
Get the values property: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
Returns:
withReasonCode
public ResourceSkuRestrictions withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode)
Set the reasonCode property: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Parameters:
Returns:
withRestrictionInfo
public ResourceSkuRestrictions withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo)
Set the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.
Parameters:
Returns:
withType
public ResourceSkuRestrictions withType(ResourceSkuRestrictionsType type)
Set the type property: Gets the type of restrictions. Possible values include: 'Location', 'Zone'.
Parameters:
Returns:
withValues
public ResourceSkuRestrictions withValues(List
Set the values property: Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
Parameters:
Returns:
Applies to
Azure SDK for Java