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 Summary
-
Method Summary
Modifier and Type Method Description Webhook.Builder
addHeaders(WebhookHeader headers)
Adds an headers to headers.Webhook
build()
Builds a Webhook.Webhook.Builder
headers(List<WebhookHeader> headers)
Set the headers.Webhook.Builder
name(String name)
Set the name.Webhook.Builder
url(String url)
Set the url.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
url
- the urlname
- the name
-
-
Method Details
-
build
Builds a Webhook.- Returns:
- the new Webhook instance
-
addHeaders
Adds an headers to headers.- Parameters:
headers
- the new headers- Returns:
- the Webhook builder
-
url
Set the url.- Parameters:
url
- the url- Returns:
- the Webhook builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the Webhook builder
-
headers
Set the headers. Existing headers will be replaced.- Parameters:
headers
- the headers- Returns:
- the Webhook builder
-