Class 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 Detail

      • ParticipantUpdater

        public ParticipantUpdater​(String pathSessionSid,
                                  String pathSid)
        Construct a new ParticipantUpdater.
        Parameters:
        pathSessionSid - The unique id of the Session for this participant.
        pathSid - A 34 character string that uniquely identifies this resource.
    • 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 class Updater<Participant>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Participant