Class Document
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.sync.service.Document
-
- All Implemented Interfaces:
Serializable
public class Document extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentCreatorcreator(String pathServiceSid)static DocumentDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static DocumentFetcherfetcher(String pathServiceSid, String pathSid)static DocumentfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Document object using the provided ObjectMapper.static DocumentfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Document object using the provided ObjectMapper.StringgetAccountSid()StringgetCreatedBy()Map<String,Object>getData()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()Map<String,String>getLinks()StringgetRevision()StringgetServiceSid()StringgetSid()StringgetUniqueName()URIgetUrl()inthashCode()static DocumentReaderreader(String pathServiceSid)static DocumentUpdaterupdater(String pathServiceSid, String pathSid, Map<String,Object> data)
-
-
-
Method Detail
-
creator
public static DocumentCreator creator(String pathServiceSid)
-
fetcher
public static DocumentFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static DocumentDeleter deleter(String pathServiceSid, String pathSid)
-
reader
public static DocumentReader reader(String pathServiceSid)
-
updater
public static DocumentUpdater updater(String pathServiceSid, String pathSid, Map<String,Object> data)
-
fromJson
public static Document fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Document object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Document object represented by the provided JSON
-
fromJson
public static Document fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Document object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Document object represented by the provided JSON
-
getSid
public final String getSid()
-
getUniqueName
public final String getUniqueName()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getUrl
public final URI getUrl()
-
getRevision
public final String getRevision()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getCreatedBy
public final String getCreatedBy()
-
-