Package com.twilio.rest.lookups.v1
Class PhoneNumber
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.lookups.v1.PhoneNumber
-
- All Implemented Interfaces:
Serializable
public class PhoneNumber 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 PhoneNumberFetcher
fetcher(String pathPhoneNumber)
static PhoneNumber
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PhoneNumber object using the provided ObjectMapper.static PhoneNumber
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PhoneNumber object using the provided ObjectMapper.Map<String,Object>
getAddOns()
Map<String,Object>
getCallerName()
Map<String,Object>
getCarrier()
String
getCountryCode()
String
getNationalFormat()
PhoneNumber
getPhoneNumber()
URI
getUrl()
int
hashCode()
-
-
-
Method Detail
-
fetcher
public static PhoneNumberFetcher fetcher(String pathPhoneNumber)
-
fromJson
public static PhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PhoneNumber object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- PhoneNumber object represented by the provided JSON
-
fromJson
public static PhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PhoneNumber object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- PhoneNumber object represented by the provided JSON
-
getCountryCode
public final String getCountryCode()
-
getPhoneNumber
public final PhoneNumber getPhoneNumber()
-
getNationalFormat
public final String getNationalFormat()
-
getUrl
public final URI getUrl()
-
-