Package com.twilio.rest.events.v1
Class Subscription
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.events.v1.Subscription
-
- All Implemented Interfaces:
Serializable
public class Subscription extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionCreatorcreator(String description, String sinkSid, List<Map<String,Object>> types)static SubscriptionDeleterdeleter(String pathSid)booleanequals(Object o)static SubscriptionFetcherfetcher(String pathSid)static SubscriptionfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Subscription object using the provided ObjectMapper.static SubscriptionfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Subscription object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDescription()Map<String,String>getLinks()StringgetSid()StringgetSinkSid()URIgetUrl()inthashCode()static SubscriptionReaderreader()static SubscriptionUpdaterupdater(String pathSid)
-
-
-
Method Detail
-
creator
public static SubscriptionCreator creator(String description, String sinkSid, List<Map<String,Object>> types)
-
fetcher
public static SubscriptionFetcher fetcher(String pathSid)
-
deleter
public static SubscriptionDeleter deleter(String pathSid)
-
reader
public static SubscriptionReader reader()
-
updater
public static SubscriptionUpdater updater(String pathSid)
-
fromJson
public static Subscription fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Subscription object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Subscription object represented by the provided JSON
-
fromJson
public static Subscription fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Subscription object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Subscription object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getSid
public final String getSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getDescription
public final String getDescription()
-
getSinkSid
public final String getSinkSid()
-
getUrl
public final URI getUrl()
-
-