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