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 account_sid.
|
String |
getCommand()
Returns The command.
|
String |
getCommandMode()
Returns The command_mode.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getDeviceSid()
Returns The device_sid.
|
String |
getDirection()
Returns The direction.
|
String |
getSid()
Returns The sid.
|
String |
getSimSid()
Returns The sim_sid.
|
String |
getStatus()
Returns The status.
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static CommandReader |
reader()
Create a CommandReader to execute read.
|
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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.