Class Device
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.deployedDevices.fleet.Device
-
- All Implemented Interfaces:
Serializable
public class Device extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceCreatorcreator(String pathFleetSid)static DeviceDeleterdeleter(String pathFleetSid, String pathSid)booleanequals(Object o)static DeviceFetcherfetcher(String pathFleetSid, String pathSid)static DevicefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Device object using the provided ObjectMapper.static DevicefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Device object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateAuthenticated()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDeploymentSid()BooleangetEnabled()StringgetFleetSid()StringgetFriendlyName()StringgetIdentity()StringgetSid()StringgetUniqueName()URIgetUrl()inthashCode()static DeviceReaderreader(String pathFleetSid)static DeviceUpdaterupdater(String pathFleetSid, String pathSid)
-
-
-
Method Detail
-
creator
public static DeviceCreator creator(String pathFleetSid)
-
fetcher
public static DeviceFetcher fetcher(String pathFleetSid, String pathSid)
-
deleter
public static DeviceDeleter deleter(String pathFleetSid, String pathSid)
-
reader
public static DeviceReader reader(String pathFleetSid)
-
updater
public static DeviceUpdater updater(String pathFleetSid, String pathSid)
-
fromJson
public static Device fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Device object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Device object represented by the provided JSON
-
fromJson
public static Device fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Device object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Device object represented by the provided JSON
-
getSid
public final String getSid()
-
getUrl
public final URI getUrl()
-
getUniqueName
public final String getUniqueName()
-
getFriendlyName
public final String getFriendlyName()
-
getFleetSid
public final String getFleetSid()
-
getEnabled
public final Boolean getEnabled()
-
getAccountSid
public final String getAccountSid()
-
getIdentity
public final String getIdentity()
-
getDeploymentSid
public final String getDeploymentSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getDateAuthenticated
public final ZonedDateTime getDateAuthenticated()
-
-