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

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.Credential

public class Credential
extends InstanceResource


Constructor Summary
Credential(TwilioRestClient client)
          Instantiates a new Credential.
Credential(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new Credential.
Credential(TwilioRestClient client, String credentialListSid, String sid)
          Instantiates a new Credential.
 
Method Summary
 boolean delete()
          Delete this Credential.
 String getAccountSid()
          Gets the account sid.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getRequestCredentialListSid()
          Gets the sid of the parent credential list
 String getSid()
          Gets the sid.
 String getUsername()
          Gets the username
 
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

Credential

public Credential(TwilioRestClient client)
Instantiates a new Credential.

Parameters:
client - the client

Credential

public Credential(TwilioRestClient client,
                  String credentialListSid,
                  String sid)
Instantiates a new Credential.

Parameters:
client - the client
sid - the sid

Credential

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

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

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getUsername

public String getUsername()
Gets the username

Returns:
the account sid

getRequestCredentialListSid

public String getRequestCredentialListSid()
Gets the sid of the parent credential list

Returns:
the credential list sid

delete

public boolean delete()
               throws TwilioRestException
Delete this Credential.

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


Copyright © 2011 Twilio, Inc. All Rights Reserved.