Class Messages.Builder
- java.lang.Object
-
- com.nexmo.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Messages.BuilderaddWebhook(Webhook.Type type, Webhook webhook)Add a webhook for the Nexmo API to use.Messagesbuild()Messages.BuilderremoveWebhook(Webhook.Type type)Remove a webhook.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
Method Detail
-
addWebhook
public Messages.Builder addWebhook(Webhook.Type type, Webhook webhook)
Add a webhook for the Nexmo 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
public Messages.Builder removeWebhook(Webhook.Type type)
Remove a webhook.- Parameters:
type- TheWebhook.Typeto remove.- Returns:
- The
Messages.Builderto keep building.
-
-