com.baidubce.common
Enum BceRegion
java.lang.Object
java.lang.Enum<BceRegion>
com.baidubce.common.BceRegion
- All Implemented Interfaces:
- Serializable, Comparable<BceRegion>
public enum BceRegion
- extends Enum<BceRegion>
Bce region
- Author:
- zhangquan07
|
Method Summary |
static BceRegion |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BceRegion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
DEFAULT
public static final BceRegion DEFAULT
BJ
public static final BceRegion BJ
BD
public static final BceRegion BD
HBFSG
public static final BceRegion HBFSG
SU
public static final BceRegion SU
GZ
public static final BceRegion GZ
FSH
public static final BceRegion FSH
FWH
public static final BceRegion FWH
HKG
public static final BceRegion HKG
SIN
public static final BceRegion SIN
values
public static BceRegion[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (BceRegion c : BceRegion.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BceRegion valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2020. All rights reserved.