public class TaskUpdater extends Updater<Task>
Constructor and Description |
---|
TaskUpdater(String pathAssistantSid,
String pathSid)
Construct a new TaskUpdater.
|
Modifier and Type | Method and Description |
---|---|
TaskUpdater |
setActions(Map<String,Object> actions)
The JSON string that specifies the actions that
instruct the Assistant on how to perform the task..
|
TaskUpdater |
setActionsUrl(String actionsUrl)
The URL from which the Assistant can fetch actions..
|
TaskUpdater |
setActionsUrl(URI actionsUrl)
The URL from which the Assistant can fetch actions..
|
TaskUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
TaskUpdater |
setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource.
|
Task |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public TaskUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic TaskUpdater setUniqueName(String uniqueName)
uniqueName
- An application-defined string that uniquely identifies the
resourcepublic TaskUpdater setActions(Map<String,Object> actions)
actions
- The JSON string that specifies the actions that instruct the
Assistant on how to perform the taskpublic TaskUpdater setActionsUrl(URI actionsUrl)
actionsUrl
- The URL from which the Assistant can fetch actionspublic TaskUpdater setActionsUrl(String actionsUrl)
actionsUrl
- The URL from which the Assistant can fetch actionspublic Task update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.