com.amazonaws.regions
Enum Regions
java.lang.Object
java.lang.Enum<Regions>
com.amazonaws.regions.Regions
- All Implemented Interfaces:
- Serializable, Comparable<Regions>
public enum Regions
- extends Enum<Regions>
Enumeration of region names
Field Summary |
static Regions |
DEFAULT_REGION
The default region that new customers in the US are encouraged to use
when using AWS services for the first time. |
Method Summary |
String |
getName()
The name of this region, used in the regions.xml file to identify it. |
static Regions |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Regions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GovCloud
public static final Regions GovCloud
US_EAST_1
public static final Regions US_EAST_1
US_WEST_1
public static final Regions US_WEST_1
US_WEST_2
public static final Regions US_WEST_2
EU_WEST_1
public static final Regions EU_WEST_1
AP_SOUTHEAST_1
public static final Regions AP_SOUTHEAST_1
AP_SOUTHEAST_2
public static final Regions AP_SOUTHEAST_2
AP_NORTHEAST_1
public static final Regions AP_NORTHEAST_1
SA_EAST_1
public static final Regions SA_EAST_1
DEFAULT_REGION
public static final Regions DEFAULT_REGION
- The default region that new customers in the US are encouraged to use
when using AWS services for the first time.
values
public static Regions[] 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 (Regions c : Regions.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Regions 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
getName
public String getName()
- The name of this region, used in the regions.xml file to identify it.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.