com.twilio.sdk.resource.list.sip
Class CredentialList

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.ListResource<Credential>
          extended by com.twilio.sdk.resource.list.sip.CredentialList
All Implemented Interfaces:
CredentialFactory, Iterable<Credential>

public class CredentialList
extends ListResource<Credential>
implements CredentialFactory

The Class CredentialList For more information see https://www.twilio.com/docs/api/rest/sip-domain


Constructor Summary
CredentialList(TwilioRestClient client)
          Instantiates a new sip domain list.
CredentialList(TwilioRestClient client, Map<String,String> filters)
          Instantiates a new sip domain list.
CredentialList(TwilioRestClient client, String credentialListSid)
          Instantiates a new sip domain list.
 
Method Summary
 Credential create(List<org.apache.http.NameValuePair> params)
          Creates the credential
 Credential create(Map<String,String> params)
          Creates the credential
 String getRequestCredentialListSid()
          Returns the sid of the containing credential list.
 
Methods inherited from class com.twilio.sdk.resource.ListResource
getEnd, getNextUri, getNumPages, getPage, getPageData, getStart, getTotal, iterator
 
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

CredentialList

public CredentialList(TwilioRestClient client)
Instantiates a new sip domain list.

Parameters:
client - the client

CredentialList

public CredentialList(TwilioRestClient client,
                      String credentialListSid)
Instantiates a new sip domain list.

Parameters:
client - the client

CredentialList

public CredentialList(TwilioRestClient client,
                      Map<String,String> filters)
Instantiates a new sip domain list.

Parameters:
client - the client
filters - the filters
Method Detail

getRequestCredentialListSid

public String getRequestCredentialListSid()
Returns the sid of the containing credential list.

Returns:
the credential list sid

create

public Credential create(Map<String,String> params)
                  throws TwilioRestException
Description copied from interface: CredentialFactory
Creates the credential

Specified by:
create in interface CredentialFactory
Parameters:
params - the params map
Returns:
the credential
Throws:
TwilioRestException

create

public Credential create(List<org.apache.http.NameValuePair> params)
                  throws TwilioRestException
Description copied from interface: CredentialFactory
Creates the credential

Specified by:
create in interface CredentialFactory
Parameters:
params - the params list
Returns:
the credential
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.