Class SyncListPermission
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.sync.service.synclist.SyncListPermission
-
- All Implemented Interfaces:
Serializable
public class SyncListPermission extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncListPermissionDeleter
deleter(String pathServiceSid, String pathListSid, String pathIdentity)
Create a SyncListPermissionDeleter to execute delete.boolean
equals(Object o)
static SyncListPermissionFetcher
fetcher(String pathServiceSid, String pathListSid, String pathIdentity)
Create a SyncListPermissionFetcher to execute fetch.static SyncListPermission
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SyncListPermission object using the provided ObjectMapper.static SyncListPermission
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SyncListPermission object using the provided ObjectMapper.String
getAccountSid()
Returns The Twilio Account SID..String
getIdentity()
Returns The Identity of the user to whom the Sync List Permission applies..String
getListSid()
Returns The Sync List SID..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 List Permission..Boolean
getWrite()
Returns The Write access..int
hashCode()
static SyncListPermissionReader
reader(String pathServiceSid, String pathListSid)
Create a SyncListPermissionReader to execute read.String
toString()
static SyncListPermissionUpdater
updater(String pathServiceSid, String pathListSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
Create a SyncListPermissionUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static SyncListPermissionFetcher fetcher(String pathServiceSid, String pathListSid, String pathIdentity)
Create a SyncListPermissionFetcher to execute fetch.- Parameters:
pathServiceSid
- The service_sidpathListSid
- Sync List SID or unique name.pathIdentity
- Identity of the user to whom the Sync List Permission applies.- Returns:
- SyncListPermissionFetcher capable of executing the fetch
-
deleter
public static SyncListPermissionDeleter deleter(String pathServiceSid, String pathListSid, String pathIdentity)
Create a SyncListPermissionDeleter to execute delete.- Parameters:
pathServiceSid
- The service_sidpathListSid
- Sync List SID or unique name.pathIdentity
- Identity of the user to whom the Sync List Permission applies.- Returns:
- SyncListPermissionDeleter capable of executing the delete
-
reader
public static SyncListPermissionReader reader(String pathServiceSid, String pathListSid)
Create a SyncListPermissionReader to execute read.- Parameters:
pathServiceSid
- The service_sidpathListSid
- Sync List SID or unique name.- Returns:
- SyncListPermissionReader capable of executing the read
-
updater
public static SyncListPermissionUpdater updater(String pathServiceSid, String pathListSid, String pathIdentity, Boolean read, Boolean write, Boolean manage)
Create a SyncListPermissionUpdater to execute update.- Parameters:
pathServiceSid
- Sync Service Instance SID.pathListSid
- Sync List SID or unique name.pathIdentity
- Identity of the user to whom the Sync List Permission applies.read
- Read access.write
- Write access.manage
- Manage access.- Returns:
- SyncListPermissionUpdater capable of executing the update
-
fromJson
public static SyncListPermission fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SyncListPermission object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- SyncListPermission object represented by the provided JSON
-
fromJson
public static SyncListPermission fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SyncListPermission object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- SyncListPermission object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The Twilio Account SID..- Returns:
- Twilio Account SID.
-
getServiceSid
public final String getServiceSid()
Returns The Sync Service Instance SID..- Returns:
- Sync Service Instance SID.
-
getListSid
public final String getListSid()
Returns The Sync List SID..- Returns:
- Sync List SID.
-
getIdentity
public final String getIdentity()
Returns The Identity of the user to whom the Sync List Permission applies..- Returns:
- Identity of the user to whom the Sync List Permission applies.
-
getRead
public final Boolean getRead()
Returns The Read access..- Returns:
- Read access.
-
getWrite
public final Boolean getWrite()
Returns The Write access..- Returns:
- Write access.
-
getManage
public final Boolean getManage()
Returns The Manage access..- Returns:
- Manage access.
-
getUrl
public final URI getUrl()
Returns The URL of this Sync List Permission..- Returns:
- URL of this Sync List Permission.
-
-