public class Command extends Resource
Modifier and Type | Method and Description |
---|---|
static CommandCreator |
creator(String command)
Create a CommandCreator to execute create.
|
boolean |
equals(Object o) |
static CommandFetcher |
fetcher(String pathSid)
Create a CommandFetcher to execute fetch.
|
static Command |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Command object using the provided
ObjectMapper.
|
static Command |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Command object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
String |
getCommand()
Returns The The command.
|
String |
getCommandMode()
Returns The The command_mode.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDeviceSid()
Returns The The device_sid.
|
String |
getDirection()
Returns The The direction.
|
String |
getSid()
Returns The The sid.
|
String |
getSimSid()
Returns The The sim_sid.
|
String |
getStatus()
Returns The The status.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static CommandReader |
reader()
Create a CommandReader to execute read.
|
String |
toString() |
public static CommandFetcher fetcher(String pathSid)
pathSid
- The sidpublic static CommandReader reader()
public static CommandCreator creator(String command)
command
- The commandpublic static Command fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Command fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getDeviceSid()
public final String getSimSid()
public final String getCommand()
public final String getCommandMode()
public final String getStatus()
public final String getDirection()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.