Class WorkflowReader
- java.lang.Object
-
- com.twilio.base.Reader<Workflow>
-
- com.twilio.rest.taskrouter.v1.workspace.WorkflowReader
-
-
Constructor Summary
Constructors Constructor Description WorkflowReader(String pathWorkspaceSid)
Construct a new WorkflowReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Workflow>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Workflow>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Workflow>
nextPage(Page<Workflow> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Workflow>
previousPage(Page<Workflow> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Workflow>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.WorkflowReader
setFriendlyName(String friendlyName)
Human readable description of this Workflow (for example "Customer Support" or "2014 Election Campaign").
-
-
-
Constructor Detail
-
WorkflowReader
public WorkflowReader(String pathWorkspaceSid)
Construct a new WorkflowReader.- Parameters:
pathWorkspaceSid
- The workspace_sid
-
-
Method Detail
-
setFriendlyName
public WorkflowReader setFriendlyName(String friendlyName)
Human readable description of this Workflow (for example "Customer Support" or "2014 Election Campaign").- Parameters:
friendlyName
- Human readable description of this Workflow- Returns:
- this
-
read
public ResourceSet<Workflow> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Workflow> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Workflow> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Workflow> nextPage(Page<Workflow> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Workflow> previousPage(Page<Workflow> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Workflow>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-