Class UserCreator
- java.lang.Object
-
- com.twilio.base.Creator<User>
-
- com.twilio.rest.ipmessaging.v1.service.UserCreator
-
-
Constructor Summary
Constructors Constructor Description UserCreator(String pathServiceSid, String identity)
Construct a new UserCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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..-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Method Detail
-
setRoleSid
public UserCreator setRoleSid(String roleSid)
The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User..- Parameters:
roleSid
- The SID of the Role assigned to this user- Returns:
- this
-
setAttributes
public UserCreator 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 UserCreator setFriendlyName(String friendlyName)
A descriptive string that you create to describe the new resource. This value is often used for display purposes..- Parameters:
friendlyName
- A string to describe the new resource- Returns:
- this
-
create
public User create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
-
-