Class National
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.availablephonenumbercountry.National
-
- All Implemented Interfaces:
Serializable
public class National 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 National
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a National object using the provided ObjectMapper.static National
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a National object using the provided ObjectMapper.String
getAddressRequirements()
Boolean
getBeta()
PhoneNumberCapabilities
getCapabilities()
PhoneNumber
getFriendlyName()
String
getIsoCountry()
String
getLata()
BigDecimal
getLatitude()
String
getLocality()
BigDecimal
getLongitude()
PhoneNumber
getPhoneNumber()
String
getPostalCode()
String
getRateCenter()
String
getRegion()
int
hashCode()
static NationalReader
reader(String pathCountryCode)
static NationalReader
reader(String pathAccountSid, String pathCountryCode)
-
-
-
Method Detail
-
reader
public static NationalReader reader(String pathCountryCode)
-
reader
public static NationalReader reader(String pathAccountSid, String pathCountryCode)
-
fromJson
public static National fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a National object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- National object represented by the provided JSON
-
fromJson
public static National fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a National object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- National object represented by the provided JSON
-
getFriendlyName
public final PhoneNumber getFriendlyName()
-
getPhoneNumber
public final PhoneNumber getPhoneNumber()
-
getLata
public final String getLata()
-
getLocality
public final String getLocality()
-
getRateCenter
public final String getRateCenter()
-
getLatitude
public final BigDecimal getLatitude()
-
getLongitude
public final BigDecimal getLongitude()
-
getRegion
public final String getRegion()
-
getPostalCode
public final String getPostalCode()
-
getIsoCountry
public final String getIsoCountry()
-
getAddressRequirements
public final String getAddressRequirements()
-
getBeta
public final Boolean getBeta()
-
getCapabilities
public final PhoneNumberCapabilities getCapabilities()
-
-