Enum Class AllocationToken.TokenType
java.lang.Object
java.lang.Enum<AllocationToken.TokenType>
google.registry.model.domain.token.AllocationToken.TokenType
- All Implemented Interfaces:
Serializable
,Comparable<AllocationToken.TokenType>
,Constable
- Enclosing class:
AllocationToken
Type of the token that indicates how and where it should be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionToken used for bulk pricingToken saved on a TLD to use if no other token is passed from the clientDeprecated.Allows bypassing the BSA check during domain creation, otherwise has the same semantics asSINGLE_USE
.Invalid after useDo not expire after use -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if token should be invalidated after use.static AllocationToken.TokenType
Returns the enum constant of this class with the specified name.static AllocationToken.TokenType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BULK_PRICING
Token used for bulk pricing -
DEFAULT_PROMO
Token saved on a TLD to use if no other token is passed from the client -
PACKAGE
Deprecated.This is the old name for what is now BULK_PRICING. -
SINGLE_USE
Invalid after use -
UNLIMITED_USE
Do not expire after use -
REGISTER_BSA
Allows bypassing the BSA check during domain creation, otherwise has the same semantics asSINGLE_USE
.This token applies to a single domain only. If the domain is not blocked by BSA at the redemption time this token is processed like
SINGLE_USE
, as mentioned above.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isOneTimeUse
public boolean isOneTimeUse()Returns true if token should be invalidated after use.
-