public class PhoneNumberFetcher extends Fetcher<PhoneNumber>
Constructor and Description |
---|
PhoneNumberFetcher(PhoneNumber phoneNumber)
Construct a new PhoneNumberFetcher.
|
Modifier and Type | Method and Description |
---|---|
PhoneNumber |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.
|
PhoneNumberFetcher |
setAddOns(List<String> addOns)
The add_ons.
|
PhoneNumberFetcher |
setAddOns(String addOns)
The add_ons.
|
PhoneNumberFetcher |
setAddOnsData(Map<String,Object> addOnsData)
The add_ons_data.
|
PhoneNumberFetcher |
setCountryCode(String countryCode)
The country_code.
|
PhoneNumberFetcher |
setType(String type)
The type.
|
public PhoneNumberFetcher(PhoneNumber phoneNumber)
phoneNumber
- The phone_numberpublic PhoneNumberFetcher setCountryCode(String countryCode)
countryCode
- The country_codepublic PhoneNumberFetcher setType(String type)
type
- The typepublic PhoneNumberFetcher setAddOns(List<String> addOns)
addOns
- The add_onspublic PhoneNumberFetcher setAddOns(String addOns)
addOns
- The add_onspublic PhoneNumberFetcher setAddOnsData(Map<String,Object> addOnsData)
addOnsData
- The add_ons_datapublic PhoneNumber execute(TwilioRestClient client)
execute
in class Fetcher<PhoneNumber>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.