Class Webhook
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.service.configuration.Webhook
-
- All Implemented Interfaces:
Serializable
public class Webhook extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Webhook.Method
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static WebhookFetcher
fetcher(String pathChatServiceSid)
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()
String
getChatServiceSid()
List<String>
getFilters()
Webhook.Method
getMethod()
URI
getPostWebhookUrl()
URI
getPreWebhookUrl()
URI
getUrl()
int
hashCode()
static WebhookUpdater
updater(String pathChatServiceSid)
-
-
-
Method Detail
-
fetcher
public static WebhookFetcher fetcher(String pathChatServiceSid)
-
updater
public static WebhookUpdater updater(String pathChatServiceSid)
-
fromJson
public static Webhook fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Webhook object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Webhook object represented by the provided JSON
-
fromJson
public static Webhook fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Webhook object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Webhook object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getChatServiceSid
public final String getChatServiceSid()
-
getPreWebhookUrl
public final URI getPreWebhookUrl()
-
getPostWebhookUrl
public final URI getPostWebhookUrl()
-
getMethod
public final Webhook.Method getMethod()
-
getUrl
public final URI getUrl()
-
-