public class Voip extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Voip |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Voip object using the provided
ObjectMapper.
|
static Voip |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Voip object using the provided ObjectMapper.
|
String |
getAddressRequirements()
Returns The type of Address resource the phone number requires.
|
Boolean |
getBeta()
Returns Whether the phone number is new to the Twilio platform.
|
PhoneNumberCapabilities |
getCapabilities()
Returns Whether a phone number can receive calls or messages.
|
PhoneNumber |
getFriendlyName()
Returns A formatted version of the phone number.
|
String |
getIsoCountry()
Returns The ISO country code of this phone number.
|
String |
getLata()
Returns The LATA of this phone number.
|
BigDecimal |
getLatitude()
Returns The latitude of this phone number's location.
|
String |
getLocality()
Returns The locality or city of this phone number's location.
|
BigDecimal |
getLongitude()
Returns The longitude of this phone number's location.
|
PhoneNumber |
getPhoneNumber()
Returns The phone number in E.164 format.
|
String |
getPostalCode()
Returns The postal or ZIP code of this phone number's location.
|
String |
getRateCenter()
Returns The rate center of this phone number.
|
String |
getRegion()
Returns The two-letter state or province abbreviation of this phone number's
location.
|
int |
hashCode() |
static VoipReader |
reader(String pathCountryCode)
Create a VoipReader to execute read.
|
static VoipReader |
reader(String pathAccountSid,
String pathCountryCode)
Create a VoipReader to execute read.
|
public static VoipReader reader(String pathAccountSid, String pathCountryCode)
pathAccountSid
- The SID of the Account requesting the
AvailablePhoneNumber resourcespathCountryCode
- The ISO Country code of the country from which to
read phone numberspublic static VoipReader reader(String pathCountryCode)
pathCountryCode
- The ISO Country code of the country from which to
read phone numberspublic static Voip fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Voip fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final PhoneNumber getFriendlyName()
public final PhoneNumber getPhoneNumber()
public final String getLata()
public final String getLocality()
public final String getRateCenter()
public final BigDecimal getLatitude()
public final BigDecimal getLongitude()
public final String getRegion()
public final String getPostalCode()
public final String getIsoCountry()
public final String getAddressRequirements()
public final Boolean getBeta()
public final PhoneNumberCapabilities getCapabilities()
Copyright © 2019 Twilio, Inc. All Rights Reserved.