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 classWebhook.Method
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static WebhookFetcherfetcher(String pathChatServiceSid)static WebhookfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Webhook object using the provided ObjectMapper.static WebhookfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Webhook object using the provided ObjectMapper.StringgetAccountSid()StringgetChatServiceSid()List<String>getFilters()Webhook.MethodgetMethod()URIgetPostWebhookUrl()URIgetPreWebhookUrl()URIgetUrl()inthashCode()static WebhookUpdaterupdater(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()
-
-