Constructor and Description |
---|
AllTimeReader()
Construct a new AllTimeReader.
|
AllTimeReader(String pathAccountSid)
Construct a new AllTimeReader.
|
Modifier and Type | Method and Description |
---|---|
Page<AllTime> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<AllTime> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<AllTime> |
nextPage(Page<AllTime> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<AllTime> |
previousPage(Page<AllTime> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<AllTime> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
AllTimeReader |
setCategory(AllTime.Category category)
The usage
category of the UsageRecord resources to read.
|
AllTimeReader |
setEndDate(LocalDate endDate)
Only include usage that occurred on or before this date.
|
AllTimeReader |
setIncludeSubaccounts(Boolean includeSubaccounts)
Whether to include usage from the master account and all its subaccounts.
|
AllTimeReader |
setStartDate(LocalDate startDate)
Only include usage that has occurred on or after this date.
|
public AllTimeReader()
public AllTimeReader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic AllTimeReader setCategory(AllTime.Category category)
category
- The usage category of the UsageRecord resources to readpublic AllTimeReader setStartDate(LocalDate startDate)
startDate
- Only include usage that has occurred on or after this datepublic AllTimeReader setEndDate(LocalDate endDate)
endDate
- Only include usage that occurred on or before this datepublic AllTimeReader setIncludeSubaccounts(Boolean includeSubaccounts)
includeSubaccounts
- Whether to include usage from the master account
and all its subaccountspublic ResourceSet<AllTime> read(TwilioRestClient client)
public Page<AllTime> firstPage(TwilioRestClient client)
public Page<AllTime> getPage(String targetUrl, TwilioRestClient client)
public Page<AllTime> nextPage(Page<AllTime> page, TwilioRestClient client)
public Page<AllTime> previousPage(Page<AllTime> page, TwilioRestClient client)
previousPage
in class Reader<AllTime>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.