Package org.jclouds.profitbricks.domain
Enum AvailabilityZone
- java.lang.Object
-
- java.lang.Enum<AvailabilityZone>
-
- org.jclouds.profitbricks.domain.AvailabilityZone
-
- All Implemented Interfaces:
Serializable
,Comparable<AvailabilityZone>
public enum AvailabilityZone extends Enum<AvailabilityZone>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
UNRECOGNIZED
ZONE_1
ZONE_2
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvailabilityZone
fromValue(String v)
String
value()
static AvailabilityZone
valueOf(String name)
Returns the enum constant of this type with the specified name.static AvailabilityZone[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final AvailabilityZone AUTO
-
ZONE_1
public static final AvailabilityZone ZONE_1
-
ZONE_2
public static final AvailabilityZone ZONE_2
-
UNRECOGNIZED
public static final AvailabilityZone UNRECOGNIZED
-
-
Method Detail
-
values
public static AvailabilityZone[] 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 (AvailabilityZone c : AvailabilityZone.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvailabilityZone 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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static AvailabilityZone fromValue(String v)
-
-