public class Device extends Resource
| Modifier and Type | Method and Description |
|---|---|
static DeviceCreator |
creator(String pathFleetSid)
Create a DeviceCreator to execute create.
|
static DeviceDeleter |
deleter(String pathFleetSid,
String pathSid)
Create a DeviceDeleter to execute delete.
|
boolean |
equals(Object o) |
static DeviceFetcher |
fetcher(String pathFleetSid,
String pathSid)
Create a DeviceFetcher to execute fetch.
|
static Device |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Device object using the provided
ObjectMapper.
|
static Device |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Device object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The unique SID that identifies this Account..
|
org.joda.time.DateTime |
getDateAuthenticated()
Returns The The date this Device was authenticated..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Device was created..
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Device was updated..
|
String |
getDeploymentSid()
Returns The The unique SID of the Deployment group..
|
Boolean |
getEnabled()
Returns The Device enabled flag..
|
String |
getFleetSid()
Returns The The unique identifier of the Fleet..
|
String |
getFriendlyName()
Returns The A human readable description for this Device.
|
String |
getIdentity()
Returns The An identifier of the Device user..
|
String |
getSid()
Returns The A string that uniquely identifies this Device..
|
String |
getUniqueName()
Returns The A unique, addressable name of this Device..
|
URI |
getUrl()
Returns The URL of this Device..
|
int |
hashCode() |
static DeviceReader |
reader(String pathFleetSid)
Create a DeviceReader to execute read.
|
String |
toString() |
static DeviceUpdater |
updater(String pathFleetSid,
String pathSid)
Create a DeviceUpdater to execute update.
|
public static DeviceFetcher fetcher(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Device.public static DeviceDeleter deleter(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Device.public static DeviceCreator creator(String pathFleetSid)
pathFleetSid - The fleet_sidpublic static DeviceReader reader(String pathFleetSid)
pathFleetSid - The fleet_sidpublic static DeviceUpdater updater(String pathFleetSid, String pathSid)
pathFleetSid - The fleet_sidpathSid - A string that uniquely identifies the Device.public static Device fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Device 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 getUniqueName()
public final String getFriendlyName()
public final String getFleetSid()
public final Boolean getEnabled()
public final String getAccountSid()
public final String getIdentity()
public final String getDeploymentSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final org.joda.time.DateTime getDateAuthenticated()
Copyright © 2016 Twilio, Inc. All Rights Reserved.