public class VoiceNumber extends NextGenInstanceResource<TwilioPricingClient>
| Modifier and Type | Class and Description |
|---|---|
class |
VoiceNumber.InboundCallPrice
Represents pricing information for inbound calls to a specific Twilio-hosted phone number.
|
class |
VoiceNumber.OutboundCallPrice
Represents pricing information for outbound calls to a specific phone number.
|
| Constructor and Description |
|---|
VoiceNumber(TwilioPricingClient client) |
VoiceNumber(TwilioPricingClient client,
Map<String,Object> properties) |
VoiceNumber(TwilioPricingClient client,
String number) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCountry()
The name of the country this number is located in.
|
VoiceNumber.InboundCallPrice |
getInboundCallPrice()
Pricing information for inbound Twilio Voice calls to this phone number, if it is a Twilio-hosted number.
|
String |
getIsoCountry()
An abbreviated identifier for the country this number is located in.
|
String |
getNumber()
The phone number this pricing information applies to, in E.164 format.
|
VoiceNumber.OutboundCallPrice |
getOutboundCallPrice()
Pricing information for outbound Twilio Voice calls to this phone number.
|
String |
getPriceUnit() |
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic VoiceNumber(TwilioPricingClient client)
public VoiceNumber(TwilioPricingClient client, Map<String,Object> properties)
public VoiceNumber(TwilioPricingClient client, String number)
public String getNumber()
public String getCountry()
public String getIsoCountry()
public String getPriceUnit()
public VoiceNumber.OutboundCallPrice getOutboundCallPrice()
public VoiceNumber.InboundCallPrice getInboundCallPrice()
Copyright © 2011 Twilio, Inc. All Rights Reserved.