public class Key extends Resource
Modifier and Type | Method and Description |
---|---|
static KeyDeleter |
deleter(String pathSid)
Create a KeyDeleter to execute delete.
|
static KeyDeleter |
deleter(String pathAccountSid,
String pathSid)
Create a KeyDeleter to execute delete.
|
boolean |
equals(Object o) |
static KeyFetcher |
fetcher(String pathSid)
Create a KeyFetcher to execute fetch.
|
static KeyFetcher |
fetcher(String pathAccountSid,
String pathSid)
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 |
reader()
Create a KeyReader to execute read.
|
static KeyReader |
reader(String pathAccountSid)
Create a KeyReader to execute read.
|
String |
toString() |
static KeyUpdater |
updater(String pathSid)
Create a KeyUpdater to execute update.
|
static KeyUpdater |
updater(String pathAccountSid,
String pathSid)
Create a KeyUpdater to execute update.
|
public static KeyFetcher fetcher(String pathAccountSid, String pathSid)
pathAccountSid
- The account_sidpathSid
- The sidpublic static KeyFetcher fetcher(String pathSid)
pathSid
- The sidpublic static KeyUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid
- The account_sidpathSid
- The sidpublic static KeyUpdater updater(String pathSid)
pathSid
- The sidpublic static KeyDeleter deleter(String pathAccountSid, String pathSid)
pathAccountSid
- The account_sidpathSid
- The sidpublic static KeyDeleter deleter(String pathSid)
pathSid
- The sidpublic static KeyReader reader(String pathAccountSid)
pathAccountSid
- The account_sidpublic static KeyReader reader()
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()
public final String getFriendlyName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
Copyright © 2016 Twilio, Inc. All Rights Reserved.