Package com.twilio.rest.wireless.v1
Class Command
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.wireless.v1.Command
-
- All Implemented Interfaces:
Serializable
public class Command extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommand.CommandModestatic classCommand.Directionstatic classCommand.Statusstatic classCommand.Transport
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandCreatorcreator(String command)static CommandDeleterdeleter(String pathSid)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()Command.CommandModegetCommandMode()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()BooleangetDeliveryReceiptRequested()Command.DirectiongetDirection()StringgetSid()StringgetSimSid()Command.StatusgetStatus()Command.TransportgetTransport()URIgetUrl()inthashCode()static CommandReaderreader()
-
-
-
Method Detail
-
creator
public static CommandCreator creator(String command)
-
fetcher
public static CommandFetcher fetcher(String pathSid)
-
deleter
public static CommandDeleter deleter(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()
-
getSimSid
public final String getSimSid()
-
getCommand
public final String getCommand()
-
getCommandMode
public final Command.CommandMode getCommandMode()
-
getTransport
public final Command.Transport getTransport()
-
getDeliveryReceiptRequested
public final Boolean getDeliveryReceiptRequested()
-
getStatus
public final Command.Status getStatus()
-
getDirection
public final Command.Direction getDirection()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-