Class ResourceSkuRestrictions
java.lang.Object
com.azure.resourcemanager.appplatform.models.ResourceSkuRestrictions
Restrictions where the SKU cannot be used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reasonCode property: Gets the reason for restriction.Get the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.type()Get the type property: Gets the type of restrictions.voidvalidate()Validates the instance.values()Get the values property: Gets the value of restrictions.withReasonCode(ResourceSkuRestrictionsReasonCode reasonCode) Set the reasonCode property: Gets the reason for restriction.withRestrictionInfo(ResourceSkuRestrictionInfo restrictionInfo) Set the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.Set the type property: Gets the type of restrictions.withValues(List<String> values) Set the values property: Gets the value of restrictions.
-
Constructor Details
-
ResourceSkuRestrictions
public ResourceSkuRestrictions()
-
-
Method Details
-
type
Get the type property: Gets the type of restrictions. Possible values include: 'Location', 'Zone'.- Returns:
- the type value.
-
withType
Set the type property: Gets the type of restrictions. Possible values include: 'Location', 'Zone'.- Parameters:
type- the type value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
values
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:
- the values value.
-
withValues
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:
values- the values value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
restrictionInfo
Get the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.- Returns:
- the restrictionInfo value.
-
withRestrictionInfo
Set the restrictionInfo property: Gets the information about the restriction where the SKU cannot be used.- Parameters:
restrictionInfo- the restrictionInfo value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
reasonCode
Get the reasonCode property: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.- Returns:
- the reasonCode value.
-
withReasonCode
Set the reasonCode property: Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.- Parameters:
reasonCode- the reasonCode value to set.- Returns:
- the ResourceSkuRestrictions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-