Enum Class CallbackType

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

public enum CallbackType extends Enum<CallbackType>
Represents the type of webhook in VerificationCallback.getType().
  • Enum Constant Details

    • EVENT

      public static final CallbackType EVENT
      Used for miscellaneous event updates.
    • SUMMARY

      public static final CallbackType SUMMARY
      Used for inbound status updates for a particular request.
  • Method Details

    • values

      public static CallbackType[] 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 CallbackType 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
    • fromString

      public static CallbackType fromString(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CallbackType>