public class Credential extends SidResource
Modifier and Type | Method and Description |
---|---|
static CredentialCreator |
create(String accountSid,
String credentialListSid,
String username,
String password)
Create a CredentialCreator to execute create.
|
static CredentialDeleter |
delete(String accountSid,
String credentialListSid,
String sid)
Create a CredentialDeleter to execute delete.
|
boolean |
equals(Object o) |
static CredentialFetcher |
fetch(String accountSid,
String credentialListSid,
String sid)
Create a CredentialFetcher to execute fetch.
|
static Credential |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Credential object using the provided
ObjectMapper.
|
static Credential |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Credential object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
String |
getCredentialListSid()
Returns The The credential_list_sid.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getSid()
Returns The The sid.
|
String |
getUri()
Returns The The uri.
|
String |
getUsername()
Returns The The username.
|
int |
hashCode() |
static CredentialReader |
read(String accountSid,
String credentialListSid)
Create a CredentialReader to execute read.
|
String |
toString() |
static CredentialUpdater |
update(String accountSid,
String credentialListSid,
String sid,
String username,
String password)
Create a CredentialUpdater to execute update.
|
public static CredentialReader read(String accountSid, String credentialListSid)
accountSid
- The account_sidcredentialListSid
- The credential_list_sidpublic static CredentialCreator create(String accountSid, String credentialListSid, String username, String password)
accountSid
- The account_sidcredentialListSid
- The credential_list_sidusername
- The usernamepassword
- The passwordpublic static CredentialFetcher fetch(String accountSid, String credentialListSid, String sid)
accountSid
- The account_sidcredentialListSid
- The credential_list_sidsid
- The sidpublic static CredentialUpdater update(String accountSid, String credentialListSid, String sid, String username, String password)
accountSid
- The account_sidcredentialListSid
- The credential_list_sidsid
- The sidusername
- The usernamepassword
- The passwordpublic static CredentialDeleter delete(String accountSid, String credentialListSid, String sid)
accountSid
- The account_sidcredentialListSid
- The credential_list_sidsid
- The sidpublic static Credential fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Credential fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getAccountSid()
public final String getCredentialListSid()
public final String getUsername()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.