public class IncomingPhoneNumber extends SidResource
Modifier and Type | Class and Description |
---|---|
static class |
IncomingPhoneNumber.AddressRequirement |
Modifier and Type | Method and Description |
---|---|
static IncomingPhoneNumberCreator |
create(PhoneNumber phoneNumber)
Create a IncomingPhoneNumberCreator to execute create.
|
static IncomingPhoneNumberCreator |
create(String areaCode)
Create a IncomingPhoneNumberCreator to execute create.
|
static IncomingPhoneNumberCreator |
create(String ownerAccountSid,
PhoneNumber phoneNumber)
Create a IncomingPhoneNumberCreator to execute create.
|
static IncomingPhoneNumberCreator |
create(String ownerAccountSid,
String areaCode)
Create a IncomingPhoneNumberCreator to execute create.
|
static IncomingPhoneNumberDeleter |
delete(String sid)
Create a IncomingPhoneNumberDeleter to execute delete.
|
static IncomingPhoneNumberDeleter |
delete(String ownerAccountSid,
String sid)
Create a IncomingPhoneNumberDeleter to execute delete.
|
boolean |
equals(Object o) |
static IncomingPhoneNumberFetcher |
fetch(String sid)
Create a IncomingPhoneNumberFetcher to execute fetch.
|
static IncomingPhoneNumberFetcher |
fetch(String ownerAccountSid,
String sid)
Create a IncomingPhoneNumberFetcher to execute fetch.
|
static IncomingPhoneNumber |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a IncomingPhoneNumber object using the
provided ObjectMapper.
|
static IncomingPhoneNumber |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a IncomingPhoneNumber object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The unique sid that identifies this account.
|
IncomingPhoneNumber.AddressRequirement |
getAddressRequirements()
Returns The Indicates if the customer requires an address.
|
String |
getApiVersion()
Returns The The Twilio REST API version to use.
|
Boolean |
getBeta()
Returns The Indicates if the phone number is a beta number.
|
PhoneNumberCapabilities |
getCapabilities()
Returns The Indicate if a phone can receive calls or messages.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this resource was last updated.
|
String |
getFriendlyName()
Returns The A human readable description of this resouce.
|
PhoneNumber |
getPhoneNumber()
Returns The The incoming phone number.
|
String |
getSid()
Returns The A string that uniquely identifies this resource.
|
String |
getSmsApplicationSid()
Returns The Unique string that identifies the application.
|
HttpMethod |
getSmsFallbackMethod()
Returns The HTTP method used with sms fallback url.
|
URI |
getSmsFallbackUrl()
Returns The URL Twilio will request if an error occurs in executing TwiML.
|
HttpMethod |
getSmsMethod()
Returns The HTTP method to use with sms url.
|
URI |
getSmsUrl()
Returns The URL Twilio will request when receiving an SMS.
|
URI |
getStatusCallback()
Returns The URL Twilio will use to pass status parameters.
|
HttpMethod |
getStatusCallbackMethod()
Returns The HTTP method twilio will use with status callback.
|
String |
getUri()
Returns The The URI for this resource.
|
String |
getVoiceApplicationSid()
Returns The The unique sid of the application to handle this number.
|
Boolean |
getVoiceCallerIdLookup()
Returns The Look up the caller's caller-ID.
|
HttpMethod |
getVoiceFallbackMethod()
Returns The HTTP method used with fallback_url.
|
URI |
getVoiceFallbackUrl()
Returns The URL Twilio will request when an error occurs in TwiML.
|
HttpMethod |
getVoiceMethod()
Returns The HTTP method used with the voice url.
|
URI |
getVoiceUrl()
Returns The URL Twilio will request when receiving a call.
|
int |
hashCode() |
static IncomingPhoneNumberReader |
read()
Create a IncomingPhoneNumberReader to execute read.
|
static IncomingPhoneNumberReader |
read(String ownerAccountSid)
Create a IncomingPhoneNumberReader to execute read.
|
String |
toString() |
static IncomingPhoneNumberUpdater |
update(String sid)
Create a IncomingPhoneNumberUpdater to execute update.
|
static IncomingPhoneNumberUpdater |
update(String ownerAccountSid,
String sid)
Create a IncomingPhoneNumberUpdater to execute update.
|
public static IncomingPhoneNumberUpdater update(String ownerAccountSid, String sid)
ownerAccountSid
- The owner_account_sidsid
- The sidpublic static IncomingPhoneNumberUpdater update(String sid)
sid
- The sidpublic static IncomingPhoneNumberFetcher fetch(String ownerAccountSid, String sid)
ownerAccountSid
- The owner_account_sidsid
- Fetch by unique incoming-phone-number Sidpublic static IncomingPhoneNumberFetcher fetch(String sid)
sid
- Fetch by unique incoming-phone-number Sidpublic static IncomingPhoneNumberDeleter delete(String ownerAccountSid, String sid)
ownerAccountSid
- The owner_account_sidsid
- Delete by unique phone-number Sidpublic static IncomingPhoneNumberDeleter delete(String sid)
sid
- Delete by unique phone-number Sidpublic static IncomingPhoneNumberReader read(String ownerAccountSid)
ownerAccountSid
- The owner_account_sidpublic static IncomingPhoneNumberReader read()
public static IncomingPhoneNumberCreator create(String ownerAccountSid, PhoneNumber phoneNumber)
ownerAccountSid
- The owner_account_sidphoneNumber
- The phone numberpublic static IncomingPhoneNumberCreator create(PhoneNumber phoneNumber)
phoneNumber
- The phone numberpublic static IncomingPhoneNumberCreator create(String ownerAccountSid, String areaCode)
ownerAccountSid
- The owner_account_sidareaCode
- The desired area code for the new numberpublic static IncomingPhoneNumberCreator create(String areaCode)
areaCode
- The desired area code for the new numberpublic static IncomingPhoneNumber fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static IncomingPhoneNumber fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final IncomingPhoneNumber.AddressRequirement getAddressRequirements()
public final String getApiVersion()
public final Boolean getBeta()
public final PhoneNumberCapabilities 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()
getSid
in class SidResource
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 getUri()
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 © 2011 Twilio, Inc. All Rights Reserved.