RestrictionReasonCode Class

public final class RestrictionReasonCode
extends ExpandableStringEnum<RestrictionReasonCode>

The reason for the restriction.

Field Summary

Modifier and Type Field and Description
static final RestrictionReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION

Static value NotAvailableForSubscription for RestrictionReasonCode.

static final RestrictionReasonCode QUOTA_ID

Static value QuotaId for RestrictionReasonCode.

Constructor Summary

Constructor Description
RestrictionReasonCode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RestrictionReasonCode value.

Method Summary

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

Creates or finds a RestrictionReasonCode from its string representation.

static Collection<RestrictionReasonCode> values()

Gets known RestrictionReasonCode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NOT_AVAILABLE_FOR_SUBSCRIPTION

public static final RestrictionReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION

Static value NotAvailableForSubscription for RestrictionReasonCode.

QUOTA_ID

public static final RestrictionReasonCode QUOTA_ID

Static value QuotaId for RestrictionReasonCode.

Constructor Details

RestrictionReasonCode

@Deprecated
public RestrictionReasonCode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RestrictionReasonCode value.

Method Details

fromString

public static RestrictionReasonCode fromString(String name)

Creates or finds a RestrictionReasonCode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RestrictionReasonCode.

values

public static Collection<RestrictionReasonCode> values()

Gets known RestrictionReasonCode values.

Returns:

known RestrictionReasonCode values.

Applies to