你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Region 类

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

public class Region

Azure 数据中心区域的枚举。 请参阅https://azure.microsoft.com/regions/

字段摘要

修饰符和类型 字段和描述
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

方法摘要

修饰符和类型 方法和描述
Region create(String name, String label)

根据名称和标签创建区域。

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

根据标签或名称查找区域。

区域名称是小写标签,其中删除了空格。

Region fromName(String name)

将名称分析为 Region 对象,并在现有实例中找不到区域实例时创建新的区域实例。

int hashCode()
String label()
String name()
String toString()
Region [] values()

字段详细信息

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")

方法详细信息

create

public static Region create(String name, String label)

根据名称和标签创建区域。

Parameters:

name - 区域的唯一可识别名称
label - 区域的标签

Returns:

新创建的区域

equals

public boolean equals(Object obj)

Parameters:

obj

findByLabelOrName

public static Region findByLabelOrName(String labelOrName)

根据标签或名称查找区域。

区域名称是小写标签,其中删除了空格。

Parameters:

labelOrName - 区域名称或标签

Returns:

找到的区域,如果没有此类区域,则为 null

fromName

public static Region fromName(String name)

将名称分析为 Region 对象,并在现有实例中找不到区域实例时创建新的区域实例。

Parameters:

name - 区域名称

Returns:

分析或创建的区域

hashCode

public int hashCode()

label

public String label()

Returns:

区域的标签

name

public String name()

Returns:

区域的名称

toString

public String toString()

values

public static Region [] values()

Returns:

预定义的 Azure 区域

适用于