Class Webhook
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.autopilot.v1.assistant.Webhook
-
- All Implemented Interfaces:
Serializable
public class Webhook extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookCreatorcreator(String pathAssistantSid, String uniqueName, String events, URI webhookUrl)static WebhookDeleterdeleter(String pathAssistantSid, String pathSid)booleanequals(Object o)static WebhookFetcherfetcher(String pathAssistantSid, 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()StringgetAssistantSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetEvents()StringgetSid()StringgetUniqueName()URIgetUrl()StringgetWebhookMethod()URIgetWebhookUrl()inthashCode()static WebhookReaderreader(String pathAssistantSid)static WebhookUpdaterupdater(String pathAssistantSid, String pathSid)
-
-
-
Method Detail
-
creator
public static WebhookCreator creator(String pathAssistantSid, String uniqueName, String events, URI webhookUrl)
-
fetcher
public static WebhookFetcher fetcher(String pathAssistantSid, String pathSid)
-
deleter
public static WebhookDeleter deleter(String pathAssistantSid, String pathSid)
-
reader
public static WebhookReader reader(String pathAssistantSid)
-
updater
public static WebhookUpdater updater(String pathAssistantSid, 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
-
getUrl
public final URI getUrl()
-
getAccountSid
public final String getAccountSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getAssistantSid
public final String getAssistantSid()
-
getSid
public final String getSid()
-
getUniqueName
public final String getUniqueName()
-
getEvents
public final String getEvents()
-
getWebhookUrl
public final URI getWebhookUrl()
-
getWebhookMethod
public final String getWebhookMethod()
-
-