public static class Messages.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Messages.Builder |
addWebhook(Webhook.Type type,
Webhook webhook)
Add a webhook for the Nexmo API to use.
|
Messages |
build() |
Messages.Builder |
removeWebhook(Webhook.Type type)
Remove a webhook.
|
public Builder()
public Messages.Builder addWebhook(Webhook.Type type, Webhook webhook)
type - The Webhook.Type of webhook to add.webhook - The webhook containing the URL and HttpMethod.Messages.Builder to keep building.public Messages.Builder removeWebhook(Webhook.Type type)
type - The Webhook.Type to remove.Messages.Builder to keep building.