public class IncomingPhoneNumberReader extends Reader<IncomingPhoneNumber>
Constructor and Description |
---|
IncomingPhoneNumberReader()
Construct a new IncomingPhoneNumberReader.
|
IncomingPhoneNumberReader(String pathAccountSid)
Construct a new IncomingPhoneNumberReader.
|
Modifier and Type | Method and Description |
---|---|
Page<IncomingPhoneNumber> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<IncomingPhoneNumber> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<IncomingPhoneNumber> |
nextPage(Page<IncomingPhoneNumber> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<IncomingPhoneNumber> |
previousPage(Page<IncomingPhoneNumber> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<IncomingPhoneNumber> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
IncomingPhoneNumberReader |
setBeta(Boolean beta)
Whether to include phone numbers new to the Twilio platform.
|
IncomingPhoneNumberReader |
setFriendlyName(String friendlyName)
A string that identifies the IncomingPhoneNumber resources to read..
|
IncomingPhoneNumberReader |
setOrigin(String origin)
Whether to include phone numbers based on their origin.
|
IncomingPhoneNumberReader |
setPhoneNumber(PhoneNumber phoneNumber)
The phone numbers of the IncomingPhoneNumber resources to read.
|
IncomingPhoneNumberReader |
setPhoneNumber(String phoneNumber)
The phone numbers of the IncomingPhoneNumber resources to read.
|
public IncomingPhoneNumberReader()
public IncomingPhoneNumberReader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic IncomingPhoneNumberReader setBeta(Boolean beta)
beta
- Whether to include new phone numberspublic IncomingPhoneNumberReader setFriendlyName(String friendlyName)
friendlyName
- A string that identifies the IncomingPhoneNumber
resources to readpublic IncomingPhoneNumberReader setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber
- The phone numbers of the IncomingPhoneNumber resources to
readpublic IncomingPhoneNumberReader setPhoneNumber(String phoneNumber)
phoneNumber
- The phone numbers of the IncomingPhoneNumber resources to
readpublic IncomingPhoneNumberReader setOrigin(String origin)
origin
- Include phone numbers based on their origin. By default, phone
numbers of all origin are included.public ResourceSet<IncomingPhoneNumber> read(TwilioRestClient client)
read
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> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<IncomingPhoneNumber>
targetUrl
- API-generated URL for the requested results pageclient
- 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 requestpublic Page<IncomingPhoneNumber> previousPage(Page<IncomingPhoneNumber> page, TwilioRestClient client)
previousPage
in class Reader<IncomingPhoneNumber>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.