public class Document extends Resource
| Modifier and Type | Method and 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 |
getDateExpires()
Returns The The date_expires.
|
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)
Create a DocumentUpdater to execute update.
|
public static DocumentFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - The sidpublic static DocumentDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - The sidpublic static DocumentCreator creator(String pathServiceSid)
pathServiceSid - The service_sidpublic static DocumentReader reader(String pathServiceSid)
pathServiceSid - The service_sidpublic static DocumentUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid - The service_sidpathSid - The sidpublic static Document fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Document fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
public final String getUniqueName()
public final String getAccountSid()
public final String getServiceSid()
public final URI getUrl()
public final String getRevision()
public final org.joda.time.DateTime getDateExpires()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getCreatedBy()
Copyright © 2016 Twilio, Inc. All Rights Reserved.