public enum Regions extends Enum<Regions>
Enum Constant and Description |
---|
ASIA_EAST1 |
ASIA_EAST2 |
ASIA_NORTHEAST1 |
ASIA_SOUTH1 |
ASIA_SOUTHEAST1 |
AUSTRALIA_SOUTHEAST1 |
EUROPE_NORTH1 |
EUROPE_WEST1 |
EUROPE_WEST2 |
EUROPE_WEST3 |
EUROPE_WEST4 |
NORTHAMERICA_NORTHEAST1 |
SOUTHAMERICA_EAST1 |
US_CENTRAL1 |
US_EAST1 |
US_EAST4 |
US_WEST1 |
US_WEST2 |
Modifier and Type | Method and Description |
---|---|
static Regions |
fromName(String regionName)
Returns a Regions enum corresponding to the given region name.
|
String |
getName()
The name of this region.
|
String[] |
getZones()
The zones of this region.
|
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.
|
public static final Regions ASIA_EAST1
public static final Regions ASIA_EAST2
public static final Regions ASIA_NORTHEAST1
public static final Regions ASIA_SOUTH1
public static final Regions ASIA_SOUTHEAST1
public static final Regions AUSTRALIA_SOUTHEAST1
public static final Regions EUROPE_NORTH1
public static final Regions EUROPE_WEST1
public static final Regions EUROPE_WEST2
public static final Regions EUROPE_WEST3
public static final Regions EUROPE_WEST4
public static final Regions NORTHAMERICA_NORTHEAST1
public static final Regions SOUTHAMERICA_EAST1
public static final Regions US_CENTRAL1
public static final Regions US_EAST1
public static final Regions US_EAST4
public static final Regions US_WEST1
public static final Regions US_WEST2
public static Regions[] values()
for (Regions c : Regions.values()) System.out.println(c);
public static Regions 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 String getName()
public String[] getZones()
public static Regions fromName(String regionName)
regionName
- The name of the region.Copyright © 2019 Google LLC. All rights reserved.