com.twilio.sdk.resource.instance.sip
Class IpAddress

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

public class IpAddress
extends InstanceResource


Constructor Summary
IpAddress(TwilioRestClient client)
          Instantiates a new IpAddress.
IpAddress(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new IpAddress.
IpAddress(TwilioRestClient client, String ipAccessControlListSid, String sid)
          Instantiates a new IpAddress.
 
Method Summary
 boolean delete()
          Delete this IpAddress.
 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 getIpAccessControlListSid()
           
 String getIpAddress()
          Gets the ip IpAddress
 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

IpAddress

public IpAddress(TwilioRestClient client)
Instantiates a new IpAddress.

Parameters:
client - the client

IpAddress

public IpAddress(TwilioRestClient client,
                 String ipAccessControlListSid,
                 String sid)
Instantiates a new IpAddress.

Parameters:
client - the client
ipAccessControlListSid - the sid of list this IpAddress belongs to
sid - the sid

IpAddress

public IpAddress(TwilioRestClient client,
                 Map<String,Object> properties)
Instantiates a new IpAddress.

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

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getIpAccessControlListSid

public String getIpAccessControlListSid()

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getFriendlyName

public String getFriendlyName()
Gets the friendly name

Returns:
the friendly name

getIpAddress

public String getIpAddress()
Gets the ip IpAddress

Returns:
the friendly name

delete

public boolean delete()
               throws TwilioRestException
Delete this IpAddress.

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


Copyright © 2011 Twilio, Inc. All Rights Reserved.