public class IncomingPhoneNumberReader extends Reader<IncomingPhoneNumber>
Constructor and Description |
---|
IncomingPhoneNumberReader(String ownerAccountSid)
Construct a new IncomingPhoneNumberReader.
|
Modifier and Type | Method and Description |
---|---|
IncomingPhoneNumberReader |
byBeta(Boolean beta)
Include phone numbers new to the Twilio platform.
|
IncomingPhoneNumberReader |
byFriendlyName(String friendlyName)
Only show the incoming phone number resources with friendly names that
exactly match this name.
|
IncomingPhoneNumberReader |
byPhoneNumber(PhoneNumber phoneNumber)
Only show the incoming phone number resources that match this pattern.
|
ResourceSet<IncomingPhoneNumber> |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<IncomingPhoneNumber> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<IncomingPhoneNumber> |
nextPage(Page<IncomingPhoneNumber> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
public IncomingPhoneNumberReader(String ownerAccountSid)
ownerAccountSid
- The owner_account_sidpublic IncomingPhoneNumberReader byBeta(Boolean beta)
beta
- Include new phone numberspublic IncomingPhoneNumberReader byFriendlyName(String friendlyName)
friendlyName
- Filter by friendly namepublic IncomingPhoneNumberReader byPhoneNumber(PhoneNumber phoneNumber)
phoneNumber
- Filter by incoming phone numberpublic ResourceSet<IncomingPhoneNumber> execute(TwilioRestClient client)
execute
in class Reader<IncomingPhoneNumber>
client
- TwilioRestClient with which to make the requestpublic Page<IncomingPhoneNumber> firstPage(TwilioRestClient client)
firstPage
in class Reader<IncomingPhoneNumber>
client
- TwilioRestClient with which to make the requestpublic Page<IncomingPhoneNumber> nextPage(Page<IncomingPhoneNumber> page, TwilioRestClient client)
nextPage
in class Reader<IncomingPhoneNumber>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.