public class Device extends SidResource
Modifier and Type | Method and Description |
---|---|
static DeviceCreator |
create(String ratePlan)
Create a DeviceCreator to execute create.
|
boolean |
equals(Object o) |
static DeviceFetcher |
fetch(String sid)
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 account_sid.
|
String |
getAlias()
Returns The The alias.
|
String |
getCommandsCallbackMethod()
Returns The The commands_callback_method.
|
URI |
getCommandsCallbackUrl()
Returns The The commands_callback_url.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getRatePlanSid()
Returns The The rate_plan_sid.
|
String |
getSid()
Returns The The sid.
|
String |
getSimIdentifier()
Returns The The sim_identifier.
|
String |
getStatus()
Returns The The status.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static DeviceReader |
read()
Create a DeviceReader to execute read.
|
String |
toString() |
static DeviceUpdater |
update(String sid)
Create a DeviceUpdater to execute update.
|
public static DeviceFetcher fetch(String sid)
sid
- The sidpublic static DeviceReader read()
public static DeviceCreator create(String ratePlan)
ratePlan
- The rate_planpublic static DeviceUpdater update(String sid)
sid
- The sidpublic 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()
getSid
in class SidResource
public final String getAlias()
public final String getAccountSid()
public final String getRatePlanSid()
public final String getFriendlyName()
public final String getSimIdentifier()
public final String getStatus()
public final URI getCommandsCallbackUrl()
public final String getCommandsCallbackMethod()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.