Class Country
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.voice.v1.dialingpermissions.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 booleanequals(Object o)static CountryFetcherfetcher(String pathIsoCode)static CountryfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Country object using the provided ObjectMapper.static CountryfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Country object using the provided ObjectMapper.StringgetContinent()List<String>getCountryCodes()BooleangetHighRiskSpecialNumbersEnabled()BooleangetHighRiskTollfraudNumbersEnabled()StringgetIsoCode()Map<String,String>getLinks()BooleangetLowRiskNumbersEnabled()StringgetName()URIgetUrl()inthashCode()static CountryReaderreader()
-
-
-
Method Detail
-
fetcher
public static CountryFetcher fetcher(String pathIsoCode)
-
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
-
getIsoCode
public final String getIsoCode()
-
getName
public final String getName()
-
getContinent
public final String getContinent()
-
getLowRiskNumbersEnabled
public final Boolean getLowRiskNumbersEnabled()
-
getHighRiskSpecialNumbersEnabled
public final Boolean getHighRiskSpecialNumbersEnabled()
-
getHighRiskTollfraudNumbersEnabled
public final Boolean getHighRiskTollfraudNumbersEnabled()
-
getUrl
public final URI getUrl()
-
-