Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String url,
String name)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and 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.
|
public Webhook build()
public Webhook.Builder addHeaders(WebhookHeader headers)
headers
- the new headerspublic Webhook.Builder url(String url)
url
- the urlpublic Webhook.Builder name(String name)
name
- the namepublic Webhook.Builder headers(List<WebhookHeader> headers)
headers
- the headersCopyright © 2021 IBM Cloud. All rights reserved.