public class Webhook
extends com.ibm.cloud.sdk.core.service.model.GenericModel
**Note:** Currently, only a single webhook named `main_webhook` is supported.
Modifier and Type | Class and Description |
---|---|
static class |
Webhook.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<WebhookHeader> |
headers |
protected java.lang.String |
name |
protected java.lang.String |
url |
Modifier | Constructor and Description |
---|---|
protected |
Webhook(Webhook.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.util.List<WebhookHeader> |
headers()
Gets the headers.
|
java.lang.String |
name()
Gets the name.
|
Webhook.Builder |
newBuilder()
New builder.
|
java.lang.String |
url()
Gets the url.
|
protected java.lang.String url
protected java.lang.String name
protected java.util.List<WebhookHeader> headers
protected Webhook(Webhook.Builder builder)
public Webhook.Builder newBuilder()
public java.lang.String url()
The URL for the external service or application to which you want to send HTTP POST requests.
public java.lang.String name()
The name of the webhook. Currently, `main_webhook` is the only supported value.
public java.util.List<WebhookHeader> headers()
An optional array of HTTP headers to pass with the HTTP request.