public class Credential extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Credential(TwilioRestClient client)
client - the clientpublic Credential(TwilioRestClient client, String credentialListSid, String sid)
client - the clientsid - the sidpublic Credential(TwilioRestClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getAccountSid()
public String getUsername()
public String getRequestCredentialListSid()
public boolean delete()
throws TwilioRestException
Credential.TwilioRestException - if there is an error in the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.