Restriction Class
- java.
lang. Object - com.
microsoft. azure. management. storagecache. v2020_03_01.Restriction
- com.
public class Restriction
The restrictions preventing this SKU from being used.
Constructor | Description | |
---|---|---|
Restriction() |
Modifier and Type | Method and Description |
---|---|
Reason |
reason Get the reason for the restriction. |
java.lang.String |
type()
Get the type of restrictions. |
java.util.List<java.lang.String> |
values()
Get the value of restrictions. |
Restriction |
with Set the reason for the restriction. |
Restriction
public Restriction()
reasonCode
public ReasonCode reasonCode()
Get 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. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Returns:
type
public String type()
Get the type of restrictions. In this version, the only possible value for this is location.
Returns:
values
public List
Get 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:
withReasonCode
public Restriction withReasonCode(ReasonCode reasonCode)
Set 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. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Parameters:
Returns: