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