ReasonCode Class

public final class ReasonCode
extends ExpandableStringEnum<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 Type Field and Description
static final ReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION

NotAvailableForSubscription.

static final ReasonCode QUOTA_ID

QuotaId.

Constructor Summary

Constructor Description
ReasonCode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReasonCode value.

Method Summary

Modifier and Type Method and Description
static ReasonCode fromString(String name)

Creates or finds a ReasonCode from its string representation.

static Collection<ReasonCode> values()

Gets known ReasonCode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NOT_AVAILABLE_FOR_SUBSCRIPTION

public static final ReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION

NotAvailableForSubscription.

QUOTA_ID

public static final ReasonCode QUOTA_ID

QuotaId.

Constructor Details

ReasonCode

@Deprecated
public ReasonCode()

Deprecated

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding ReasonCode.

values

public static Collection<ReasonCode> values()

Gets known ReasonCode values.

Returns:

known ReasonCode values.

Applies to