Class RecordReader
- java.lang.Object
-
- com.twilio.base.Reader<Record>
-
- com.twilio.rest.api.v2010.account.usage.RecordReader
-
-
Constructor Summary
Constructors Constructor Description RecordReader()RecordReader(String pathAccountSid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Record>firstPage(TwilioRestClient client)Fetch the first page of resources using specified client.Page<Record>getPage(String targetUrl, TwilioRestClient client)Retrieve the target page of resources.Page<Record>nextPage(Page<Record> page, TwilioRestClient client)Fetch the following page of resources using specified client.Page<Record>previousPage(Page<Record> page, TwilioRestClient client)Fetch the prior page of resources using specified client.ResourceSet<Record>read(TwilioRestClient client)Execute a request using specified client.RecordReadersetCategory(Record.Category category)RecordReadersetEndDate(LocalDate endDate)RecordReadersetIncludeSubaccounts(Boolean includeSubaccounts)RecordReadersetPageSize(Integer pageSize)RecordReadersetStartDate(LocalDate startDate)
-
-
-
Constructor Detail
-
RecordReader
public RecordReader()
-
RecordReader
public RecordReader(String pathAccountSid)
-
-
Method Detail
-
setCategory
public RecordReader setCategory(Record.Category category)
-
setStartDate
public RecordReader setStartDate(LocalDate startDate)
-
setEndDate
public RecordReader setEndDate(LocalDate endDate)
-
setIncludeSubaccounts
public RecordReader setIncludeSubaccounts(Boolean includeSubaccounts)
-
setPageSize
public RecordReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Record> read(TwilioRestClient client)
Description copied from class:ReaderExecute a request using specified client.
-
firstPage
public Page<Record> firstPage(TwilioRestClient client)
Description copied from class:ReaderFetch the first page of resources using specified client.
-
previousPage
public Page<Record> previousPage(Page<Record> page, TwilioRestClient client)
Description copied from class:ReaderFetch the prior page of resources using specified client.- Specified by:
previousPagein classReader<Record>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Record> nextPage(Page<Record> page, TwilioRestClient client)
Description copied from class:ReaderFetch the following page of resources using specified client.
-
getPage
public Page<Record> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:ReaderRetrieve the target page of resources.
-
-