public class DocumentPermission extends Resource
| Modifier and Type | Method and Description |
|---|---|
static DocumentPermissionDeleter |
deleter(String pathServiceSid,
String pathDocumentSid,
String pathIdentity)
Create a DocumentPermissionDeleter to execute delete.
|
boolean |
equals(Object o) |
static DocumentPermissionFetcher |
fetcher(String pathServiceSid,
String pathDocumentSid,
String pathIdentity)
Create a DocumentPermissionFetcher to execute fetch.
|
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()
Returns The Twilio Account SID..
|
String |
getDocumentSid()
Returns The Sync Document SID..
|
String |
getIdentity()
Returns The Identity of the user to whom the Sync Document Permission
applies..
|
Boolean |
getManage()
Returns The Manage access..
|
Boolean |
getRead()
Returns The Read access..
|
String |
getServiceSid()
Returns The Sync Service Instance SID..
|
URI |
getUrl()
Returns The URL of this Sync Document Permission..
|
Boolean |
getWrite()
Returns The Write access..
|
int |
hashCode() |
static DocumentPermissionReader |
reader(String pathServiceSid,
String pathDocumentSid)
Create a DocumentPermissionReader to execute read.
|
String |
toString() |
static DocumentPermissionUpdater |
updater(String pathServiceSid,
String pathDocumentSid,
String pathIdentity,
Boolean read,
Boolean write,
Boolean manage)
Create a DocumentPermissionUpdater to execute update.
|
public static DocumentPermissionFetcher fetcher(String pathServiceSid, String pathDocumentSid, String pathIdentity)
pathServiceSid - The service_sidpathDocumentSid - Sync Document SID or unique name.pathIdentity - Identity of the user to whom the Sync Document
Permission applies.public static DocumentPermissionDeleter deleter(String pathServiceSid, String pathDocumentSid, String pathIdentity)
pathServiceSid - The service_sidpathDocumentSid - Sync Document SID or unique name.pathIdentity - Identity of the user to whom the Sync Document
Permission applies.public static DocumentPermissionReader reader(String pathServiceSid, String pathDocumentSid)
pathServiceSid - The service_sidpathDocumentSid - Sync Document SID or unique name.public static DocumentPermissionUpdater updater(String pathServiceSid, String pathDocumentSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
pathServiceSid - Sync Service Instance SID or unique name.pathDocumentSid - Sync Document SID or unique name.pathIdentity - Identity of the user to whom the Sync Document
Permission applies.read - Read access.write - Write access.manage - Manage access.public static DocumentPermission fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static DocumentPermission fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getAccountSid()
public final String getServiceSid()
public final String getDocumentSid()
public final String getIdentity()
public final Boolean getRead()
public final Boolean getWrite()
public final Boolean getManage()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.