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 SID of the Account that created the resource.
|
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 Manage access.
|
Boolean |
getRead()
Returns Read access.
|
String |
getServiceSid()
Returns The SID of the Sync Service that the resource is associated with.
|
URI |
getUrl()
Returns The absolute URL of the Sync Document Permission resource.
|
Boolean |
getWrite()
Returns Write access.
|
int |
hashCode() |
static DocumentPermissionReader |
reader(String pathServiceSid,
String pathDocumentSid)
Create a DocumentPermissionReader to execute read.
|
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 SID of the Sync Service with the Document
Permission resource to fetchpathDocumentSid
- The SID of the Sync Document with the Document
Permission resource to fetchpathIdentity
- The application-defined string that uniquely identifies
the User's Document Permission resource to fetchpublic static DocumentPermissionDeleter deleter(String pathServiceSid, String pathDocumentSid, String pathIdentity)
pathServiceSid
- The SID of the Sync Service with the Document
Permission resource to deletepathDocumentSid
- The SID of the Sync Document with the Document
Permission resource to deletepathIdentity
- The application-defined string that uniquely identifies
the User's Document Permission resource to deletepublic static DocumentPermissionReader reader(String pathServiceSid, String pathDocumentSid)
pathServiceSid
- The SID of the Sync Service with the Document
Permission resources to readpathDocumentSid
- The SID of the Sync Document with the Document
Permission resources to readpublic static DocumentPermissionUpdater updater(String pathServiceSid, String pathDocumentSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
pathServiceSid
- The SID of the Sync Service with the Document
Permission resource to updatepathDocumentSid
- The SID of the Sync Document with the Document
Permission resource to updatepathIdentity
- The application-defined string that uniquely identifies
the User's Document Permission resource to updateread
- Read accesswrite
- Write accessmanage
- Manage accesspublic 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.