Class Messages.Builder
java.lang.Object
com.vonage.client.application.capabilities.Messages.Builder
- Enclosing class:
- Messages
public static class Messages.Builder extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Messages.BuilderaddWebhook(Webhook.Type type, Webhook webhook)Add a webhook for the Vonage API to use.Messagesbuild()Messages.BuilderremoveWebhook(Webhook.Type type)Remove a webhook.
-
Constructor Details
-
Method Details
-
addWebhook
Add a webhook for the Vonage API to use. See https://developer.nexmo.com/concepts/guides/webhooks. Each Capability can only have a single webhook of each type. Any futher adding of webhooks will override an already existing one of that type.- Parameters:
type- TheWebhook.Typeof webhook to add.webhook- The webhook containing the URL andHttpMethod.- Returns:
- The
Messages.Builderto keep building.
-
removeWebhook
Remove a webhook.- Parameters:
type- TheWebhook.Typeto remove.- Returns:
- The
Messages.Builderto keep building.
-
build
- Returns:
- A new Messages capability containing the configured properties.
-