Class Key
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.Key
-
- All Implemented Interfaces:
Serializable
public class Key extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyDeleterdeleter(String pathSid)static KeyDeleterdeleter(String pathAccountSid, String pathSid)booleanequals(Object o)static KeyFetcherfetcher(String pathSid)static KeyFetcherfetcher(String pathAccountSid, String pathSid)static KeyfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Key object using the provided ObjectMapper.static KeyfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Key object using the provided ObjectMapper.ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetSid()inthashCode()static KeyReaderreader()static KeyReaderreader(String pathAccountSid)static KeyUpdaterupdater(String pathSid)static KeyUpdaterupdater(String pathAccountSid, String pathSid)
-
-
-
Method Detail
-
fetcher
public static KeyFetcher fetcher(String pathSid)
-
fetcher
public static KeyFetcher fetcher(String pathAccountSid, String pathSid)
-
deleter
public static KeyDeleter deleter(String pathSid)
-
deleter
public static KeyDeleter deleter(String pathAccountSid, String pathSid)
-
reader
public static KeyReader reader()
-
updater
public static KeyUpdater updater(String pathSid)
-
updater
public static KeyUpdater updater(String pathAccountSid, String pathSid)
-
fromJson
public static Key fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Key object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Key object represented by the provided JSON
-
fromJson
public static Key fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Key object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Key object represented by the provided JSON
-
getSid
public final String getSid()
-
getFriendlyName
public final String getFriendlyName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-