Package com.twilio.rest.preview.wireless
Class Command
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.wireless.Command
-
- All Implemented Interfaces:
Serializable
public class Command extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandCreatorcreator(String command)booleanequals(Object o)static CommandFetcherfetcher(String pathSid)static CommandfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Command object using the provided ObjectMapper.static CommandfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Command object using the provided ObjectMapper.StringgetAccountSid()StringgetCommand()StringgetCommandMode()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDeviceSid()StringgetDirection()StringgetSid()StringgetSimSid()StringgetStatus()URIgetUrl()inthashCode()static CommandReaderreader()
-
-
-
Method Detail
-
creator
public static CommandCreator creator(String command)
-
fetcher
public static CommandFetcher fetcher(String pathSid)
-
reader
public static CommandReader reader()
-
fromJson
public static Command fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Command object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Command object represented by the provided JSON
-
fromJson
public static Command fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Command object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Command object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getDeviceSid
public final String getDeviceSid()
-
getSimSid
public final String getSimSid()
-
getCommand
public final String getCommand()
-
getCommandMode
public final String getCommandMode()
-
getStatus
public final String getStatus()
-
getDirection
public final String getDirection()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-