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 account_sid.
|
String |
getCreatedBy()
Returns The created_by.
|
Map<String,Object> |
getData()
Returns The data.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
Map<String,String> |
getLinks()
Returns The links.
|
String |
getRevision()
Returns The revision.
|
String |
getServiceSid()
Returns The service_sid.
|
String |
getSid()
Returns The sid.
|
String |
getUniqueName()
Returns The unique_name.
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static DocumentReader |
reader(String pathServiceSid)
Create a DocumentReader to execute read.
|
static DocumentUpdater |
updater(String pathServiceSid,
String pathSid,
Map<String,Object> data)
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, Map<String,Object> data)
pathServiceSid
- The service_sidpathSid
- The siddata
- The datapublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getCreatedBy()
Copyright © 2019 Twilio, Inc. All Rights Reserved.