public class PhoneNumberFetcher extends Fetcher<PhoneNumber>
Constructor and Description |
---|
PhoneNumberFetcher(PhoneNumber pathPhoneNumber)
Construct a new PhoneNumberFetcher.
|
Modifier and Type | Method and Description |
---|---|
PhoneNumber |
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
PhoneNumberFetcher |
setAddOns(List<String> addOns)
The `unique_name` of an Add-on you would like to invoke.
|
PhoneNumberFetcher |
setAddOns(String addOns)
The `unique_name` of an Add-on you would like to invoke.
|
PhoneNumberFetcher |
setAddOnsData(Map<String,Object> addOnsData)
Data specific to the add-on you would like to invoke.
|
PhoneNumberFetcher |
setCountryCode(String countryCode)
The ISO country
code of the phone number to fetch.
|
PhoneNumberFetcher |
setType(List<String> type)
The type of information to return.
|
PhoneNumberFetcher |
setType(String type)
The type of information to return.
|
fetch, fetchAsync, fetchAsync
public PhoneNumberFetcher(PhoneNumber pathPhoneNumber)
pathPhoneNumber
- The phone number to fetch in E.164 formatpublic PhoneNumberFetcher setCountryCode(String countryCode)
countryCode
- The ISO country code of the phone numberpublic PhoneNumberFetcher setType(List<String> type)
type
- The type of information to returnpublic PhoneNumberFetcher setType(String type)
type
- The type of information to returnpublic PhoneNumberFetcher setAddOns(List<String> addOns)
addOns
- The unique_name of an Add-on you would like to invokepublic PhoneNumberFetcher setAddOns(String addOns)
addOns
- The unique_name of an Add-on you would like to invokepublic PhoneNumberFetcher setAddOnsData(Map<String,Object> addOnsData)
addOnsData
- Data specific to the add-on you would like to invokepublic PhoneNumber fetch(TwilioRestClient client)
fetch
in class Fetcher<PhoneNumber>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.