Restriction Class
- java.
lang. Object - com.
microsoft. azure. management. storage. Restriction
- com.
public class Restriction
The restriction because of which SKU cannot be used.
Constructor Summary
Constructor | Description | |
---|---|---|
Restriction() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Reason |
reasonCode()
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 |
withReasonCode(ReasonCode reasonCode)
Set the reason for the restriction. |
Methods inherited from java.lang.Object
Constructor Details
Restriction
public Restriction()
Method Details
reasonCode
public ReasonCode reasonCode()
Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Returns:
type
public String type()
Get the type of restrictions. As of now only possible value for this is location.
Returns:
values
public List
Get 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 Restriction withReasonCode(ReasonCode reasonCode)
Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for