Enum AllocationToken.TokenType
- java.lang.Object
-
- java.lang.Enum<AllocationToken.TokenType>
-
- google.registry.model.domain.token.AllocationToken.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AllocationToken.TokenType>
- Enclosing class:
- AllocationToken
public static enum AllocationToken.TokenType extends java.lang.Enum<AllocationToken.TokenType>
Type of the token that indicates how and where it should be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_PROMO
Token saved on a TLD to use if no other token is passed from the clientPACKAGE
Token used for package pricingSINGLE_USE
Invalid after useUNLIMITED_USE
Do not expire after use
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AllocationToken.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AllocationToken.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT_PROMO
public static final AllocationToken.TokenType DEFAULT_PROMO
Token saved on a TLD to use if no other token is passed from the client
-
PACKAGE
public static final AllocationToken.TokenType PACKAGE
Token used for package pricing
-
SINGLE_USE
public static final AllocationToken.TokenType SINGLE_USE
Invalid after use
-
UNLIMITED_USE
public static final AllocationToken.TokenType UNLIMITED_USE
Do not expire after use
-
-
Method Detail
-
values
public static AllocationToken.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AllocationToken.TokenType c : AllocationToken.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AllocationToken.TokenType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-