Constructor and Description |
---|
MessageCreator(String pathChatServiceSid,
String pathConversationSid)
Construct a new MessageCreator.
|
Modifier and Type | Method and Description |
---|---|
Message |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
MessageCreator |
setAttributes(String attributes)
A string metadata field you can use to store any data you wish.
|
MessageCreator |
setAuthor(String author)
The channel specific identifier of the message's author.
|
MessageCreator |
setBody(String body)
The content of the message, can be up to 1,600 characters long..
|
MessageCreator |
setDateCreated(ZonedDateTime dateCreated)
The date that this resource was created..
|
MessageCreator |
setDateUpdated(ZonedDateTime dateUpdated)
The date that this resource was last updated.
|
MessageCreator |
setMediaSid(String mediaSid)
The Media SID to be attached to the new Message..
|
MessageCreator |
setXTwilioWebhookEnabled(Message.WebhookEnabledType xTwilioWebhookEnabled)
The X-Twilio-Webhook-Enabled HTTP request header.
|
create, createAsync, createAsync
public MessageCreator(String pathChatServiceSid, String pathConversationSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for this
message.public MessageCreator setAuthor(String author)
author
- The channel specific identifier of the message's author.public MessageCreator setBody(String body)
body
- The content of the message.public MessageCreator setDateCreated(ZonedDateTime dateCreated)
dateCreated
- The date that this resource was created.public MessageCreator setDateUpdated(ZonedDateTime dateUpdated)
dateUpdated
- The date that this resource was last updated.public MessageCreator setAttributes(String attributes)
attributes
- A string metadata field you can use to store any data you
wish.public MessageCreator setMediaSid(String mediaSid)
mediaSid
- The Media SID to be attached to the new Message.public MessageCreator setXTwilioWebhookEnabled(Message.WebhookEnabledType xTwilioWebhookEnabled)
xTwilioWebhookEnabled
- The X-Twilio-Webhook-Enabled HTTP request headerpublic Message create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.