Class UserUpdater

    • Constructor Detail

      • UserUpdater

        public UserUpdater​(String pathServiceSid,
                           String pathSid)
        Construct a new UserUpdater.
        Parameters:
        pathServiceSid - The SID of the Service to update the resource from
        pathSid - The unique string that identifies the resource
    • Method Detail

      • setRoleSid

        public UserUpdater setRoleSid​(String roleSid)
        The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user..
        Parameters:
        roleSid - The SID id of the Role assigned to this user
        Returns:
        this
      • setAttributes

        public UserUpdater setAttributes​(String attributes)
        A valid JSON string that contains application-specific data..
        Parameters:
        attributes - A valid JSON string that contains application-specific data
        Returns:
        this
      • setFriendlyName

        public UserUpdater setFriendlyName​(String friendlyName)
        A descriptive string that you create to describe the resource. It is often used for display purposes..
        Parameters:
        friendlyName - A string to describe the resource
        Returns:
        this
      • update

        public User update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<User>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated User