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)
Only return the Account resources with friendly names that exactly match this
name..
|
AccountReader |
setStatus(Account.Status status)
Only return Account resources 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 © 2019 Twilio, Inc. All Rights Reserved.