Package com.twilio.rest.supersim.v1
Class SmsCommand
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.supersim.v1.SmsCommand
-
- All Implemented Interfaces:
Serializable
public class SmsCommand extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmsCommand.Direction
static class
SmsCommand.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SmsCommandCreator
creator(String sim, String payload)
boolean
equals(Object o)
static SmsCommandFetcher
fetcher(String pathSid)
static SmsCommand
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SmsCommand object using the provided ObjectMapper.static SmsCommand
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SmsCommand object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
SmsCommand.Direction
getDirection()
String
getPayload()
String
getSid()
String
getSimSid()
SmsCommand.Status
getStatus()
URI
getUrl()
int
hashCode()
static SmsCommandReader
reader()
-
-
-
Method Detail
-
creator
public static SmsCommandCreator creator(String sim, String payload)
-
fetcher
public static SmsCommandFetcher fetcher(String pathSid)
-
reader
public static SmsCommandReader reader()
-
fromJson
public static SmsCommand fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SmsCommand object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- SmsCommand object represented by the provided JSON
-
fromJson
public static SmsCommand fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SmsCommand object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- SmsCommand object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getSimSid
public final String getSimSid()
-
getPayload
public final String getPayload()
-
getStatus
public final SmsCommand.Status getStatus()
-
getDirection
public final SmsCommand.Direction getDirection()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-