Cancellation Class

public final class Cancellation
extends ExpandableStringEnum<Cancellation>

The policy override for the subscription indicates whether the self-serve cancellation or seat reduction is allowed.

Field Summary

Modifier and Type Field and Description
static final Cancellation ALLOWED

Static value Allowed for Cancellation.

static final Cancellation NOT_ALLOWED

Static value NotAllowed for Cancellation.

Constructor Summary

Constructor Description
Cancellation()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Cancellation value.

Method Summary

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

Creates or finds a Cancellation from its string representation.

static Collection<Cancellation> values()

Gets known Cancellation values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOWED

public static final Cancellation ALLOWED

Static value Allowed for Cancellation.

NOT_ALLOWED

public static final Cancellation NOT_ALLOWED

Static value NotAllowed for Cancellation.

Constructor Details

Cancellation

@Deprecated
public Cancellation()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Cancellation value.

Method Details

fromString

public static Cancellation fromString(String name)

Creates or finds a Cancellation from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Cancellation.

values

public static Collection<Cancellation> values()

Gets known Cancellation values.

Returns:

known Cancellation values.

Applies to