Package com.vonage.client
Enum Class ApiRegion
- All Implemented Interfaces:
Serializable,Comparable<ApiRegion>,java.lang.constant.Constable
Enum representing the different regions that the Vonage API can be accessed from.
- Since:
- 8.11.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiRegionfromString(String region) Converts a string representation of a region to the corresponding enum value.toString()static ApiRegionReturns the enum constant of this class with the specified name.static ApiRegion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
API_EU
The region for the Vonage API in Europe. -
API_US
The region for the Vonage API in the US. -
API_AP
The region for the Vonage API in Asia Pacific.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
-
fromString
Converts a string representation of a region to the corresponding enum value.- Parameters:
region- The region as a string.- Returns:
- The region enum, or
nullif the input isnull.
-