Package com.twilio.rest.content.v1
Class Content
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.content.v1.Content
-
- All Implemented Interfaces:
Serializable
public class Content extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentDeleterdeleter(String pathSid)booleanequals(Object o)static ContentFetcherfetcher(String pathSid)static ContentfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Content object using the provided ObjectMapper.static ContentfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Content object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetLanguage()Map<String,String>getLinks()StringgetSid()Map<String,Object>getTypes()URIgetUrl()Map<String,Object>getVariables()inthashCode()static ContentReaderreader()
-
-
-
Method Detail
-
fetcher
public static ContentFetcher fetcher(String pathSid)
-
deleter
public static ContentDeleter deleter(String pathSid)
-
reader
public static ContentReader reader()
-
fromJson
public static Content fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Content object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Content object represented by the provided JSON
-
fromJson
public static Content fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Content object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Content object represented by the provided JSON
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getLanguage
public final String getLanguage()
-
getUrl
public final URI getUrl()
-
-