Class TaskUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Task>
-
- com.twilio.rest.preview.understand.assistant.TaskUpdater
-
public class TaskUpdater extends Updater<Task>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description TaskUpdater(String pathAssistantSid, String pathSid)
Construct a new TaskUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Method Detail
-
setFriendlyName
public TaskUpdater setFriendlyName(String friendlyName)
A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long..- Parameters:
friendlyName
- A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long.- Returns:
- this
-
setUniqueName
public TaskUpdater setUniqueName(String uniqueName)
A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long..- Parameters:
uniqueName
- A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long.- Returns:
- this
-
setActions
public TaskUpdater setActions(Map<String,Object> actions)
A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique..- Parameters:
actions
- A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique.- Returns:
- this
-
setActionsUrl
public TaskUpdater setActionsUrl(URI actionsUrl)
User-provided HTTP endpoint where from the assistant fetches actions.- Parameters:
actionsUrl
- User-provided HTTP endpoint where from the assistant fetches actions- Returns:
- this
-
setActionsUrl
public TaskUpdater setActionsUrl(String actionsUrl)
User-provided HTTP endpoint where from the assistant fetches actions.- Parameters:
actionsUrl
- User-provided HTTP endpoint where from the assistant fetches actions- Returns:
- this
-
update
public Task update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-