枚举常量和说明 |
---|
AP_Beijing |
AP_Beijing_1
cos region
cn-north :华北
cn-south :华南
cn-east :华东
cn-southwest: 西南
sg :新加坡
|
AP_Chengdu |
AP_Guangzhou |
AP_Guangzhou_2 |
AP_Hongkong |
AP_Shanghai |
AP_Singapore |
CN_EAST
已过时。
|
CN_NORTH
已过时。
|
CN_SOUTH
已过时。
|
CN_SOUTHWEST
已过时。
|
EU_Frankfurt |
NA_Toronto |
SG
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
static Region |
fromValue(java.lang.String region) |
java.lang.String |
getRegion() |
static Region |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Region[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Region AP_Beijing_1
public static final Region AP_Beijing
public static final Region AP_Shanghai
public static final Region AP_Guangzhou
public static final Region AP_Guangzhou_2
public static final Region AP_Chengdu
public static final Region AP_Singapore
public static final Region AP_Hongkong
public static final Region NA_Toronto
public static final Region EU_Frankfurt
@Deprecated public static final Region CN_NORTH
AP_Beijing_1
@Deprecated public static final Region CN_SOUTH
AP_Guangzhou
@Deprecated public static final Region CN_EAST
AP_Shanghai
@Deprecated public static final Region CN_SOUTHWEST
AP_Chengdu
@Deprecated public static final Region SG
AP_Singapore
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.lang.String getRegion()
public static Region fromValue(java.lang.String region)