public class Key extends SidResource
Modifier and Type | Method and Description |
---|---|
static KeyDeleter |
delete(String sid)
Create a KeyDeleter to execute delete.
|
static KeyDeleter |
delete(String accountSid,
String sid)
Create a KeyDeleter to execute delete.
|
boolean |
equals(Object o) |
static KeyFetcher |
fetch(String sid)
Create a KeyFetcher to execute fetch.
|
static KeyFetcher |
fetch(String accountSid,
String sid)
Create a KeyFetcher to execute fetch.
|
static Key |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Key object using the provided
ObjectMapper.
|
static Key |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Key object using the provided ObjectMapper.
|
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 |
getSid()
Returns The The sid.
|
int |
hashCode() |
static KeyReader |
read()
Create a KeyReader to execute read.
|
static KeyReader |
read(String accountSid)
Create a KeyReader to execute read.
|
String |
toString() |
static KeyUpdater |
update(String sid)
Create a KeyUpdater to execute update.
|
static KeyUpdater |
update(String accountSid,
String sid)
Create a KeyUpdater to execute update.
|
public static KeyFetcher fetch(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static KeyFetcher fetch(String sid)
sid
- The sidpublic static KeyUpdater update(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static KeyUpdater update(String sid)
sid
- The sidpublic static KeyDeleter delete(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static KeyDeleter delete(String sid)
sid
- The sidpublic static KeyReader read(String accountSid)
accountSid
- The account_sidpublic static KeyReader read()
public static Key fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Key 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 getFriendlyName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
Copyright © 2011 Twilio, Inc. All Rights Reserved.