Region Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.arm.Region

public class Region

Enumeration of the Azure datacenter regions. See https://azure.microsoft.com/regions/

Field Summary

Modifier and Type Field and Description
final Region ASIA_EAST
final Region ASIA_SOUTHEAST
final Region AUSTRALIA_EAST
final Region AUSTRALIA_SOUTHEAST
final Region BRAZIL_SOUTH
final Region CANADA_CENTRAL
final Region CANADA_EAST
final Region CHINA_EAST
final Region CHINA_NORTH
final Region EUROPE_NORTH
final Region EUROPE_WEST
final Region GERMANY_CENTRAL
final Region GERMANY_NORTHEAST
final Region GOV_US_IOWA
final Region GOV_US_VIRGINIA
final Region INDIA_CENTRAL
final Region INDIA_SOUTH
final Region INDIA_WEST
final Region JAPAN_EAST
final Region JAPAN_WEST
final Region KOREA_CENTRAL
final Region KOREA_SOUTH
final Region UK_SOUTH
final Region UK_WEST
final Region US_CENTRAL
final Region US_EAST
final Region US_EAST2
final Region US_NORTH_CENTRAL
final Region US_SOUTH_CENTRAL
final Region US_WEST
final Region US_WEST_CENTRAL
final Region US_WEST2

Method Summary

Modifier and Type Method and Description
Region create(String name, String label)

Creates a region from a name and a label.

boolean equals(Object obj)
Region findByLabelOrName(String labelOrName)

Finds a region based on a label or name.

A region name is lower-cased label with spaces removed.

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()
Region [] values()

Field Details

ASIA_EAST

public static final Region ASIA_EAST= new Region("eastasia", "East Asia")

ASIA_SOUTHEAST

public static final Region ASIA_SOUTHEAST= new Region("southeastasia", "South East Asia")

AUSTRALIA_EAST

public static final Region AUSTRALIA_EAST= new Region("australiaeast", "Australia East")

AUSTRALIA_SOUTHEAST

public static final Region AUSTRALIA_SOUTHEAST= new Region("australiasoutheast", "Australia Southeast")

BRAZIL_SOUTH

public static final Region BRAZIL_SOUTH= new Region("brazilsouth", "Brazil South")

CANADA_CENTRAL

public static final Region CANADA_CENTRAL= new Region("canadacentral", "Canada Central")

CANADA_EAST

public static final Region CANADA_EAST= new Region("canadaeast", "Canada East")

CHINA_EAST

public static final Region CHINA_EAST= new Region("chinaeast", "China East")

CHINA_NORTH

public static final Region CHINA_NORTH= new Region("chinanorth", "China North")

EUROPE_NORTH

public static final Region EUROPE_NORTH= new Region("northeurope", "North Europe")

EUROPE_WEST

public static final Region EUROPE_WEST= new Region("westeurope", "West Europe")

GERMANY_CENTRAL

public static final Region GERMANY_CENTRAL= new Region("germanycentral", "Germany Central")

GERMANY_NORTHEAST

public static final Region GERMANY_NORTHEAST= new Region("germanynortheast", "Germany Northeast")

GOV_US_IOWA

public static final Region GOV_US_IOWA= new Region("usgoviowa", "US Gov Iowa")

GOV_US_VIRGINIA

public static final Region GOV_US_VIRGINIA= new Region("usgovvirginia", "US Gov Virginia")

INDIA_CENTRAL

public static final Region INDIA_CENTRAL= new Region("centralindia", "Central India")

INDIA_SOUTH

public static final Region INDIA_SOUTH= new Region("southindia", "South India")

INDIA_WEST

public static final Region INDIA_WEST= new Region("westindia", "West India")

JAPAN_EAST

public static final Region JAPAN_EAST= new Region("japaneast", "Japan East")

JAPAN_WEST

public static final Region JAPAN_WEST= new Region("japanwest", "Japan West")

KOREA_CENTRAL

public static final Region KOREA_CENTRAL= new Region("koreacentral", "Korea Central")

KOREA_SOUTH

public static final Region KOREA_SOUTH= new Region("koreasouth", "Korea South")

UK_SOUTH

public static final Region UK_SOUTH= new Region("uksouth", "UK South")

UK_WEST

public static final Region UK_WEST= new Region("ukwest", "UK West")

US_CENTRAL

public static final Region US_CENTRAL= new Region("centralus", "Central US")

US_EAST

public static final Region US_EAST= new Region("eastus", "East US")

US_EAST2

public static final Region US_EAST2= new Region("eastus2", "East US 2")

US_NORTH_CENTRAL

public static final Region US_NORTH_CENTRAL= new Region("northcentralus", "North Central US")

US_SOUTH_CENTRAL

public static final Region US_SOUTH_CENTRAL= new Region("southcentralus", "South Central US")

US_WEST

public static final Region US_WEST= new Region("westus", "West US")

US_WEST_CENTRAL

public static final Region US_WEST_CENTRAL= new Region("westcentralus", "West Central US")

US_WEST2

public static final Region US_WEST2= new Region("westus2", "West US 2")

Method Details

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 region
label - the label of the region

Returns:

the newly created region

equals

public boolean equals(Object obj)

Parameters:

obj

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

hashCode

public int hashCode()

label

public String label()

Returns:

the label of the region

name

public String name()

Returns:

the name of the region

toString

public String toString()

values

public static Region [] values()

Returns:

predefined Azure regions

Applies to