ReasonCode Class

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 ReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION

Static value NotAvailableForSubscription for ReasonCode.

static final ReasonCode QUOTA_ID

Static value QuotaId for ReasonCode.

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

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

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 values()

Gets known ReasonCode values.

Returns:

known ReasonCode values.

Applies to