Enum Constant and Description |
---|
AMSTERDAM |
FRANKFURT |
LONDON |
SINGAPORE |
SYDNEY |
UNKNOWN |
US_EAST |
US_WEST |
Modifier and Type | Method and Description |
---|---|
static Region |
fromKey(java.lang.String key)
Retrieves the
Region based on the provided key. |
java.lang.String |
getKey()
The Region key as defined by Discord.
|
java.lang.String |
getName()
The human readable region name.
|
java.lang.String |
toString() |
static Region |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Region[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Region AMSTERDAM
public static final Region FRANKFURT
public static final Region LONDON
public static final Region SINGAPORE
public static final Region SYDNEY
public static final Region US_EAST
public static final Region US_WEST
public static final Region UNKNOWN
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getKey()
public static Region fromKey(java.lang.String key)
Region
based on the provided key.public java.lang.String toString()
toString
in class java.lang.Enum<Region>