Class FunctionVersionReader
- java.lang.Object
-
- com.twilio.base.Reader<FunctionVersion>
-
- com.twilio.rest.serverless.v1.service.function.FunctionVersionReader
-
public class FunctionVersionReader extends Reader<FunctionVersion>
-
-
Constructor Summary
Constructors Constructor Description FunctionVersionReader(String pathServiceSid, String pathFunctionSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<FunctionVersion>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<FunctionVersion>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<FunctionVersion>
nextPage(Page<FunctionVersion> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<FunctionVersion>
previousPage(Page<FunctionVersion> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<FunctionVersion>
read(TwilioRestClient client)
Execute a request using specified client.FunctionVersionReader
setPageSize(Integer pageSize)
-
-
-
Method Detail
-
setPageSize
public FunctionVersionReader setPageSize(Integer pageSize)
-
read
public ResourceSet<FunctionVersion> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.- Specified by:
read
in classReader<FunctionVersion>
- Parameters:
client
- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<FunctionVersion> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.- Specified by:
firstPage
in classReader<FunctionVersion>
- Parameters:
client
- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<FunctionVersion> previousPage(Page<FunctionVersion> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<FunctionVersion>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<FunctionVersion> nextPage(Page<FunctionVersion> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.- Specified by:
nextPage
in classReader<FunctionVersion>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<FunctionVersion> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.- Specified by:
getPage
in classReader<FunctionVersion>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-