Constructor and Description |
---|
UserCreator(String pathServiceSid,
String identity)
Construct a new UserCreator.
|
Modifier and Type | Method and Description |
---|---|
User |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
UserCreator |
setAttributes(String attributes)
A valid JSON string that contains application-specific data..
|
UserCreator |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the new resource.
|
UserCreator |
setRoleSid(String roleSid)
The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles)
assigned to the new User..
|
create, createAsync, createAsync
public UserCreator setRoleSid(String roleSid)
roleSid
- The SID of the Role assigned to this userpublic UserCreator setAttributes(String attributes)
attributes
- A valid JSON string that contains application-specific datapublic UserCreator setFriendlyName(String friendlyName)
friendlyName
- A string to describe the new resourcepublic User create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.