public static class Webhook.Builder
extends java.lang.Object
Constructor and Description |
---|
Webhook.Builder()
Instantiates a new builder.
|
Webhook.Builder(java.lang.String url,
java.lang.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(java.util.List<WebhookHeader> headers)
Set the headers.
|
Webhook.Builder |
name(java.lang.String name)
Set the name.
|
Webhook.Builder |
url(java.lang.String url)
Set the url.
|
public Webhook.Builder()
public Webhook.Builder(java.lang.String url, java.lang.String name)
url
- the urlname
- the namepublic Webhook build()
public Webhook.Builder addHeaders(WebhookHeader headers)
headers
- the new headerspublic Webhook.Builder url(java.lang.String url)
url
- the urlpublic Webhook.Builder name(java.lang.String name)
name
- the namepublic Webhook.Builder headers(java.util.List<WebhookHeader> headers)
headers
- the headers