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
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentCreator
creator(String pathServiceSid)
Create a DocumentCreator to execute create.static DocumentDeleter
deleter(String pathServiceSid, String pathSid)
Create a DocumentDeleter to execute delete.boolean
equals(Object o)
static DocumentFetcher
fetcher(String pathServiceSid, String pathSid)
Create a DocumentFetcher to execute fetch.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()
Returns The The account_sid.String
getCreatedBy()
Returns The The created_by.Map<String,Object>
getData()
Returns The The data.org.joda.time.DateTime
getDateCreated()
Returns The The date_created.org.joda.time.DateTime
getDateUpdated()
Returns The The date_updated.Map<String,String>
getLinks()
Returns The The links.String
getRevision()
Returns The The revision.String
getServiceSid()
Returns The The service_sid.String
getSid()
Returns The The sid.String
getUniqueName()
Returns The The unique_name.URI
getUrl()
Returns The The url.int
hashCode()
static DocumentReader
reader(String pathServiceSid)
Create a DocumentReader to execute read.String
toString()
static DocumentUpdater
updater(String pathServiceSid, String pathSid, Map<String,Object> data)
Create a DocumentUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static DocumentFetcher fetcher(String pathServiceSid, String pathSid)
Create a DocumentFetcher to execute fetch.- Parameters:
pathServiceSid
- The service_sidpathSid
- The sid- Returns:
- DocumentFetcher capable of executing the fetch
-
deleter
public static DocumentDeleter deleter(String pathServiceSid, String pathSid)
Create a DocumentDeleter to execute delete.- Parameters:
pathServiceSid
- The service_sidpathSid
- The sid- Returns:
- DocumentDeleter capable of executing the delete
-
creator
public static DocumentCreator creator(String pathServiceSid)
Create a DocumentCreator to execute create.- Parameters:
pathServiceSid
- The service_sid- Returns:
- DocumentCreator capable of executing the create
-
reader
public static DocumentReader reader(String pathServiceSid)
Create a DocumentReader to execute read.- Parameters:
pathServiceSid
- The service_sid- Returns:
- DocumentReader capable of executing the read
-
updater
public static DocumentUpdater updater(String pathServiceSid, String pathSid, Map<String,Object> data)
Create a DocumentUpdater to execute update.- Parameters:
pathServiceSid
- The service_sidpathSid
- The siddata
- The data- Returns:
- DocumentUpdater capable of executing the update
-
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()
Returns The The sid.- Returns:
- The sid
-
getUniqueName
public final String getUniqueName()
Returns The The unique_name.- Returns:
- The unique_name
-
getAccountSid
public final String getAccountSid()
Returns The The account_sid.- Returns:
- The account_sid
-
getServiceSid
public final String getServiceSid()
Returns The The service_sid.- Returns:
- The service_sid
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
getRevision
public final String getRevision()
Returns The The revision.- Returns:
- The revision
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date_created.- Returns:
- The date_created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date_updated.- Returns:
- The date_updated
-
getCreatedBy
public final String getCreatedBy()
Returns The The created_by.- Returns:
- The created_by
-
-