public enum RegionType extends java.lang.Enum<RegionType>
Enum Constant and Description |
---|
AMERICA
美国节点
|
DYNAMIC_REGION
用户可动态扩展,不能在现有列表范围内
< 255
|
GERMANY
德国节点
|
JAPAN
日本节点
|
SHANGHAI
上海节点
|
SINGAPORE
新加坡节点
|
Modifier and Type | Method and Description |
---|---|
static RegionType |
createExtendRegionType(int id,
java.lang.String name) |
java.lang.String |
getRegionId()
获取region id
|
int |
getRegionIndex()
获取region Id
|
static RegionType |
getRegionTypeByRegionId(java.lang.String regionId)
get region type by region id
|
static RegionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RegionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegionType SHANGHAI
public static final RegionType SINGAPORE
public static final RegionType JAPAN
public static final RegionType AMERICA
public static final RegionType GERMANY
public static final RegionType DYNAMIC_REGION
public static RegionType[] values()
for (RegionType c : RegionType.values()) System.out.println(c);
public static RegionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getRegionIndex()
public java.lang.String getRegionId()
public static RegionType createExtendRegionType(int id, java.lang.String name)
id
- region index,0-10000 for aliyun, others for personal usename
- region namepublic static RegionType getRegionTypeByRegionId(java.lang.String regionId)
regionId
- aliyun region id