Class Country
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.pricing.v1.messaging.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)
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 name of the country.List<InboundSmsPrice>
getInboundSmsPrices()
Returns The The list of InboundPrice records.String
getIsoCountry()
Returns The The ISO country code.List<OutboundSmsPrice>
getOutboundSmsPrices()
Returns The The list of OutboundSMSPrice records.Currency
getPriceUnit()
Returns The The currency in which prices are measured, in ISO 4127 format (e.g.URI
getUrl()
Returns The The absolute URL of the resource.int
hashCode()
static CountryReader
reader()
Create a CountryReader to execute read.String
toString()
-
-
-
Method Detail
-
reader
public static CountryReader reader()
Create a CountryReader to execute read.- Returns:
- CountryReader capable of executing the read
-
fetcher
public static CountryFetcher fetcher(String pathIsoCountry)
Create a CountryFetcher to execute fetch.- Parameters:
pathIsoCountry
- The ISO country code- Returns:
- CountryFetcher capable of executing the fetch
-
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()
Returns The The name of the country.- Returns:
- The name of the country
-
getIsoCountry
public final String getIsoCountry()
Returns The The ISO country code.- Returns:
- The ISO country code
-
getOutboundSmsPrices
public final List<OutboundSmsPrice> getOutboundSmsPrices()
Returns The The list of OutboundSMSPrice records.- Returns:
- The list of OutboundSMSPrice records
-
getInboundSmsPrices
public final List<InboundSmsPrice> getInboundSmsPrices()
Returns The The list of InboundPrice records.- Returns:
- The list of InboundPrice records
-
getPriceUnit
public final Currency getPriceUnit()
Returns The The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy).- Returns:
- The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the resource.- Returns:
- The absolute URL of the resource
-
-