Class Region
- java.lang.Object
-
- com.microsoft.azure.management.resources.fluentcore.arm.Region
-
public final class Region extends Object
Enumeration of the Azure datacenter regions. See https://azure.microsoft.com/regions/
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Regioncreate(String name, String label)Creates a region from a name and a label.booleanequals(Object obj)static RegionfindByLabelOrName(String labelOrName)Finds a region based on a label or name.static RegionfromName(String name)Parses a name into a Region object and creates a new Region instance if not found among the existing ones.inthashCode()Stringlabel()Stringname()StringtoString()static Region[]values()
-
-
-
Field Detail
-
US_WEST
public static final Region US_WEST
Azure Cloud - Americas
-
US_WEST2
public static final Region US_WEST2
-
US_CENTRAL
public static final Region US_CENTRAL
-
US_EAST
public static final Region US_EAST
-
US_EAST2
public static final Region US_EAST2
-
US_NORTH_CENTRAL
public static final Region US_NORTH_CENTRAL
-
US_SOUTH_CENTRAL
public static final Region US_SOUTH_CENTRAL
-
US_WEST_CENTRAL
public static final Region US_WEST_CENTRAL
-
CANADA_CENTRAL
public static final Region CANADA_CENTRAL
-
CANADA_EAST
public static final Region CANADA_EAST
-
BRAZIL_SOUTH
public static final Region BRAZIL_SOUTH
-
EUROPE_NORTH
public static final Region EUROPE_NORTH
Azure Cloud - Europe
-
EUROPE_WEST
public static final Region EUROPE_WEST
-
UK_SOUTH
public static final Region UK_SOUTH
-
UK_WEST
public static final Region UK_WEST
-
FRANCE_CENTRAL
public static final Region FRANCE_CENTRAL
-
FRANCE_SOUTH
public static final Region FRANCE_SOUTH
-
ASIA_EAST
public static final Region ASIA_EAST
Azure Cloud - Asia
-
ASIA_SOUTHEAST
public static final Region ASIA_SOUTHEAST
-
JAPAN_EAST
public static final Region JAPAN_EAST
-
JAPAN_WEST
public static final Region JAPAN_WEST
-
AUSTRALIA_EAST
public static final Region AUSTRALIA_EAST
-
AUSTRALIA_SOUTHEAST
public static final Region AUSTRALIA_SOUTHEAST
-
AUSTRALIA_CENTRAL
public static final Region AUSTRALIA_CENTRAL
-
AUSTRALIA_CENTRAL2
public static final Region AUSTRALIA_CENTRAL2
-
INDIA_CENTRAL
public static final Region INDIA_CENTRAL
-
INDIA_SOUTH
public static final Region INDIA_SOUTH
-
INDIA_WEST
public static final Region INDIA_WEST
-
KOREA_CENTRAL
public static final Region KOREA_CENTRAL
-
KOREA_SOUTH
public static final Region KOREA_SOUTH
-
CHINA_NORTH
public static final Region CHINA_NORTH
Azure China Cloud
-
CHINA_EAST
public static final Region CHINA_EAST
-
CHINA_NORTH2
public static final Region CHINA_NORTH2
-
CHINA_EAST2
public static final Region CHINA_EAST2
-
GERMANY_CENTRAL
public static final Region GERMANY_CENTRAL
Azure German Cloud
-
GERMANY_NORTHEAST
public static final Region GERMANY_NORTHEAST
-
GOV_US_VIRGINIA
public static final Region GOV_US_VIRGINIA
U.S. government cloud in Virginia.
-
GOV_US_IOWA
public static final Region GOV_US_IOWA
U.S. government cloud in Iowa.
-
GOV_US_ARIZONA
public static final Region GOV_US_ARIZONA
U.S. government cloud in Arizona.
-
GOV_US_TEXAS
public static final Region GOV_US_TEXAS
U.S. government cloud in Texas.
-
GOV_US_DOD_EAST
public static final Region GOV_US_DOD_EAST
U.S. Department of Defense cloud - East.
-
GOV_US_DOD_CENTRAL
public static final Region GOV_US_DOD_CENTRAL
U.S. Department of Defense cloud - Central.
-
-
Method Detail
-
values
public static Region[] values()
- Returns:
- predefined Azure regions
-
create
public static Region create(String name, String label)
Creates a region from a name and a label.- Parameters:
name- the uniquely identifiable name of the regionlabel- the label of the region- Returns:
- the newly created region
-
name
public String name()
- Returns:
- the name of the region
-
label
public String label()
- Returns:
- the label of the region
-
findByLabelOrName
public static Region findByLabelOrName(String labelOrName)
Finds a region based on a label or name.A region name is lower-cased label with spaces removed.
- Parameters:
labelOrName- the region name or label- Returns:
- the found region or null if there's no such region
-
fromName
public 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.- Parameters:
name- a region name- Returns:
- the parsed or created region
-
-