Class Webhook
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.v2.service.channel.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
static class
Webhook.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookCreator
creator(String pathServiceSid, String pathChannelSid, Webhook.Type type)
static WebhookDeleter
deleter(String pathServiceSid, String pathChannelSid, String pathSid)
boolean
equals(Object o)
static WebhookFetcher
fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
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
getChannelSid()
Map<String,Object>
getConfiguration()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getServiceSid()
String
getSid()
String
getType()
URI
getUrl()
int
hashCode()
static WebhookReader
reader(String pathServiceSid, String pathChannelSid)
static WebhookUpdater
updater(String pathServiceSid, String pathChannelSid, String pathSid)
-
-
-
Method Detail
-
creator
public static WebhookCreator creator(String pathServiceSid, String pathChannelSid, Webhook.Type type)
-
deleter
public static WebhookDeleter deleter(String pathServiceSid, String pathChannelSid, String pathSid)
-
fetcher
public static WebhookFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
-
reader
public static WebhookReader reader(String pathServiceSid, String pathChannelSid)
-
updater
public static WebhookUpdater updater(String pathServiceSid, String pathChannelSid, 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()
-
getServiceSid
public final String getServiceSid()
-
getChannelSid
public final String getChannelSid()
-
getType
public final String getType()
-
getUrl
public final URI getUrl()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-