Constructor and Description |
---|
MessageUpdater(String pathServiceSid,
String pathChannelSid,
String pathSid)
Construct a new MessageUpdater.
|
Modifier and Type | Method and Description |
---|---|
MessageUpdater |
setAttributes(String attributes)
A valid JSON string that contains application-specific data..
|
MessageUpdater |
setBody(String body)
The message to send to the channel.
|
MessageUpdater |
setDateCreated(org.joda.time.DateTime dateCreated)
The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
format, to assign to the resource as the date it was created.
|
MessageUpdater |
setDateUpdated(org.joda.time.DateTime dateUpdated)
The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
format, to assign to the resource as the date it was last updated..
|
MessageUpdater |
setFrom(String from)
The [Identity](https://www.twilio.com/docs/chat/identity) of the message's
author..
|
MessageUpdater |
setLastUpdatedBy(String lastUpdatedBy)
The [Identity](https://www.twilio.com/docs/chat/identity) of the User who
last updated the Message, if applicable..
|
Message |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public MessageUpdater(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathChannelSid
- The SID of the Channel the message belongs topathSid
- The SID of the Message resource to updatepublic MessageUpdater setBody(String body)
body
- The message to send to the channelpublic MessageUpdater setAttributes(String attributes)
attributes
- A valid JSON string that contains application-specific datapublic MessageUpdater setDateCreated(org.joda.time.DateTime dateCreated)
dateCreated
- The ISO 8601 date and time in GMT when the resource was
createdpublic MessageUpdater setDateUpdated(org.joda.time.DateTime dateUpdated)
dateUpdated
- The ISO 8601 date and time in GMT when the resource was
updatedpublic MessageUpdater setLastUpdatedBy(String lastUpdatedBy)
lastUpdatedBy
- The Identity of the User who last updated the Message,
if applicablepublic MessageUpdater setFrom(String from)
from
- The Identity of the message's authorpublic Message update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.