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