public class TollFree extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
TollFree.AddressRequirement |
static class |
TollFree.EmergencyAddressStatus |
static class |
TollFree.EmergencyStatus |
static class |
TollFree.VoiceReceiveMode |
Modifier and Type | Method and Description |
---|---|
static TollFreeCreator |
creator(PhoneNumber phoneNumber)
Create a TollFreeCreator to execute create.
|
static TollFreeCreator |
creator(String pathAccountSid,
PhoneNumber phoneNumber)
Create a TollFreeCreator to execute create.
|
boolean |
equals(Object o) |
static TollFree |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a TollFree object using the provided
ObjectMapper.
|
static TollFree |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a TollFree object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
TollFree.AddressRequirement |
getAddressRequirements()
Returns Whether the phone number requires an Address registered with Twilio..
|
String |
getAddressSid()
Returns The SID of the Address resource associated with the phone number.
|
String |
getApiVersion()
Returns The API version used to start a new TwiML session.
|
Boolean |
getBeta()
Returns Whether the phone number is new to the Twilio platform.
|
String |
getBundleSid()
Returns The SID of the Bundle resource associated with number.
|
PhoneNumberCapabilities |
getCapabilities()
Returns Indicate if a phone can receive calls or messages.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getEmergencyAddressSid()
Returns The emergency address configuration to use for emergency calling.
|
TollFree.EmergencyAddressStatus |
getEmergencyAddressStatus()
Returns State of the emergency address configuration for the phone number.
|
TollFree.EmergencyStatus |
getEmergencyStatus()
Returns Displays if emergency calling is enabled for this number..
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getIdentitySid()
Returns The SID of the Identity resource associated with number.
|
String |
getOrigin()
Returns The phone number's origin.
|
PhoneNumber |
getPhoneNumber()
Returns The phone number in E.164 format.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSmsApplicationSid()
Returns The SID of the application that handles SMS messages sent to the
phone number.
|
HttpMethod |
getSmsFallbackMethod()
Returns The HTTP method used with sms_fallback_url.
|
URI |
getSmsFallbackUrl()
Returns The URL that we call when an error occurs while retrieving or
executing the TwiML.
|
HttpMethod |
getSmsMethod()
Returns The HTTP method to use with sms_url.
|
URI |
getSmsUrl()
Returns The URL we call when the phone number receives an incoming SMS
message.
|
String |
getStatus()
Returns The status.
|
URI |
getStatusCallback()
Returns The URL to send status information to your application.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method we use to call status_callback.
|
String |
getTrunkSid()
Returns The SID of the Trunk that handles calls to the phone number.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
String |
getVoiceApplicationSid()
Returns The SID of the application that handles calls to the phone number.
|
Boolean |
getVoiceCallerIdLookup()
Returns Whether to lookup the caller's name.
|
HttpMethod |
getVoiceFallbackMethod()
Returns The HTTP method used with voice_fallback_url.
|
URI |
getVoiceFallbackUrl()
Returns The URL we call when an error occurs in TwiML.
|
HttpMethod |
getVoiceMethod()
Returns The HTTP method used with the voice_url.
|
TollFree.VoiceReceiveMode |
getVoiceReceiveMode()
Returns The voice_receive_mode.
|
URI |
getVoiceUrl()
Returns The URL we call when the phone number receives a call.
|
int |
hashCode() |
static TollFreeReader |
reader()
Create a TollFreeReader to execute read.
|
static TollFreeReader |
reader(String pathAccountSid)
Create a TollFreeReader to execute read.
|
public static TollFreeReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic static TollFreeReader reader()
public static TollFreeCreator creator(String pathAccountSid, PhoneNumber phoneNumber)
pathAccountSid
- The SID of the Account that will create the resourcephoneNumber
- The phone number to purchase in E.164 formatpublic static TollFreeCreator creator(PhoneNumber phoneNumber)
phoneNumber
- The phone number to purchase in E.164 formatpublic static TollFree fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static TollFree fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getAddressSid()
public final TollFree.AddressRequirement getAddressRequirements()
public final String getApiVersion()
public final Boolean getBeta()
public final PhoneNumberCapabilities getCapabilities()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getFriendlyName()
public final String getIdentitySid()
public final PhoneNumber getPhoneNumber()
public final String getOrigin()
public final String getSid()
public final String getSmsApplicationSid()
public final HttpMethod getSmsFallbackMethod()
public final URI getSmsFallbackUrl()
public final HttpMethod getSmsMethod()
public final URI getSmsUrl()
public final URI getStatusCallback()
public final HttpMethod getStatusCallbackMethod()
public final String getTrunkSid()
public final String getUri()
public final TollFree.VoiceReceiveMode getVoiceReceiveMode()
public final String getVoiceApplicationSid()
public final Boolean getVoiceCallerIdLookup()
public final HttpMethod getVoiceFallbackMethod()
public final URI getVoiceFallbackUrl()
public final HttpMethod getVoiceMethod()
public final URI getVoiceUrl()
public final TollFree.EmergencyStatus getEmergencyStatus()
public final String getEmergencyAddressSid()
public final TollFree.EmergencyAddressStatus getEmergencyAddressStatus()
public final String getBundleSid()
public final String getStatus()
Copyright © 2019 Twilio, Inc. All Rights Reserved.