Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setCallbackUrl(String callbackUrl)
The URL to which Twilio will make callbacks on interaction status changes..
|
ServiceUpdater |
setCallbackUrl(URI callbackUrl)
The URL to which Twilio will make callbacks on interaction status changes..
|
ServiceUpdater |
setDefaultTtl(Integer defaultTtl)
The default time delay in seconds after the latest of Session create time or
the Session's last Interaction time, after which a session will expire.
|
ServiceUpdater |
setGeoMatchLevel(Service.GeoMatchLevel geoMatchLevel)
Whether proxy number selected must be in the same area code as the
participant identifier.
|
ServiceUpdater |
setInterceptCallbackUrl(String interceptCallbackUrl)
A URL for Twilio call before each Interaction.
|
ServiceUpdater |
setInterceptCallbackUrl(URI interceptCallbackUrl)
A URL for Twilio call before each Interaction.
|
ServiceUpdater |
setNumberSelectionBehavior(Service.NumberSelectionBehavior numberSelectionBehavior)
Options: `prefer-sticky`, `avoid-sticky`.
|
ServiceUpdater |
setOutOfSessionCallbackUrl(String outOfSessionCallbackUrl)
A URL for Twilio call when a new Interaction has no
[Session](https://www.twilio.com/docs/proxy/api/session)..
|
ServiceUpdater |
setOutOfSessionCallbackUrl(URI outOfSessionCallbackUrl)
A URL for Twilio call when a new Interaction has no
[Session](https://www.twilio.com/docs/proxy/api/session)..
|
ServiceUpdater |
setUniqueName(String uniqueName)
A human readable description of this resource, up to 64 characters..
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- A string that uniquely identifies this Service.public ServiceUpdater setUniqueName(String uniqueName)
uniqueName
- A human readable description of this resource.public ServiceUpdater setDefaultTtl(Integer defaultTtl)
defaultTtl
- Default TTL for Sessions in Service, in seconds.public ServiceUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- URL Twilio will send callbacks topublic ServiceUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- URL Twilio will send callbacks topublic ServiceUpdater setGeoMatchLevel(Service.GeoMatchLevel geoMatchLevel)
geoMatchLevel
- Whether proxy number selected must be in the same area
code as the participant identifier.public ServiceUpdater setNumberSelectionBehavior(Service.NumberSelectionBehavior numberSelectionBehavior)
numberSelectionBehavior
- What behavior to use when choosing a proxy
number.public ServiceUpdater setInterceptCallbackUrl(URI interceptCallbackUrl)
interceptCallbackUrl
- A URL for Twilio call before each Interaction.public ServiceUpdater setInterceptCallbackUrl(String interceptCallbackUrl)
interceptCallbackUrl
- A URL for Twilio call before each Interaction.public ServiceUpdater setOutOfSessionCallbackUrl(URI outOfSessionCallbackUrl)
outOfSessionCallbackUrl
- A URL for Twilio call when a new Interaction
has no Session.public ServiceUpdater setOutOfSessionCallbackUrl(String outOfSessionCallbackUrl)
outOfSessionCallbackUrl
- A URL for Twilio call when a new Interaction
has no Session.public Service update(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.