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