Class Webhook.Builder

java.lang.Object
com.ibm.watson.assistant.v1.model.Webhook.Builder
Enclosing class:
Webhook

public static class Webhook.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String url, String name)
      Instantiates a new builder with required properties.
      Parameters:
      url - the url
      name - the name
  • Method Details

    • build

      public Webhook build()
      Builds a Webhook.
      Returns:
      the new Webhook instance
    • addHeaders

      public Webhook.Builder addHeaders​(WebhookHeader headers)
      Adds an headers to headers.
      Parameters:
      headers - the new headers
      Returns:
      the Webhook builder
    • url

      public Webhook.Builder url​(String url)
      Set the url.
      Parameters:
      url - the url
      Returns:
      the Webhook builder
    • name

      public Webhook.Builder name​(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the Webhook builder
    • headers

      public Webhook.Builder headers​(List<WebhookHeader> headers)
      Set the headers. Existing headers will be replaced.
      Parameters:
      headers - the headers
      Returns:
      the Webhook builder