public final class Region extends Object
Modifier and Type | Method and Description |
---|---|
static Region |
create(String name,
String label)
Creates a region from a name and a label.
|
boolean |
equals(Object obj) |
static Region |
findByLabelOrName(String labelOrName)
Finds a region based on a label or name.
|
static Region |
fromName(String name)
Parses a name into a Region object and creates a new Region instance if not found among the existing ones.
|
int |
hashCode() |
String |
label() |
String |
name() |
String |
toString() |
static Region[] |
values() |
public static final Region US_WEST
public static final Region US_WEST2
public static final Region US_CENTRAL
public static final Region US_EAST
public static final Region US_EAST2
public static final Region US_NORTH_CENTRAL
public static final Region US_SOUTH_CENTRAL
public static final Region US_WEST_CENTRAL
public static final Region CANADA_CENTRAL
public static final Region CANADA_EAST
public static final Region BRAZIL_SOUTH
public static final Region EUROPE_NORTH
public static final Region EUROPE_WEST
public static final Region UK_SOUTH
public static final Region UK_WEST
public static final Region FRANCE_CENTRAL
public static final Region FRANCE_SOUTH
public static final Region ASIA_EAST
public static final Region ASIA_SOUTHEAST
public static final Region JAPAN_EAST
public static final Region JAPAN_WEST
public static final Region AUSTRALIA_EAST
public static final Region AUSTRALIA_SOUTHEAST
public static final Region AUSTRALIA_CENTRAL
public static final Region AUSTRALIA_CENTRAL2
public static final Region INDIA_CENTRAL
public static final Region INDIA_SOUTH
public static final Region INDIA_WEST
public static final Region KOREA_CENTRAL
public static final Region KOREA_SOUTH
public static final Region CHINA_NORTH
public static final Region CHINA_EAST
public static final Region CHINA_NORTH2
public static final Region CHINA_EAST2
public static final Region GERMANY_CENTRAL
public static final Region GERMANY_NORTHEAST
public static final Region GOV_US_VIRGINIA
public static final Region GOV_US_IOWA
public static final Region GOV_US_ARIZONA
public static final Region GOV_US_TEXAS
public static final Region GOV_US_DOD_EAST
public static final Region GOV_US_DOD_CENTRAL
public static Region[] values()
public static Region create(String name, String label)
name
- the uniquely identifiable name of the regionlabel
- the label of the regionpublic String name()
public String label()
public static Region findByLabelOrName(String labelOrName)
A region name is lower-cased label with spaces removed.
labelOrName
- the region name or labelpublic static Region fromName(String name)
name
- a region nameCopyright © 2019. All rights reserved.