def update(self, role_sid=values.unset,
               last_consumed_message_index=values.unset):
        """
        Update the MemberInstance

        :param unicode role_sid: The Role assigned to this member.
        :param unicode last_consumed_message_index: An Integer representing index of the last Message this Member has read within this Channel

        :returns: Updated MemberInstance
        :rtype: twilio.rest.chat.v1.service.channel.member.MemberInstance
        """
        data = values.of({'RoleSid': role_sid, 'LastConsumedMessageIndex': last_consumed_message_index, })

        payload = self._version.update(
            'POST',
            self._uri,
            data=data,
        )

        return MemberInstance(
            self._version,
            payload,
            service_sid=self._solution['service_sid'],
            channel_sid=self._solution['channel_sid'],
            sid=self._solution['sid'],
        )
Update the MemberInstance

        :param unicode role_sid: The Role assigned to this member.
        :param unicode last_consumed_message_index: An Integer representing index of the last Message this Member has read within this Channel

        :returns: Updated MemberInstance
        :rtype: twilio.rest.chat.v1.service.channel.member.MemberInstance