Class Rtc.Builder

  • Enclosing class:
    Rtc

    public static class Rtc.Builder
    extends java.lang.Object
    • Constructor Detail

    • Method Detail

      • addWebhook

        public Rtc.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 Rtc.Builder to keep building.
      • build

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