Class Webhook
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.Webhook
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Webhook
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A webhook that can be used by dialog nodes to make programmatic calls to an external function.
**Note:** Currently, only a single webhook named `main_webhook` is supported.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Webhook.Builder
Builder. -
Method Summary
Modifier and Type Method Description List<WebhookHeader>
headers()
Gets the headers.String
name()
Gets the name.Webhook.Builder
newBuilder()
New builder.String
url()
Gets the url.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Webhook builder
-
url
Gets the url.The URL for the external service or application to which you want to send HTTP POST requests.
- Returns:
- the url
-
name
Gets the name.The name of the webhook. Currently, `main_webhook` is the only supported value.
- Returns:
- the name
-
headers
Gets the headers.An optional array of HTTP headers to pass with the HTTP request.
- Returns:
- the headers
-