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.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
int |
hashCode() |
static KeyReader |
reader()
Create a KeyReader to execute read.
|
static KeyReader |
reader(String pathAccountSid)
Create a KeyReader to execute read.
|
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 SID of the Account that created the resource to
fetchpathSid
- The unique string that identifies the resourcepublic static KeyFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static KeyUpdater updater(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resources to
updatepathSid
- The unique string that identifies the resourcepublic static KeyUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static KeyDeleter deleter(String pathAccountSid, String pathSid)
pathAccountSid
- The SID of the Account that created the resources to
deletepathSid
- The unique string that identifies the resourcepublic static KeyDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static KeyReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
Copyright © 2019 Twilio, Inc. All Rights Reserved.