com.netease.cloud.services.nos.model
public enum Region extends Enum<Region>
Nos Regions allow the user to choose the geographical region where Nos will store the buckets the user creates. Choose a Nos Region to optimize latency, minimize costs, or address regulatory requirements.
Objects stored in a Nos Region never leave that region unless explicitly transfered to another region.
Enum Constant and Description |
---|
CN_Beijing
The EU (Ireland) Nos Region.
|
CN_Guangzhou
The US-West-2 (Oregon) Region.
|
CN_Hnagzhou
The US-West (Northern California) Nos Region.
|
CN_Standard
The US Standard Nos Region.
|
Modifier and Type | Method and Description |
---|---|
static Region |
fromValue(String NosRegionString)
Returns the Nos Region enumeration value representing the specified Nos
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.
|
public static final Region CN_Standard
This is the default Nos Region. All requests sent to
public static final Region CN_Hnagzhou
In Nos, the US-West (Northern California) Region provides read-after-write consistency for PUTS of new objects in Nos buckets and eventual consistency for overwrite PUTS and DELETES.
public static final Region CN_Guangzhou
public static final Region CN_Beijing
In Nos, the EU (Ireland) Region provides read-after-write consistency for PUTS of new objects in Nos buckets and eventual consistency for overwrite PUTS and DELETES.
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 nameNullPointerException
- if the argument is nullpublic static Region fromValue(String NosRegionString) throws IllegalArgumentException
IllegalArgumentException
is thrown.NosRegionString
- The Nos region ID string.IllegalArgumentException
- If the specified value does not map to one of the known Nos
regions.Copyright © 2017. All Rights Reserved.