Class SubscribedEvent
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.events.v1.subscription.SubscribedEvent
-
- All Implemented Interfaces:
Serializable
public class SubscribedEvent extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscribedEventCreatorcreator(String pathSubscriptionSid, String type)static SubscribedEventDeleterdeleter(String pathSubscriptionSid, String pathType)booleanequals(Object o)static SubscribedEventFetcherfetcher(String pathSubscriptionSid, String pathType)static SubscribedEventfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a SubscribedEvent object using the provided ObjectMapper.static SubscribedEventfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a SubscribedEvent object using the provided ObjectMapper.StringgetAccountSid()IntegergetSchemaVersion()StringgetSubscriptionSid()StringgetType()URIgetUrl()inthashCode()static SubscribedEventReaderreader(String pathSubscriptionSid)static SubscribedEventUpdaterupdater(String pathSubscriptionSid, String pathType)
-
-
-
Method Detail
-
creator
public static SubscribedEventCreator creator(String pathSubscriptionSid, String type)
-
fetcher
public static SubscribedEventFetcher fetcher(String pathSubscriptionSid, String pathType)
-
deleter
public static SubscribedEventDeleter deleter(String pathSubscriptionSid, String pathType)
-
reader
public static SubscribedEventReader reader(String pathSubscriptionSid)
-
updater
public static SubscribedEventUpdater updater(String pathSubscriptionSid, String pathType)
-
fromJson
public static SubscribedEvent fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SubscribedEvent object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- SubscribedEvent object represented by the provided JSON
-
fromJson
public static SubscribedEvent fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SubscribedEvent object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- SubscribedEvent object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getType
public final String getType()
-
getSchemaVersion
public final Integer getSchemaVersion()
-
getSubscriptionSid
public final String getSubscriptionSid()
-
getUrl
public final URI getUrl()
-
-