Class DocumentPermission
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.sync.v1.service.document.DocumentPermission
-
- All Implemented Interfaces:
Serializable
public class DocumentPermission extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentPermissionDeleter
deleter(String pathServiceSid, String pathDocumentSid, String pathIdentity)
boolean
equals(Object o)
static DocumentPermissionFetcher
fetcher(String pathServiceSid, String pathDocumentSid, String pathIdentity)
static DocumentPermission
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a DocumentPermission object using the provided ObjectMapper.static DocumentPermission
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a DocumentPermission object using the provided ObjectMapper.String
getAccountSid()
String
getDocumentSid()
String
getIdentity()
Boolean
getManage()
Boolean
getRead()
String
getServiceSid()
URI
getUrl()
Boolean
getWrite()
int
hashCode()
static DocumentPermissionReader
reader(String pathServiceSid, String pathDocumentSid)
static DocumentPermissionUpdater
updater(String pathServiceSid, String pathDocumentSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
-
-
-
Method Detail
-
deleter
public static DocumentPermissionDeleter deleter(String pathServiceSid, String pathDocumentSid, String pathIdentity)
-
fetcher
public static DocumentPermissionFetcher fetcher(String pathServiceSid, String pathDocumentSid, String pathIdentity)
-
reader
public static DocumentPermissionReader reader(String pathServiceSid, String pathDocumentSid)
-
updater
public static DocumentPermissionUpdater updater(String pathServiceSid, String pathDocumentSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
-
fromJson
public static DocumentPermission fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a DocumentPermission object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- DocumentPermission object represented by the provided JSON
-
fromJson
public static DocumentPermission fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a DocumentPermission object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- DocumentPermission object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getDocumentSid
public final String getDocumentSid()
-
getIdentity
public final String getIdentity()
-
getRead
public final Boolean getRead()
-
getWrite
public final Boolean getWrite()
-
getManage
public final Boolean getManage()
-
getUrl
public final URI getUrl()
-
-