ReasonCode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. storage. models. ReasonCode
- com.
- com.
public final class ReasonCode
extends ExpandableStringEnum<ReasonCode>
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.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Reason |
NOT_AVAILABLE_FOR_SUBSCRIPTION
Static value Not |
static final
Reason |
QUOTA_ID
Static value Quota |
Constructor Summary
Constructor | Description |
---|---|
ReasonCode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Reason |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Reason |
fromString(String name)
Creates or finds a Reason |
static
Collection<Reason |
values()
Gets known Reason |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
NOT_AVAILABLE_FOR_SUBSCRIPTION
public static final ReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION
Static value NotAvailableForSubscription for ReasonCode.
QUOTA_ID
public static final ReasonCode QUOTA_ID
Static value QuotaId for ReasonCode.
Constructor Details
ReasonCode
@Deprecated
public ReasonCode()
Deprecated
Creates a new instance of ReasonCode value.
Method Details
fromString
public static ReasonCode fromString(String name)
Creates or finds a ReasonCode from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known ReasonCode values.
Returns:
Applies to
Azure SDK for Java