| Constructor and Description |
|---|
ServiceCreator(String uniqueName)
Construct a new ServiceCreator.
|
| Modifier and Type | Method and Description |
|---|---|
Service |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
ServiceCreator |
setCallbackUrl(String callbackUrl)
The URL Twilio will send callbacks to..
|
ServiceCreator |
setCallbackUrl(URI callbackUrl)
The URL Twilio will send callbacks to..
|
ServiceCreator |
setDefaultTtl(Integer defaultTtl)
The default Time to Live for a Session, in seconds..
|
ServiceCreator |
setGeoMatchLevel(Service.GeoMatchLevel geoMatchLevel)
Whether to find proxy numbers in the same areacode..
|
ServiceCreator |
setInterceptCallbackUrl(String interceptCallbackUrl)
A URL for Twilio call before each Interaction.
|
ServiceCreator |
setInterceptCallbackUrl(URI interceptCallbackUrl)
A URL for Twilio call before each Interaction.
|
ServiceCreator |
setNumberSelectionBehavior(Service.NumberSelectionBehavior numberSelectionBehavior)
What behavior to use when choosing a proxy number..
|
ServiceCreator |
setOutOfSessionCallbackUrl(String outOfSessionCallbackUrl)
A URL for Twilio call when a new Interaction has no Session..
|
ServiceCreator |
setOutOfSessionCallbackUrl(URI outOfSessionCallbackUrl)
A URL for Twilio call when a new Interaction has no Session..
|
create, createAsync, createAsyncpublic ServiceCreator(String uniqueName)
uniqueName - The human-readable string that uniquely identifies this
Service.public ServiceCreator setDefaultTtl(Integer defaultTtl)
defaultTtl - Default TTL for a Session, in seconds.public ServiceCreator setCallbackUrl(URI callbackUrl)
callbackUrl - URL Twilio will send callbacks topublic ServiceCreator setCallbackUrl(String callbackUrl)
callbackUrl - URL Twilio will send callbacks topublic ServiceCreator setGeoMatchLevel(Service.GeoMatchLevel geoMatchLevel)
geoMatchLevel - Whether to find proxy numbers in the same areacode.public ServiceCreator setNumberSelectionBehavior(Service.NumberSelectionBehavior numberSelectionBehavior)
numberSelectionBehavior - What behavior to use when choosing a proxy
number.public ServiceCreator setInterceptCallbackUrl(URI interceptCallbackUrl)
interceptCallbackUrl - A URL for Twilio call before each Interaction.public ServiceCreator setInterceptCallbackUrl(String interceptCallbackUrl)
interceptCallbackUrl - A URL for Twilio call before each Interaction.public ServiceCreator setOutOfSessionCallbackUrl(URI outOfSessionCallbackUrl)
outOfSessionCallbackUrl - A URL for Twilio call when a new Interaction
has no Session.public ServiceCreator setOutOfSessionCallbackUrl(String outOfSessionCallbackUrl)
outOfSessionCallbackUrl - A URL for Twilio call when a new Interaction
has no Session.public Service create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.