Constructor and Description |
---|
TaskReader(String pathWorkspaceSid)
Construct a new TaskReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Task> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Task> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Task> |
nextPage(Page<Task> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Task> |
previousPage(Page<Task> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Task> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
TaskReader |
setAssignmentStatus(List<String> assignmentStatus)
The `assignment_status` of the Tasks you want to read.
|
TaskReader |
setAssignmentStatus(String assignmentStatus)
The `assignment_status` of the Tasks you want to read.
|
TaskReader |
setEvaluateTaskAttributes(String evaluateTaskAttributes)
The attributes of the Tasks to read.
|
TaskReader |
setHasAddons(Boolean hasAddons)
Whether to read Tasks with addons.
|
TaskReader |
setOrdering(String ordering)
How to order the returned Task resources.
|
TaskReader |
setPriority(Integer priority)
The priority value of the Tasks to read.
|
TaskReader |
setTaskQueueName(String taskQueueName)
The `friendly_name` of the TaskQueue with the Tasks to read.
|
TaskReader |
setTaskQueueSid(String taskQueueSid)
The SID of the TaskQueue with the Tasks to read.
|
TaskReader |
setWorkflowName(String workflowName)
The friendly name of the Workflow with the Tasks to read.
|
TaskReader |
setWorkflowSid(String workflowSid)
The SID of the Workflow with the Tasks to read.
|
public TaskReader(String pathWorkspaceSid)
pathWorkspaceSid
- The SID of the Workspace with the Tasks to readpublic TaskReader setPriority(Integer priority)
priority
- The priority value of the Tasks to readpublic TaskReader setAssignmentStatus(List<String> assignmentStatus)
assignmentStatus
- Returns the list of all Tasks in the Workspace with
the specified assignment_statuspublic TaskReader setAssignmentStatus(String assignmentStatus)
assignmentStatus
- Returns the list of all Tasks in the Workspace with
the specified assignment_statuspublic TaskReader setWorkflowSid(String workflowSid)
workflowSid
- The SID of the Workflow with the Tasks to readpublic TaskReader setWorkflowName(String workflowName)
workflowName
- The friendly name of the Workflow with the Tasks to readpublic TaskReader setTaskQueueSid(String taskQueueSid)
taskQueueSid
- The SID of the TaskQueue with the Tasks to readpublic TaskReader setTaskQueueName(String taskQueueName)
taskQueueName
- The friendly_name of the TaskQueue with the Tasks to
readpublic TaskReader setEvaluateTaskAttributes(String evaluateTaskAttributes)
evaluateTaskAttributes
- The task attributes of the Tasks to readpublic TaskReader setOrdering(String ordering)
ordering
- Controls the order of the Tasks returnedpublic TaskReader setHasAddons(Boolean hasAddons)
hasAddons
- Whether to read Tasks with addonspublic ResourceSet<Task> read(TwilioRestClient client)
public Page<Task> firstPage(TwilioRestClient client)
public Page<Task> getPage(String targetUrl, TwilioRestClient client)
public Page<Task> nextPage(Page<Task> page, TwilioRestClient client)
public Page<Task> previousPage(Page<Task> page, TwilioRestClient client)
previousPage
in class Reader<Task>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.