Class Key
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.deployedDevices.fleet.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 KeyCreatorcreator(String pathFleetSid)static KeyDeleterdeleter(String pathFleetSid, String pathSid)booleanequals(Object o)static KeyFetcherfetcher(String pathFleetSid, 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.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDeviceSid()StringgetFleetSid()StringgetFriendlyName()StringgetSecret()StringgetSid()URIgetUrl()inthashCode()static KeyReaderreader(String pathFleetSid)static KeyUpdaterupdater(String pathFleetSid, String pathSid)
-
-
-
Method Detail
-
creator
public static KeyCreator creator(String pathFleetSid)
-
fetcher
public static KeyFetcher fetcher(String pathFleetSid, String pathSid)
-
deleter
public static KeyDeleter deleter(String pathFleetSid, String pathSid)
-
updater
public static KeyUpdater updater(String pathFleetSid, 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()
-
getUrl
public final URI getUrl()
-
getFriendlyName
public final String getFriendlyName()
-
getFleetSid
public final String getFleetSid()
-
getAccountSid
public final String getAccountSid()
-
getDeviceSid
public final String getDeviceSid()
-
getSecret
public final String getSecret()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
-