Package com.vonage.client.conversations
Class Callback.Builder
java.lang.Object
com.vonage.client.conversations.Callback.Builder
- Enclosing class:
Callback
Builder for creating Callback settings. All parameters are optional.
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String applicationId) Vonage Application ID.build()Builds the Callback.Callback event mask.method(HttpMethod method) HTTP method to use for the callback.Call Control Object URL to use for the callback.Event URL for the callback.
-
Method Details
-
url
Event URL for the callback.- Parameters:
url- The callback URL as a string.- Returns:
- This builder.
-
eventMask
Callback event mask.- Parameters:
eventMask- The event mask as a string.- Returns:
- This builder.
-
method
HTTP method to use for the callback. Must be either HttpMethod.GET or HttpMethod.POST.- Parameters:
method- The HTTP method as an enum, ornullif unspecified.- Returns:
- This builder.
-
applicationId
Vonage Application ID.- Parameters:
applicationId- The application ID as a string.- Returns:
- This builder.
-
nccoUrl
Call Control Object URL to use for the callback.- Parameters:
nccoUrl- The NCCO URL as a string.- Returns:
- This builder.
-
build
Builds the Callback.- Returns:
- An instance of Callback, populated with all fields from this builder.
-