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 name of the country.
|
String |
getIsoCountry()
Returns The ISO country code.
|
List<InboundCallPrice> |
getOriginatingCallPrices()
Returns The list of OriginatingCallPrice records.
|
Currency |
getPriceUnit()
Returns The currency in which prices are measured, in ISO 4127 format (e.g.
|
List<OutboundPrefixPriceWithOrigin> |
getTerminatingPrefixPrices()
Returns The list of TerminatingPrefixPrice records.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static CountryReader |
reader()
Create a CountryReader to execute read.
|
public static CountryReader reader()
public static CountryFetcher fetcher(String pathIsoCountry)
pathIsoCountry
- The ISO country code of the pricing information to
fetchpublic 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<OutboundPrefixPriceWithOrigin> getTerminatingPrefixPrices()
public final List<InboundCallPrice> getOriginatingCallPrices()
public final Currency getPriceUnit()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.