public class Webhook extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Webhook.Method |
static class |
Webhook.Target |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static WebhookFetcher |
fetcher()
Create a WebhookFetcher to execute fetch.
|
static Webhook |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Webhook object using the provided
ObjectMapper.
|
static Webhook |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Webhook object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The unique ID of the Account responsible for this conversation..
|
List<String> |
getFilters()
Returns The list of webhook event triggers that are enabled for this
Service..
|
Webhook.Method |
getMethod()
Returns The HTTP method to be used when sending a webhook request..
|
String |
getPostWebhookUrl()
Returns The absolute url the post-event webhook request should be sent to..
|
String |
getPreWebhookUrl()
Returns The absolute url the pre-event webhook request should be sent to..
|
Webhook.Target |
getTarget()
Returns The routing target of the webhook..
|
URI |
getUrl()
Returns An absolute URL for this webhook..
|
int |
hashCode() |
static WebhookUpdater |
updater()
Create a WebhookUpdater to execute update.
|
public static WebhookFetcher fetcher()
public static WebhookUpdater updater()
public static Webhook fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Webhook fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final Webhook.Method getMethod()
public final List<String> getFilters()
public final String getPreWebhookUrl()
public final String getPostWebhookUrl()
public final Webhook.Target getTarget()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.