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.
|
List<InboundCallPrice> |
getInboundCallPrices()
Returns The The inbound_call_prices.
|
String |
getIsoCountry()
Returns The The iso_country.
|
List<OutboundPrefixPrice> |
getOutboundPrefixPrices()
Returns The The outbound_prefix_prices.
|
Currency |
getPriceUnit()
Returns The The price_unit.
|
String |
getSid()
Returns The The iso_country.
|
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<OutboundPrefixPrice> getOutboundPrefixPrices()
public final List<InboundCallPrice> getInboundCallPrices()
public final Currency getPriceUnit()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.