Package com.twilio.rest.sync.v1.service
Class Document
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.sync.v1.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 DocumentCreator
creator(String pathServiceSid)
static DocumentDeleter
deleter(String pathServiceSid, String pathSid)
boolean
equals(Object o)
static DocumentFetcher
fetcher(String pathServiceSid, String pathSid)
static Document
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Document object using the provided ObjectMapper.static Document
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Document object using the provided ObjectMapper.String
getAccountSid()
String
getCreatedBy()
Map<String,Object>
getData()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateExpires()
ZonedDateTime
getDateUpdated()
Map<String,String>
getLinks()
String
getRevision()
String
getServiceSid()
String
getSid()
String
getUniqueName()
URI
getUrl()
int
hashCode()
static DocumentReader
reader(String pathServiceSid)
static DocumentUpdater
updater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static DocumentCreator creator(String pathServiceSid)
-
deleter
public static DocumentDeleter deleter(String pathServiceSid, String pathSid)
-
fetcher
public static DocumentFetcher fetcher(String pathServiceSid, String pathSid)
-
reader
public static DocumentReader reader(String pathServiceSid)
-
updater
public static DocumentUpdater updater(String pathServiceSid, String pathSid)
-
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()
-
getDateExpires
public final ZonedDateTime getDateExpires()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getCreatedBy
public final String getCreatedBy()
-
-