public class PhoneNumber extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
PhoneNumber.Type |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PhoneNumberFetcher |
fetcher(PhoneNumber pathPhoneNumber)
Create a PhoneNumberFetcher to execute fetch.
|
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()
Returns A JSON string with the results of the Add-ons you specified.
|
Map<String,Object> |
getCallerName()
Returns The name of the phone number's owner.
|
Map<String,Object> |
getCarrier()
Returns The telecom company that provides the phone number.
|
String |
getCountryCode()
Returns The ISO country code for the phone number.
|
String |
getNationalFormat()
Returns The phone number, in national format.
|
PhoneNumber |
getPhoneNumber()
Returns The phone number in E.164 format.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
public static PhoneNumberFetcher fetcher(PhoneNumber pathPhoneNumber)
pathPhoneNumber
- The phone number to fetch in E.164 formatpublic static PhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static PhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final Map<String,Object> getCallerName()
public final String getCountryCode()
public final PhoneNumber getPhoneNumber()
public final String getNationalFormat()
public final Map<String,Object> getCarrier()
public final Map<String,Object> getAddOns()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.