Constructor and Description |
---|
MemberCreator(String pathServiceSid,
String pathChannelSid,
String identity)
Construct a new MemberCreator.
|
Modifier and Type | Method and Description |
---|---|
Member |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
MemberCreator |
setAttributes(String attributes)
A valid JSON string that contains application-specific data..
|
MemberCreator |
setDateCreated(ZonedDateTime dateCreated)
The date, specified in ISO
8601 format, to assign to the resource as the date it was created.
|
MemberCreator |
setDateUpdated(ZonedDateTime dateUpdated)
The date, specified in ISO
8601 format, to assign to the resource as the date it was last updated.
|
MemberCreator |
setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
|
MemberCreator |
setLastConsumptionTimestamp(ZonedDateTime lastConsumptionTimestamp)
|
MemberCreator |
setRoleSid(String roleSid)
The SID of the Role to assign
to the member.
|
MemberCreator |
setXTwilioWebhookEnabled(Member.WebhookEnabledType xTwilioWebhookEnabled)
The X-Twilio-Webhook-Enabled HTTP request header.
|
create, createAsync, createAsync
public MemberCreator(String pathServiceSid, String pathChannelSid, String identity)
pathServiceSid
- The SID of the Service to create the resource underpathChannelSid
- The SID of the channel the new member belongs toidentity
- The `identity` value that identifies the new resource's Userpublic MemberCreator setRoleSid(String roleSid)
roleSid
- The SID of the Role to assign to the memberpublic MemberCreator setLastConsumedMessageIndex(Integer lastConsumedMessageIndex)
lastConsumedMessageIndex
- The index of the last Message in the Channel
the Member has readpublic MemberCreator setLastConsumptionTimestamp(ZonedDateTime lastConsumptionTimestamp)
lastConsumptionTimestamp
- The ISO 8601 based timestamp string
representing the datetime of the last Message
read event for the member within the Channelpublic MemberCreator setDateCreated(ZonedDateTime dateCreated)
dateCreated
- The ISO 8601 date and time in GMT when the resource was
createdpublic MemberCreator setDateUpdated(ZonedDateTime dateUpdated)
dateUpdated
- The ISO 8601 date and time in GMT when the resource was
updatedpublic MemberCreator setAttributes(String attributes)
attributes
- A valid JSON string that contains application-specific datapublic MemberCreator setXTwilioWebhookEnabled(Member.WebhookEnabledType xTwilioWebhookEnabled)
xTwilioWebhookEnabled
- The X-Twilio-Webhook-Enabled HTTP request headerpublic Member create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.