Class Restriction
java.lang.Object
com.azure.resourcemanager.storagecache.models.Restriction
The restrictions preventing this SKU from being used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the reasonCode property: The reason for the restriction.type()
Get the type property: The type of restrictions.void
validate()
Validates the instance.values()
Get the values property: The value of restrictions.withReasonCode
(ReasonCode reasonCode) Set the reasonCode property: The reason for the restriction.
-
Constructor Details
-
Restriction
public Restriction()
-
-
Method Details
-
type
Get the type property: The type of restrictions. In this version, the only possible value for this is location.- Returns:
- the type value.
-
values
Get the values property: The value of restrictions. If the restriction type is set to location, then this would be the different locations where the SKU is restricted.- Returns:
- the values value.
-
reasonCode
Get the reasonCode property: The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter.- Returns:
- the reasonCode value.
-
withReasonCode
Set the reasonCode property: The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. "NotAvailableForSubscription" is related to capacity at the datacenter.- Parameters:
reasonCode
- the reasonCode value to set.- Returns:
- the Restriction object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-