Class Voice.Builder

    • Constructor Detail

    • 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 - The Webhook.Type of webhook to add.
        webhook - The webhook containing the URL and HttpMethod.
        Returns:
        The Voice.Builder to keep building.
      • build

        public Voice build()
        Returns:
        A new Voice capability containing the configured properties.