Constructor and Description |
---|
AccountReader() |
Modifier and Type | Method and Description |
---|---|
Page<Account> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Account> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Account> |
nextPage(Page<Account> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Account> |
previousPage(Page<Account> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Account> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
AccountReader |
setFriendlyName(String friendlyName)
Filter accounts where the friendly name exactly matches the desired
FriendlyName.
|
AccountReader |
setStatus(Account.Status status)
Only show accounts with the given Status.
|
public AccountReader setFriendlyName(String friendlyName)
friendlyName
- FriendlyName to filter onpublic AccountReader setStatus(Account.Status status)
status
- Status to filter onpublic ResourceSet<Account> read(TwilioRestClient client)
public Page<Account> firstPage(TwilioRestClient client)
public Page<Account> getPage(String targetUrl, TwilioRestClient client)
public Page<Account> nextPage(Page<Account> page, TwilioRestClient client)
public Page<Account> previousPage(Page<Account> page, TwilioRestClient client)
previousPage
in class Reader<Account>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.