Class MemberCreator

    • Constructor Detail

      • MemberCreator

        public MemberCreator​(String pathServiceSid,
                             String pathChannelSid,
                             String identity)
        Construct a new MemberCreator.
        Parameters:
        pathServiceSid - The SID of the Service to create the resource under
        pathChannelSid - The unique ID of the channel the new member belongs to
        identity - The `identity` value that identifies the new resource's User
    • Method Detail

      • setRoleSid

        public MemberCreator setRoleSid​(String roleSid)
        The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services)..
        Parameters:
        roleSid - The SID of the Role to assign to the member
        Returns:
        this
      • create

        public Member create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<Member>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created Member