Enum StitchRegion
- java.lang.Object
-
- java.lang.Enum<StitchRegion>
-
- org.apache.camel.component.stitch.client.StitchRegion
-
- All Implemented Interfaces:
Serializable
,Comparable<StitchRegion>
public enum StitchRegion extends Enum<StitchRegion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EUROPE
NORTH_AMERICA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StitchRegion
fromString(String regionAsText)
String
getUrl()
static StitchRegion
valueOf(String name)
Returns the enum constant of this type with the specified name.static StitchRegion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORTH_AMERICA
public static final StitchRegion NORTH_AMERICA
-
EUROPE
public static final StitchRegion EUROPE
-
-
Method Detail
-
values
public static StitchRegion[] 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 (StitchRegion c : StitchRegion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StitchRegion 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
-
getUrl
public String getUrl()
-
fromString
public static StitchRegion fromString(String regionAsText)
-
-