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)
A user-provided JSON object encoded as a string to specify the actions for
this task.
|
TaskUpdater |
setActionsUrl(String actionsUrl)
User-provided HTTP endpoint where from the assistant fetches actions.
|
TaskUpdater |
setActionsUrl(URI actionsUrl)
User-provided HTTP endpoint where from the assistant fetches actions.
|
TaskUpdater |
setFriendlyName(String friendlyName)
A user-provided string that identifies this resource.
|
TaskUpdater |
setUniqueName(String uniqueName)
A user-provided string that uniquely identifies this resource as an
alternative to the sid.
|
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 user-provided string that identifies this resource. It
is non-unique and can up to 255 characters long.public TaskUpdater setUniqueName(String uniqueName)
uniqueName
- A user-provided string that uniquely identifies this
resource as an alternative to the sid. Unique up to 64
characters long.public TaskUpdater setActions(Map<String,Object> actions)
actions
- A user-provided JSON object encoded as a string to specify
the actions for this task. It is optional and non-unique.public TaskUpdater setActionsUrl(URI actionsUrl)
actionsUrl
- User-provided HTTP endpoint where from the assistant
fetches actionspublic TaskUpdater setActionsUrl(String actionsUrl)
actionsUrl
- User-provided HTTP endpoint where from the assistant
fetches actionspublic Task update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.