public class Country extends SidResource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static CountryFetcher |
fetch(String isoCountry)
Create a CountryFetcher to execute fetch.
|
static Country |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Country object using the provided
ObjectMapper.
|
static Country |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Country object using the provided ObjectMapper.
|
String |
getCountry()
Returns The The country.
|
String |
getIsoCountry()
Returns The The iso_country.
|
List<PhoneNumberPrice> |
getPhoneNumberPrices()
Returns The The phone_number_prices.
|
Currency |
getPriceUnit()
Returns The The price_unit.
|
String |
getSid()
Returns The The iso_country.
|
URI |
getUri()
Returns The The uri.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static CountryReader |
read()
Create a CountryReader to execute read.
|
String |
toString() |
public static CountryReader read()
public static CountryFetcher fetch(String isoCountry)
isoCountry
- The iso_countrypublic static Country fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Country fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getCountry()
public final String getIsoCountry()
public final List<PhoneNumberPrice> getPhoneNumberPrices()
public final Currency getPriceUnit()
public final URI getUri()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.