com.twilio.sdk.resource.instance
Class IncomingPhoneNumber

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.IncomingPhoneNumber

public class IncomingPhoneNumber
extends InstanceResource

The Class IncomingPhoneNumber. For more information see https://www.twilio.com/docs/api/rest/incoming-phone-numbers


Constructor Summary
IncomingPhoneNumber(TwilioRestClient client)
          Instantiates a new incoming phone number.
IncomingPhoneNumber(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new incoming phone number.
IncomingPhoneNumber(TwilioRestClient client, String sid)
          Instantiates a new incoming phone number.
 
Method Summary
 boolean delete()
          Deprovision this IncomingPhoneNumber.
 String getAccountSid()
          Gets the account sid.
 String getApiVersion()
          Gets the api version.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getFriendlyName()
          Gets the friendly name.
 String getPhoneNumber()
          Gets the phone number.
 String getSid()
          Gets the sid.
 String getSmsApplicationSid()
          Gets the sms application sid.
 String getSmsFallbackMethod()
          Gets the sms fallback method.
 String getSmsFallbackUrl()
          Gets the sms fallback url.
 String getSmsMethod()
          Gets the sms method.
 String getSmsStatusCallback()
          Gets the sms status callback.
 String getSmsUrl()
          Gets the sms url.
 String getStatusCallback()
          Gets the status callback.
 String getStatusCallbackMethod()
          Gets the status callback method.
 String getVoiceApplicationSid()
          Gets the voice application sid.
 String getVoiceCallerIdLookup()
          Gets the voice caller id lookup.
 String getVoiceFallbackMethod()
          Gets the voice fallback method.
 String getVoiceFallbackUrl()
          Gets the voice fallback url.
 String getVoiceMethod()
          Gets the voice method.
 String getVoiceUrl()
          Gets the voice url.
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingPhoneNumber

public IncomingPhoneNumber(TwilioRestClient client)
Instantiates a new incoming phone number.

Parameters:
client - the client

IncomingPhoneNumber

public IncomingPhoneNumber(TwilioRestClient client,
                           String sid)
Instantiates a new incoming phone number.

Parameters:
client - the client
sid - the sid

IncomingPhoneNumber

public IncomingPhoneNumber(TwilioRestClient client,
                           Map<String,Object> properties)
Instantiates a new incoming phone number.

Parameters:
client - the client
properties - the properties
Method Detail

delete

public boolean delete()
               throws TwilioRestException
Deprovision this IncomingPhoneNumber. This will remove it from your account.

Returns:
true, if successful
Throws:
TwilioRestException - if there is an error in the request

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
Gets the friendly name.

Returns:
the friendly name

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getPhoneNumber

public String getPhoneNumber()
Gets the phone number.

Returns:
the phone number

getVoiceApplicationSid

public String getVoiceApplicationSid()
Gets the voice application sid.

Returns:
the voice application sid

getSmsApplicationSid

public String getSmsApplicationSid()
Gets the sms application sid.

Returns:
the sms application sid

getApiVersion

public String getApiVersion()
Gets the api version.

Returns:
the api version

getVoiceUrl

public String getVoiceUrl()
Gets the voice url.

Returns:
the voice url

getVoiceMethod

public String getVoiceMethod()
Gets the voice method.

Returns:
the voice method

getVoiceFallbackUrl

public String getVoiceFallbackUrl()
Gets the voice fallback url.

Returns:
the voice fallback url

getVoiceFallbackMethod

public String getVoiceFallbackMethod()
Gets the voice fallback method.

Returns:
the voice fallback method

getStatusCallback

public String getStatusCallback()
Gets the status callback.

Returns:
the status callback

getStatusCallbackMethod

public String getStatusCallbackMethod()
Gets the status callback method.

Returns:
the status callback method

getVoiceCallerIdLookup

public String getVoiceCallerIdLookup()
Gets the voice caller id lookup.

Returns:
the voice caller id lookup

getSmsUrl

public String getSmsUrl()
Gets the sms url.

Returns:
the sms url

getSmsMethod

public String getSmsMethod()
Gets the sms method.

Returns:
the sms method

getSmsFallbackUrl

public String getSmsFallbackUrl()
Gets the sms fallback url.

Returns:
the sms fallback url

getSmsFallbackMethod

public String getSmsFallbackMethod()
Gets the sms fallback method.

Returns:
the sms fallback method

getSmsStatusCallback

public String getSmsStatusCallback()
Gets the sms status callback.

Returns:
the sms status callback


Copyright © 2011 Twilio, Inc. All Rights Reserved.