Enum Class ApiRegion

java.lang.Object
java.lang.Enum<ApiRegion>
com.vonage.client.ApiRegion
All Implemented Interfaces:
Serializable, Comparable<ApiRegion>, java.lang.constant.Constable

public enum ApiRegion extends Enum<ApiRegion>
Enum representing the different regions that the Vonage API can be accessed from.
Since:
8.11.0
  • Enum Constant Details

    • API_EU

      public static final ApiRegion API_EU
      The region for the Vonage API in Europe.
    • API_US

      public static final ApiRegion API_US
      The region for the Vonage API in the US.
    • API_AP

      public static final ApiRegion API_AP
      The region for the Vonage API in Asia Pacific.
  • Method Details

    • values

      public static ApiRegion[] 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

      public static ApiRegion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ApiRegion>
    • fromString

      public static ApiRegion fromString(String region)
      Converts a string representation of a region to the corresponding enum value.
      Parameters:
      region - The region as a string.
      Returns:
      The region enum, or null if the input is null.