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

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

public class CredentialListInstance
extends InstanceResource

This class is the instance resource corresponding to /CredentialLists/CLXXX. NOTE: The 'Instance' suffix in the name was added to avoid a name clash with the list resource that corresponds to /Credentials. This unfortunate quirk is caused by this library's convention of appending 'List' to instance resources to form their list counterpart.


Constructor Summary
CredentialListInstance(TwilioRestClient client)
          Instantiates a new CredentialListInstance.
CredentialListInstance(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new CredentialListInstance.
CredentialListInstance(TwilioRestClient client, String sid)
          Instantiates a new CredentialListInstance.
 
Method Summary
 boolean delete()
          Delete this CredentialListInstance.
 String getAccountSid()
          Gets the account sid.
 Credential getCredential(String credentialSid)
          Gets the credentials from the credential list
 CredentialFactory getCredentialFactory()
          Gets a CredentialFactory which creates credentials
 CredentialList getCredentials()
          Gets the credentials from the credential list
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getFriendlyName()
          Gets the friendly name
 String getRealm()
          Gets the realm
 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

CredentialListInstance

public CredentialListInstance(TwilioRestClient client)
Instantiates a new CredentialListInstance.

Parameters:
client - the client

CredentialListInstance

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

Parameters:
client - the client
sid - the sid

CredentialListInstance

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

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

getRealm

public String getRealm()
Gets the realm

Returns:
the realm

getFriendlyName

public String getFriendlyName()
Gets the friendly name

Returns:
the friendly name

getCredentials

public CredentialList getCredentials()
Gets the credentials from the credential list

Returns:
the credentials

getCredential

public Credential getCredential(String credentialSid)
Gets the credentials from the credential list

Returns:
the credentials

getCredentialFactory

public CredentialFactory getCredentialFactory()
Gets a CredentialFactory which creates credentials

Returns:
the CredentialFactory

delete

public boolean delete()
               throws TwilioRestException
Delete this CredentialListInstance.

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


Copyright © 2011 Twilio, Inc. All Rights Reserved.