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 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.inthashCode()static DocumentReaderreader(String pathServiceSid)static StringtoJson(Object object, com.fasterxml.jackson.databind.ObjectMapper mapper)static DocumentUpdaterupdater(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
-
toJson
public static String toJson(Object object, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-