public class PhoneNumber extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
PhoneNumber.AddressRequirement |
Modifier and Type | Method and Description |
---|---|
static PhoneNumberCreator |
creator(String pathTrunkSid,
String phoneNumberSid)
Create a PhoneNumberCreator to execute create.
|
static PhoneNumberDeleter |
deleter(String pathTrunkSid,
String pathSid)
Create a PhoneNumberDeleter to execute delete.
|
boolean |
equals(Object o) |
static PhoneNumberFetcher |
fetcher(String pathTrunkSid,
String pathSid)
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.
|
String |
getAccountSid()
Returns The The account_sid.
|
PhoneNumber.AddressRequirement |
getAddressRequirements()
Returns The The address_requirements.
|
String |
getApiVersion()
Returns The The api_version.
|
Boolean |
getBeta()
Returns The The beta.
|
Map<String,String> |
getCapabilities()
Returns The The capabilities.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
PhoneNumber |
getPhoneNumber()
Returns The The phone_number.
|
String |
getSid()
Returns The The sid.
|
String |
getSmsApplicationSid()
Returns The The sms_application_sid.
|
HttpMethod |
getSmsFallbackMethod()
Returns The The sms_fallback_method.
|
URI |
getSmsFallbackUrl()
Returns The The sms_fallback_url.
|
HttpMethod |
getSmsMethod()
Returns The The sms_method.
|
URI |
getSmsUrl()
Returns The The sms_url.
|
URI |
getStatusCallback()
Returns The The status_callback.
|
HttpMethod |
getStatusCallbackMethod()
Returns The The status_callback_method.
|
String |
getTrunkSid()
Returns The The trunk_sid.
|
URI |
getUrl()
Returns The The url.
|
String |
getVoiceApplicationSid()
Returns The The voice_application_sid.
|
Boolean |
getVoiceCallerIdLookup()
Returns The The voice_caller_id_lookup.
|
HttpMethod |
getVoiceFallbackMethod()
Returns The The voice_fallback_method.
|
URI |
getVoiceFallbackUrl()
Returns The The voice_fallback_url.
|
HttpMethod |
getVoiceMethod()
Returns The The voice_method.
|
URI |
getVoiceUrl()
Returns The The voice_url.
|
int |
hashCode() |
static PhoneNumberReader |
reader(String pathTrunkSid)
Create a PhoneNumberReader to execute read.
|
String |
toString() |
public static PhoneNumberFetcher fetcher(String pathTrunkSid, String pathSid)
pathTrunkSid
- The trunk_sidpathSid
- The sidpublic static PhoneNumberDeleter deleter(String pathTrunkSid, String pathSid)
pathTrunkSid
- The trunk_sidpathSid
- The sidpublic static PhoneNumberCreator creator(String pathTrunkSid, String phoneNumberSid)
pathTrunkSid
- The trunk_sidphoneNumberSid
- The phone_number_sidpublic static PhoneNumberReader reader(String pathTrunkSid)
pathTrunkSid
- The trunk_sidpublic 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 String getAccountSid()
public final PhoneNumber.AddressRequirement getAddressRequirements()
public final String getApiVersion()
public final Boolean getBeta()
public final Map<String,String> getCapabilities()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final PhoneNumber getPhoneNumber()
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 URI getUrl()
public final String getVoiceApplicationSid()
public final Boolean getVoiceCallerIdLookup()
public final HttpMethod getVoiceFallbackMethod()
public final URI getVoiceFallbackUrl()
public final HttpMethod getVoiceMethod()
public final URI getVoiceUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.