Class Webhook
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.verify.v2.service.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.Methodsstatic classWebhook.Statusstatic classWebhook.Version
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookCreatorcreator(String pathServiceSid, String friendlyName, List<String> eventTypes, String webhookUrl)static WebhookDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static WebhookFetcherfetcher(String pathServiceSid, 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()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()List<String>getEventTypes()StringgetFriendlyName()StringgetServiceSid()StringgetSid()Webhook.StatusgetStatus()URIgetUrl()Webhook.VersiongetVersion()Webhook.MethodsgetWebhookMethod()URIgetWebhookUrl()inthashCode()static WebhookReaderreader(String pathServiceSid)static WebhookUpdaterupdater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static WebhookCreator creator(String pathServiceSid, String friendlyName, List<String> eventTypes, String webhookUrl)
-
fetcher
public static WebhookFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static WebhookDeleter deleter(String pathServiceSid, String pathSid)
-
reader
public static WebhookReader reader(String pathServiceSid)
-
updater
public static WebhookUpdater updater(String pathServiceSid, 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()
-
getServiceSid
public final String getServiceSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getStatus
public final Webhook.Status getStatus()
-
getVersion
public final Webhook.Version getVersion()
-
getWebhookUrl
public final URI getWebhookUrl()
-
getWebhookMethod
public final Webhook.Methods getWebhookMethod()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-