public class Credential extends Resource
| Modifier and Type | Method and Description |
|---|---|
static CredentialCreator |
creator(String pathCredentialListSid,
String username,
String password)
Create a CredentialCreator to execute create.
|
static CredentialCreator |
creator(String pathAccountSid,
String pathCredentialListSid,
String username,
String password)
Create a CredentialCreator to execute create.
|
static CredentialDeleter |
deleter(String pathCredentialListSid,
String pathSid)
Create a CredentialDeleter to execute delete.
|
static CredentialDeleter |
deleter(String pathAccountSid,
String pathCredentialListSid,
String pathSid)
Create a CredentialDeleter to execute delete.
|
boolean |
equals(Object o) |
static CredentialFetcher |
fetcher(String pathCredentialListSid,
String pathSid)
Create a CredentialFetcher to execute fetch.
|
static CredentialFetcher |
fetcher(String pathAccountSid,
String pathCredentialListSid,
String pathSid)
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 |
reader(String pathCredentialListSid)
Create a CredentialReader to execute read.
|
static CredentialReader |
reader(String pathAccountSid,
String pathCredentialListSid)
Create a CredentialReader to execute read.
|
String |
toString() |
static CredentialUpdater |
updater(String pathCredentialListSid,
String pathSid)
Create a CredentialUpdater to execute update.
|
static CredentialUpdater |
updater(String pathAccountSid,
String pathCredentialListSid,
String pathSid)
Create a CredentialUpdater to execute update.
|
public static CredentialReader reader(String pathAccountSid, String pathCredentialListSid)
pathAccountSid - The account_sidpathCredentialListSid - The credential_list_sidpublic static CredentialReader reader(String pathCredentialListSid)
pathCredentialListSid - The credential_list_sidpublic static CredentialCreator creator(String pathAccountSid, String pathCredentialListSid, String username, String password)
pathAccountSid - The account_sidpathCredentialListSid - The credential_list_sidusername - The usernamepassword - The passwordpublic static CredentialCreator creator(String pathCredentialListSid, String username, String password)
pathCredentialListSid - The credential_list_sidusername - The usernamepassword - The passwordpublic static CredentialFetcher fetcher(String pathAccountSid, String pathCredentialListSid, String pathSid)
pathAccountSid - The account_sidpathCredentialListSid - The credential_list_sidpathSid - The sidpublic static CredentialFetcher fetcher(String pathCredentialListSid, String pathSid)
pathCredentialListSid - The credential_list_sidpathSid - The sidpublic static CredentialUpdater updater(String pathAccountSid, String pathCredentialListSid, String pathSid)
pathAccountSid - The account_sidpathCredentialListSid - The credential_list_sidpathSid - The sidpublic static CredentialUpdater updater(String pathCredentialListSid, String pathSid)
pathCredentialListSid - The credential_list_sidpathSid - The sidpublic static CredentialDeleter deleter(String pathAccountSid, String pathCredentialListSid, String pathSid)
pathAccountSid - The account_sidpathCredentialListSid - The credential_list_sidpathSid - The sidpublic static CredentialDeleter deleter(String pathCredentialListSid, String pathSid)
pathCredentialListSid - The credential_list_sidpathSid - 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()
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 © 2016 Twilio, Inc. All Rights Reserved.