com.twilio.sdk.resource.instance
Class OutgoingCallerId

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

public class OutgoingCallerId
extends InstanceResource

The Class OutgoingCallerId. For more information see https://www.twilio.com/docs/api/rest/outgoing-caller-ids


Constructor Summary
OutgoingCallerId(TwilioRestClient client)
          Instantiates a new outgoing caller id.
OutgoingCallerId(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new outgoing caller id.
OutgoingCallerId(TwilioRestClient client, String sid)
          Instantiates a new outgoing caller id.
 
Method Summary
 boolean delete()
          Delete this CallerId
 String getAccountSid()
          Gets the account sid.
 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.
 
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

OutgoingCallerId

public OutgoingCallerId(TwilioRestClient client)
Instantiates a new outgoing caller id.

Parameters:
client - the client

OutgoingCallerId

public OutgoingCallerId(TwilioRestClient client,
                        String sid)
Instantiates a new outgoing caller id.

Parameters:
client - the client
sid - the sid

OutgoingCallerId

public OutgoingCallerId(TwilioRestClient client,
                        Map<String,Object> properties)
Instantiates a new outgoing caller id.

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

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

delete

public boolean delete()
               throws TwilioRestException
Delete this CallerId

Returns:
true, if successful
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.