Package com.twilio.rest.pricing.v2
Class Country
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.pricing.v2.Country
-
- All Implemented Interfaces:
Serializable
public class Country 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 CountryFetcher
fetcher(String pathIsoCountry)
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()
String
getIsoCountry()
List<InboundCallPrice>
getOriginatingCallPrices()
Currency
getPriceUnit()
List<OutboundPrefixPriceWithOrigin>
getTerminatingPrefixPrices()
URI
getUrl()
int
hashCode()
static CountryReader
reader()
-
-
-
Method Detail
-
fetcher
public static CountryFetcher fetcher(String pathIsoCountry)
-
reader
public static CountryReader reader()
-
fromJson
public static Country fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Country object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Country object represented by the provided JSON
-
fromJson
public static Country fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Country object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Country object represented by the provided JSON
-
getCountry
public final String getCountry()
-
getIsoCountry
public final String getIsoCountry()
-
getTerminatingPrefixPrices
public final List<OutboundPrefixPriceWithOrigin> getTerminatingPrefixPrices()
-
getOriginatingCallPrices
public final List<InboundCallPrice> getOriginatingCallPrices()
-
getPriceUnit
public final Currency getPriceUnit()
-
getUrl
public final URI getUrl()
-
-