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