Constructor and Description |
---|
TaskCreator(String pathWorkspaceSid)
Construct a new TaskCreator.
|
Modifier and Type | Method and Description |
---|---|
Task |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
TaskCreator |
setAttributes(String attributes)
Url-encoded JSON string describing the attributes of this task.
|
TaskCreator |
setPriority(Integer priority)
Override priority for the Task.
|
TaskCreator |
setTaskChannel(String taskChannel)
When MultiTasking is enabled specify the type of the task by passing either
TaskChannel Unique Name or Task Channel Sid.
|
TaskCreator |
setTimeout(Integer timeout)
The amount of time in seconds the task is allowed to live up to a maximum of
2 weeks.
|
TaskCreator |
setWorkflowSid(String workflowSid)
The WorkflowSid for the Workflow that you would like to handle routing for
this Task.
|
create, createAsync, createAsync
public TaskCreator(String pathWorkspaceSid)
pathWorkspaceSid
- The workspace_sidpublic TaskCreator setTimeout(Integer timeout)
timeout
- The amount of time in seconds the task is allowed to live up
to a maximum of 2 weeks.public TaskCreator setPriority(Integer priority)
priority
- Override priority for the Task.public TaskCreator setTaskChannel(String taskChannel)
taskChannel
- When MultiTasking is enabled specify the type of the task
by passing either TaskChannel Unique Name or Task Channel
Sid.public TaskCreator setWorkflowSid(String workflowSid)
workflowSid
- The WorkflowSid for the Workflow that you would like to
handle routing for this Task.public TaskCreator setAttributes(String attributes)
attributes
- Url-encoded JSON string describing the attributes of this
task.public Task create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.