public class Country extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static CountryFetcher |
fetcher(String pathIsoCountry)
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.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static CountryReader |
reader()
Create a CountryReader to execute read.
|
String |
toString() |
public static CountryReader reader()
public static CountryFetcher fetcher(String pathIsoCountry)
pathIsoCountry
- 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 getCountry()
public final String getIsoCountry()
public final List<PhoneNumberPrice> getPhoneNumberPrices()
public final Currency getPriceUnit()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.