Class ParticipantUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Participant>
-
- com.twilio.rest.messaging.v1.session.ParticipantUpdater
-
public class ParticipantUpdater extends Updater<Participant>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description ParticipantUpdater(String pathSessionSid, String pathSid)
Construct a new ParticipantUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParticipantUpdater
setAttributes(String attributes)
An optional string metadata field you can use to store any data you wish.ParticipantUpdater
setDateCreated(org.joda.time.DateTime dateCreated)
The date that this resource was created.ParticipantUpdater
setDateUpdated(org.joda.time.DateTime dateUpdated)
The date that this resource was last updated..Participant
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Method Detail
-
setAttributes
public ParticipantUpdater setAttributes(String attributes)
An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set "{}" will be returned..- Parameters:
attributes
- An optional string metadata field you can use to store any data you wish.- Returns:
- this
-
setDateCreated
public ParticipantUpdater setDateCreated(org.joda.time.DateTime dateCreated)
The date that this resource was created. This is useful when bulk-importing messages from another system, as the provided value will be trusted and displayed on SDK clients..- Parameters:
dateCreated
- The date that this resource was created.- Returns:
- this
-
setDateUpdated
public ParticipantUpdater setDateUpdated(org.joda.time.DateTime dateUpdated)
The date that this resource was last updated..- Parameters:
dateUpdated
- The date that this resource was last updated.- Returns:
- this
-
update
public Participant update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.- Specified by:
update
in classUpdater<Participant>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Updated Participant
-
-