Enum SubscriptionState
- All Implemented Interfaces:
Serializable,Comparable<SubscriptionState>,java.lang.constant.Constable
Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is
blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made
by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by
an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired –
the subscription reached its expiration date and was deactivated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionStatefromString(String value) Parses a serialized value to a SubscriptionState instance.toString()static SubscriptionStateReturns the enum constant of this type with the specified name.static SubscriptionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUSPENDED
Enum value suspended. -
ACTIVE
Enum value active. -
EXPIRED
Enum value expired. -
SUBMITTED
Enum value submitted. -
REJECTED
Enum value rejected. -
CANCELLED
Enum value cancelled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses a serialized value to a SubscriptionState instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed SubscriptionState object, or null if unable to parse.
-
toString
- Overrides:
toStringin classEnum<SubscriptionState>
-