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 Twilio Account SID..
|
String |
getDocumentSid()
Returns Sync Document SID..
|
String |
getIdentity()
Returns Identity of the user to whom the Sync Document Permission applies..
|
Boolean |
getManage()
Returns Manage access..
|
Boolean |
getRead()
Returns Read access..
|
String |
getServiceSid()
Returns Sync Service Instance SID..
|
URI |
getUrl()
Returns URL of this Sync Document Permission..
|
Boolean |
getWrite()
Returns 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.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 © 2019 Twilio, Inc. All Rights Reserved.