Class TaskReader
- java.lang.Object
-
- com.twilio.base.Reader<Task>
-
- com.twilio.rest.taskrouter.v1.workspace.TaskReader
-
-
Constructor Summary
Constructors Constructor Description TaskReader(String pathWorkspaceSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Task>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<Task>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<Task>
nextPage(Page<Task> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<Task>
previousPage(Page<Task> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<Task>
read(TwilioRestClient client)
Execute a request using specified client.TaskReader
setAssignmentStatus(String assignmentStatus)
TaskReader
setAssignmentStatus(List<String> assignmentStatus)
TaskReader
setEvaluateTaskAttributes(String evaluateTaskAttributes)
TaskReader
setHasAddons(Boolean hasAddons)
TaskReader
setOrdering(String ordering)
TaskReader
setPageSize(Integer pageSize)
TaskReader
setPriority(Integer priority)
TaskReader
setTaskQueueName(String taskQueueName)
TaskReader
setTaskQueueSid(String taskQueueSid)
TaskReader
setWorkflowName(String workflowName)
TaskReader
setWorkflowSid(String workflowSid)
-
-
-
Constructor Detail
-
TaskReader
public TaskReader(String pathWorkspaceSid)
-
-
Method Detail
-
setPriority
public TaskReader setPriority(Integer priority)
-
setAssignmentStatus
public TaskReader setAssignmentStatus(List<String> assignmentStatus)
-
setAssignmentStatus
public TaskReader setAssignmentStatus(String assignmentStatus)
-
setWorkflowSid
public TaskReader setWorkflowSid(String workflowSid)
-
setWorkflowName
public TaskReader setWorkflowName(String workflowName)
-
setTaskQueueSid
public TaskReader setTaskQueueSid(String taskQueueSid)
-
setTaskQueueName
public TaskReader setTaskQueueName(String taskQueueName)
-
setEvaluateTaskAttributes
public TaskReader setEvaluateTaskAttributes(String evaluateTaskAttributes)
-
setOrdering
public TaskReader setOrdering(String ordering)
-
setHasAddons
public TaskReader setHasAddons(Boolean hasAddons)
-
setPageSize
public TaskReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Task> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Task> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Task> previousPage(Page<Task> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Task>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Task> nextPage(Page<Task> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Task> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-