public class Credential extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Credential.PushService |
Modifier and Type | Method and Description |
---|---|
static CredentialCreator |
creator(Credential.PushService type)
Create a CredentialCreator to execute create.
|
static CredentialDeleter |
deleter(String sid)
Create a CredentialDeleter to execute delete.
|
boolean |
equals(Object o) |
static CredentialFetcher |
fetcher(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.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
String |
getSandbox()
Returns The The sandbox.
|
String |
getSid()
Returns The The sid.
|
Credential.PushService |
getType()
Returns The The type.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static CredentialReader |
reader()
Create a CredentialReader to execute read.
|
String |
toString() |
static CredentialUpdater |
updater(String sid)
Create a CredentialUpdater to execute update.
|
public static CredentialReader reader()
public static CredentialCreator creator(Credential.PushService type)
type
- The typepublic static CredentialFetcher fetcher(String sid)
sid
- The sidpublic static CredentialUpdater updater(String sid)
sid
- The sidpublic static CredentialDeleter deleter(String sid)
sid
- 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 getFriendlyName()
public final Credential.PushService getType()
public final String getSandbox()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.