|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Region>
com.amazonaws.services.s3.model.Region
public enum Region
Specifies constants that define Amazon S3 Regions.
Amazon S3 Regions allow the user to choose the geographical region where Amazon S3 will store the buckets the user creates. Choose a Amazon S3 Region to optimize latency, minimize costs, or address regulatory requirements.
Objects stored in a Amazon S3 Region never leave that region unless explicitly transfered to another region.
Enum Constant Summary | |
---|---|
AP_Singapore
The Asia Pacific (Singapore) Region. |
|
AP_Tokyo
The Asia Pacific (Tokyo) Region. |
|
EU_Ireland
The EU (Ireland) Amazon S3 Region. |
|
SA_SaoPaulo
The South America (Sao Paulo) Region. |
|
US_Standard
The US Standard Amazon S3 Region. |
|
US_West
The US-West (Northern California) Amazon S3 Region. |
|
US_West_2
The US-West-2 (Oregon) Region. |
Method Summary | |
---|---|
static Region |
fromValue(String s3RegionString)
Returns the Amazon S3 Region enumeration value representing the specified Amazon S3 Region ID string. |
String |
toString()
|
static Region |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Region[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Region US_Standard
This is the default Amazon S3 Region. All requests sent to
s3.amazonaws.com
go
to this region unless a location constraint is specified when creating a bucket.
The US Standard Region automatically places
data in either Amazon's east or west coast data centers depending on
which one provides the lowest latency. The US Standard Region
provides eventual consistency for all requests.
public static final Region US_West
When using buckets in this region, optionally set the client
endpoint to s3-us-west-1.amazonaws.com
on all requests to these
buckets to reduce any latency experienced after the first
hour of creating a bucket in this region.
In Amazon S3, the US-West (Northern California) Region provides read-after-write consistency for PUTS of new objects in Amazon S3 buckets and eventual consistency for overwrite PUTS and DELETES.
public static final Region US_West_2
When using buckets in this region, optionally set the client
endpoint to s3-us-west-2.amazonaws.com
on all requests to these buckets
to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region EU_Ireland
In Amazon S3, the EU (Ireland) Region provides read-after-write consistency for PUTS of new objects in Amazon S3 buckets and eventual consistency for overwrite PUTS and DELETES.
public static final Region AP_Singapore
When using buckets in this region, optionally set the client
endpoint to s3-ap-southeast-1.amazonaws.com
on all requests to these buckets
to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region AP_Tokyo
When using buckets in this region, optionally set the client endpoint to
s3-ap-northeast-1.amazonaws.com
on all requests to these
buckets to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region SA_SaoPaulo
When using buckets in this region, optionally set the client endpoint to
s3-sa-east-1.amazonaws.com
on all requests to these buckets
to reduce any latency experienced after the first hour of creating a
bucket in this region.
Method Detail |
---|
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Region>
public static Region fromValue(String s3RegionString) throws IllegalArgumentException
IllegalArgumentException
is thrown.
s3RegionString
- The Amazon S3 region ID string.
IllegalArgumentException
- If the specified value does not map to one of the known
Amazon S3 regions.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |