public class AvailablePhoneNumberCountry extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static AvailablePhoneNumberCountryFetcher |
fetcher(String pathCountryCode)
Create a AvailablePhoneNumberCountryFetcher to execute fetch.
|
static AvailablePhoneNumberCountryFetcher |
fetcher(String pathAccountSid,
String pathCountryCode)
Create a AvailablePhoneNumberCountryFetcher to execute fetch.
|
static AvailablePhoneNumberCountry |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AvailablePhoneNumberCountry object using
the provided ObjectMapper.
|
static AvailablePhoneNumberCountry |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AvailablePhoneNumberCountry object using the
provided ObjectMapper.
|
Boolean |
getBeta()
Returns Whether all phone numbers available in the country are new to the
Twilio platform..
|
String |
getCountry()
Returns The name of the country.
|
String |
getCountryCode()
Returns The ISO-3166-1 country code of the country..
|
Map<String,String> |
getSubresourceUris()
Returns A list of related resources identified by their relative URIs.
|
URI |
getUri()
Returns The URI of the Country resource, relative to
`https://api.twilio.com`.
|
int |
hashCode() |
static AvailablePhoneNumberCountryReader |
reader()
Create a AvailablePhoneNumberCountryReader to execute read.
|
static AvailablePhoneNumberCountryReader |
reader(String pathAccountSid)
Create a AvailablePhoneNumberCountryReader to execute read.
|
public static AvailablePhoneNumberCountryReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account requesting the available phone
number Country resourcespublic static AvailablePhoneNumberCountryReader reader()
public static AvailablePhoneNumberCountryFetcher fetcher(String pathAccountSid, String pathCountryCode)
pathAccountSid
- The SID of the Account requesting the available phone
number Country resourcepathCountryCode
- The ISO country code of the country to fetch
available phone number information aboutpublic static AvailablePhoneNumberCountryFetcher fetcher(String pathCountryCode)
pathCountryCode
- The ISO country code of the country to fetch
available phone number information aboutpublic static AvailablePhoneNumberCountry fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static AvailablePhoneNumberCountry fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getCountryCode()
public final String getCountry()
public final URI getUri()
public final Boolean getBeta()
public final Map<String,String> getSubresourceUris()
Copyright © 2019 Twilio, Inc. All Rights Reserved.