Class ReasonCode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ReasonCode>
com.azure.resourcemanager.storagecache.models.ReasonCode
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ReasonCode
Static value NotAvailableForSubscription for ReasonCode.static final ReasonCode
Static value QuotaId for ReasonCode. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReasonCode
fromString
(String name) Creates or finds a ReasonCode from its string representation.static Collection<ReasonCode>
values()
Gets known ReasonCode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
QUOTA_ID
Static value QuotaId for ReasonCode. -
NOT_AVAILABLE_FOR_SUBSCRIPTION
Static value NotAvailableForSubscription for ReasonCode.
-
-
Constructor Details
-
ReasonCode
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ReasonCode value.
-
-
Method Details
-
fromString
Creates or finds a ReasonCode from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ReasonCode.
-
values
Gets known ReasonCode values.- Returns:
- known ReasonCode values.
-
fromString(String)
factory method.