Class Webhook
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.service.conversation.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.Methodstatic classWebhook.Target
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookCreatorcreator(String pathChatServiceSid, String pathConversationSid, Webhook.Target target)static WebhookDeleterdeleter(String pathChatServiceSid, String pathConversationSid, String pathSid)booleanequals(Object o)static WebhookFetcherfetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)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()Map<String,Object>getConfiguration()StringgetConversationSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetSid()StringgetTarget()URIgetUrl()inthashCode()static WebhookReaderreader(String pathChatServiceSid, String pathConversationSid)static WebhookUpdaterupdater(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
-
-
Method Detail
-
creator
public static WebhookCreator creator(String pathChatServiceSid, String pathConversationSid, Webhook.Target target)
-
fetcher
public static WebhookFetcher fetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
deleter
public static WebhookDeleter deleter(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
reader
public static WebhookReader reader(String pathChatServiceSid, String pathConversationSid)
-
updater
public static WebhookUpdater updater(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
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
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getChatServiceSid
public final String getChatServiceSid()
-
getConversationSid
public final String getConversationSid()
-
getTarget
public final String getTarget()
-
getUrl
public final URI getUrl()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-