Package com.vonage.client.voice.ncco
Class NotifyAction.Builder
java.lang.Object
com.vonage.client.voice.ncco.NotifyAction.Builder
- Enclosing class:
NotifyAction
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the NotifyAction.eventMethod(EventMethod eventMethod) eventUrl(Collection<String> eventUrl)
-
Method Details
-
payload
- Parameters:
payload- A Map of String keys and ? values that will be converted to JSON and sent to your event URL.- Returns:
- This builder.
-
eventUrl
- Parameters:
eventUrl- The URL to send events to.- Returns:
- This builder.
-
eventUrl
- Parameters:
eventUrl- The URL to send events to.- Returns:
- This builder.
-
eventMethod
- Parameters:
eventMethod- The HTTP method to use when sending the payload to your event url.- Returns:
- This builder.
-
build
Builds the NotifyAction.- Returns:
- A new NotifyAction object from the stored builder options.
-