public enum Region extends java.lang.Enum<Region>
Enum Constant | Description |
---|---|
AMSTERDAM |
|
BRAZIL |
|
EU_CENTRAL |
|
EU_WEST |
|
FRANKFURT |
|
HONG_KONG |
|
LONDON |
|
RUSSIA |
|
SINGAPORE |
|
SYDNEY |
|
UNKNOWN |
|
US_CENTRAL |
|
US_EAST |
|
US_SOUTH |
|
US_WEST |
|
VIP_AMSTERDAM |
|
VIP_BRAZIL |
|
VIP_EU_CENTRAL |
|
VIP_EU_WEST |
|
VIP_FRANKFURT |
|
VIP_LONDON |
|
VIP_SINGAPORE |
|
VIP_SYDNEY |
|
VIP_US_CENTRAL |
|
VIP_US_EAST |
|
VIP_US_SOUTH |
|
VIP_US_WEST |
Modifier and Type | Method | 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.
|
boolean |
isVip() |
Whether or not this Region is a VIP region.
|
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 BRAZIL
public static final Region EU_WEST
public static final Region EU_CENTRAL
public static final Region FRANKFURT
public static final Region HONG_KONG
public static final Region LONDON
public static final Region RUSSIA
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 US_CENTRAL
public static final Region US_SOUTH
public static final Region VIP_AMSTERDAM
public static final Region VIP_BRAZIL
public static final Region VIP_EU_WEST
public static final Region VIP_EU_CENTRAL
public static final Region VIP_FRANKFURT
public static final Region VIP_LONDON
public static final Region VIP_SINGAPORE
public static final Region VIP_SYDNEY
public static final Region VIP_US_EAST
public static final Region VIP_US_WEST
public static final Region VIP_US_CENTRAL
public static final Region VIP_US_SOUTH
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 boolean isVip()
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>