Constructor and Description |
---|
SessionUpdater(String pathServiceSid,
String pathSid)
Construct a new SessionUpdater.
|
Modifier and Type | Method and Description |
---|---|
SessionUpdater |
setDateExpiry(ZonedDateTime dateExpiry)
The ISO 8601 date when
the Session should expire.
|
SessionUpdater |
setFailOnParticipantConflict(Boolean failOnParticipantConflict)
[Experimental] For accounts with the ProxyAllowParticipantConflict account
flag, setting to true enables per-request opt-in to allowing Proxy to return
a 400 error (Twilio error code 80604) when a request to set a Session to
in-progress would cause Participants with the same Identifier/ProxyIdentifier
pair to be active in multiple Sessions.
|
SessionUpdater |
setStatus(Session.Status status)
The new status of the resource.
|
SessionUpdater |
setTtl(Integer ttl)
The time, in seconds, when the session will expire.
|
Session |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public SessionUpdater setDateExpiry(ZonedDateTime dateExpiry)
dateExpiry
- The ISO 8601 date when the Session should expirepublic SessionUpdater setTtl(Integer ttl)
ttl
- When the session will expirepublic SessionUpdater setStatus(Session.Status status)
status
- The new status of the resourcepublic SessionUpdater setFailOnParticipantConflict(Boolean failOnParticipantConflict)
failOnParticipantConflict
- An experimental parameter to override the
ProxyAllowParticipantConflict account flag
on a per-request basis.public Session update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.