public class AssistantUpdater extends Updater<Assistant>
Constructor and Description |
---|
AssistantUpdater(String pathSid)
Construct a new AssistantUpdater.
|
Modifier and Type | Method and Description |
---|---|
AssistantUpdater |
setCallbackEvents(String callbackEvents)
Reserved..
|
AssistantUpdater |
setCallbackUrl(String callbackUrl)
Reserved..
|
AssistantUpdater |
setCallbackUrl(URI callbackUrl)
Reserved..
|
AssistantUpdater |
setDefaults(Map<String,Object> defaults)
A JSON object that defines the Assistant's default
tasks for various scenarios, including initiation actions and fallback
tasks..
|
AssistantUpdater |
setDevelopmentStage(String developmentStage)
A string describing the state of the assistant..
|
AssistantUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
AssistantUpdater |
setLogQueries(Boolean logQueries)
Whether queries should be logged and kept after training.
|
AssistantUpdater |
setStyleSheet(Map<String,Object> styleSheet)
The JSON string that defines the Assistant's style
sheet.
|
AssistantUpdater |
setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource.
|
Assistant |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public AssistantUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic AssistantUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic AssistantUpdater setLogQueries(Boolean logQueries)
logQueries
- Whether queries should be logged and kept after trainingpublic AssistantUpdater setUniqueName(String uniqueName)
uniqueName
- An application-defined string that uniquely identifies the
resourcepublic AssistantUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- Reservedpublic AssistantUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- Reservedpublic AssistantUpdater setCallbackEvents(String callbackEvents)
callbackEvents
- Reservedpublic AssistantUpdater setStyleSheet(Map<String,Object> styleSheet)
styleSheet
- A JSON string that defines the Assistant's style sheetpublic AssistantUpdater setDefaults(Map<String,Object> defaults)
defaults
- A JSON object that defines the Assistant's [default
tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults)
for various scenariospublic AssistantUpdater setDevelopmentStage(String developmentStage)
developmentStage
- A string describing the state of the assistant.public Assistant update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.