Class 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 Detail

      • fetcher

        public static SyncListPermissionFetcher fetcher​(String pathServiceSid,
                                                        String pathListSid,
                                                        String pathIdentity)
        Create a SyncListPermissionFetcher to execute fetch.
        Parameters:
        pathServiceSid - The service_sid
        pathListSid - 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_sid
        pathListSid - 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_sid
        pathListSid - 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 String
        objectMapper - 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 InputStream
        objectMapper - 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object