public class SyncMapPermission extends Resource
Modifier and Type | Method and Description |
---|---|
static SyncMapPermissionDeleter |
deleter(String pathServiceSid,
String pathMapSid,
String pathIdentity)
Create a SyncMapPermissionDeleter to execute delete.
|
boolean |
equals(Object o) |
static SyncMapPermissionFetcher |
fetcher(String pathServiceSid,
String pathMapSid,
String pathIdentity)
Create a SyncMapPermissionFetcher to execute fetch.
|
static SyncMapPermission |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SyncMapPermission object using the
provided ObjectMapper.
|
static SyncMapPermission |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SyncMapPermission object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getIdentity()
Returns The identity of the user to whom the Sync Document Permission
applies.
|
Boolean |
getManage()
Returns Manage access.
|
String |
getMapSid()
Returns Sync Map SID.
|
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 Map Permission resource.
|
Boolean |
getWrite()
Returns Write access.
|
int |
hashCode() |
static SyncMapPermissionReader |
reader(String pathServiceSid,
String pathMapSid)
Create a SyncMapPermissionReader to execute read.
|
static SyncMapPermissionUpdater |
updater(String pathServiceSid,
String pathMapSid,
String pathIdentity,
Boolean read,
Boolean write,
Boolean manage)
Create a SyncMapPermissionUpdater to execute update.
|
public static SyncMapPermissionFetcher fetcher(String pathServiceSid, String pathMapSid, String pathIdentity)
pathServiceSid
- The SID of the Sync Service with the Sync Map
Permission resource to fetchpathMapSid
- The SID of the Sync Map with the Sync Map Permission
resource to fetchpathIdentity
- The application-defined string that uniquely identifies
the User's Sync Map Permission resource to fetchpublic static SyncMapPermissionDeleter deleter(String pathServiceSid, String pathMapSid, String pathIdentity)
pathServiceSid
- The SID of the Sync Service with the Sync Map
Permission resource to deletepathMapSid
- The SID of the Sync Map with the Sync Map Permission
resource to deletepathIdentity
- The application-defined string that uniquely identifies
the User's Sync Map Permission resource to deletepublic static SyncMapPermissionReader reader(String pathServiceSid, String pathMapSid)
pathServiceSid
- The SID of the Sync Service with the Sync Map
Permission resources to readpathMapSid
- The SID of the Sync Map with the Permission resources to
readpublic static SyncMapPermissionUpdater updater(String pathServiceSid, String pathMapSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
pathServiceSid
- The SID of the Sync Service with the Sync Map
Permission resource to updatepathMapSid
- The SID of the Sync Map with the Sync Map Permission
resource to updatepathIdentity
- The application-defined string that uniquely identifies
the User's Sync Map Permission resource to updateread
- Read accesswrite
- Write accessmanage
- Manage accesspublic static SyncMapPermission fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static SyncMapPermission 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 getMapSid()
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.