Class AvailablePhoneNumberCountry
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.AvailablePhoneNumberCountry
-
- All Implemented Interfaces:
Serializable
public class AvailablePhoneNumberCountry extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 The Whether all phone numbers available in the country are new to the Twilio platform..String
getCountry()
Returns The The name of the country.String
getCountryCode()
Returns The The ISO-3166-1 country code of the country..Map<String,String>
getSubresourceUris()
Returns The A list of related resources identified by their relative URIs.URI
getUri()
Returns The 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.String
toString()
-
-
-
Method Detail
-
reader
public static AvailablePhoneNumberCountryReader reader(String pathAccountSid)
Create a AvailablePhoneNumberCountryReader to execute read.- Parameters:
pathAccountSid
- The SID of the Account requesting the available phone number Country resources- Returns:
- AvailablePhoneNumberCountryReader capable of executing the read
-
reader
public static AvailablePhoneNumberCountryReader reader()
Create a AvailablePhoneNumberCountryReader to execute read.- Returns:
- AvailablePhoneNumberCountryReader capable of executing the read
-
fetcher
public static AvailablePhoneNumberCountryFetcher fetcher(String pathAccountSid, String pathCountryCode)
Create a AvailablePhoneNumberCountryFetcher to execute fetch.- Parameters:
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 about- Returns:
- AvailablePhoneNumberCountryFetcher capable of executing the fetch
-
fetcher
public static AvailablePhoneNumberCountryFetcher fetcher(String pathCountryCode)
Create a AvailablePhoneNumberCountryFetcher to execute fetch.- Parameters:
pathCountryCode
- The ISO country code of the country to fetch available phone number information about- Returns:
- AvailablePhoneNumberCountryFetcher capable of executing the fetch
-
fromJson
public static AvailablePhoneNumberCountry fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a AvailablePhoneNumberCountry object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- AvailablePhoneNumberCountry object represented by the provided JSON
-
fromJson
public static AvailablePhoneNumberCountry fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a AvailablePhoneNumberCountry object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- AvailablePhoneNumberCountry object represented by the provided JSON
-
getCountryCode
public final String getCountryCode()
Returns The The ISO-3166-1 country code of the country..- Returns:
- The ISO-3166-1 country code of the country.
-
getCountry
public final String getCountry()
Returns The The name of the country.- Returns:
- The name of the country
-
getUri
public final URI getUri()
Returns The The URI of the Country resource, relative to `https://api.twilio.com`.- Returns:
- The URI of the Country resource, relative to `https://api.twilio.com`
-
getBeta
public final Boolean getBeta()
Returns The Whether all phone numbers available in the country are new to the Twilio platform..- Returns:
- Whether all phone numbers available in the country are new to the Twilio platform.
-
getSubresourceUris
public final Map<String,String> getSubresourceUris()
Returns The A list of related resources identified by their relative URIs.- Returns:
- A list of related resources identified by their relative URIs
-
-