Package com.twilio.rest.taskrouter.v1
Class WorkspaceReader
- java.lang.Object
-
- com.twilio.base.Reader<Workspace>
-
- com.twilio.rest.taskrouter.v1.WorkspaceReader
-
-
Constructor Summary
Constructors Constructor Description WorkspaceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Workspace>firstPage(TwilioRestClient client)Fetch the first page of resources using specified client.Page<Workspace>getPage(String targetUrl, TwilioRestClient client)Retrieve the target page of resources.Page<Workspace>nextPage(Page<Workspace> page, TwilioRestClient client)Fetch the following page of resources using specified client.Page<Workspace>previousPage(Page<Workspace> page, TwilioRestClient client)Fetch the prior page of resources using specified client.ResourceSet<Workspace>read(TwilioRestClient client)Execute a request using specified client.WorkspaceReadersetFriendlyName(String friendlyName)WorkspaceReadersetPageSize(Integer pageSize)
-
-
-
Method Detail
-
setFriendlyName
public WorkspaceReader setFriendlyName(String friendlyName)
-
setPageSize
public WorkspaceReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Workspace> read(TwilioRestClient client)
Description copied from class:ReaderExecute a request using specified client.
-
firstPage
public Page<Workspace> firstPage(TwilioRestClient client)
Description copied from class:ReaderFetch the first page of resources using specified client.
-
previousPage
public Page<Workspace> previousPage(Page<Workspace> page, TwilioRestClient client)
Description copied from class:ReaderFetch the prior page of resources using specified client.- Specified by:
previousPagein classReader<Workspace>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Workspace> nextPage(Page<Workspace> page, TwilioRestClient client)
Description copied from class:ReaderFetch the following page of resources using specified client.
-
getPage
public Page<Workspace> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:ReaderRetrieve the target page of resources.
-
-