public class Key extends Resource
| Modifier and Type | Method and Description |
|---|---|
static KeyCreator |
creator(String pathFleetSid)
Create a KeyCreator to execute create.
|
static KeyDeleter |
deleter(String pathFleetSid,
String pathSid)
Create a KeyDeleter to execute delete.
|
boolean |
equals(Object o) |
static KeyFetcher |
fetcher(String pathFleetSid,
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.
|
String |
getAccountSid()
Returns The The unique SID that identifies this Account..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Key credential was created..
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Key credential was updated..
|
String |
getDeviceSid()
Returns The The unique identifier of a mapped Device..
|
String |
getFleetSid()
Returns The The unique identifier of the Fleet..
|
String |
getFriendlyName()
Returns The A human readable description for this Key..
|
String |
getSecret()
Returns The The key secret..
|
String |
getSid()
Returns The A string that uniquely identifies this Key..
|
URI |
getUrl()
Returns The URL of this Key..
|
int |
hashCode() |
static KeyReader |
reader(String pathFleetSid)
Create a KeyReader to execute read.
|
String |
toString() |
static KeyUpdater |
updater(String pathFleetSid,
String pathSid)
Create a KeyUpdater to execute update.
|
public static KeyFetcher fetcher(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Key.public static KeyDeleter deleter(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Key.public static KeyCreator creator(String pathFleetSid)
pathFleetSid - The fleet_sidpublic static KeyReader reader(String pathFleetSid)
pathFleetSid - The fleet_sidpublic static KeyUpdater updater(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Key.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 URI getUrl()
public final String getFriendlyName()
public final String getFleetSid()
public final String getAccountSid()
public final String getDeviceSid()
public final String getSecret()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
Copyright © 2016 Twilio, Inc. All Rights Reserved.