Package com.twilio.rest.supersim.v1
Class IpCommand
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.supersim.v1.IpCommand
-
- All Implemented Interfaces:
Serializable
public class IpCommand extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpCommand.Directionstatic classIpCommand.PayloadTypestatic classIpCommand.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpCommandCreatorcreator(String sim, String payload, Integer devicePort)booleanequals(Object o)static IpCommandFetcherfetcher(String pathSid)static IpCommandfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a IpCommand object using the provided ObjectMapper.static IpCommandfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a IpCommand object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDeviceIp()IntegergetDevicePort()IpCommand.DirectiongetDirection()StringgetPayload()IpCommand.PayloadTypegetPayloadType()StringgetSid()StringgetSimIccid()StringgetSimSid()IpCommand.StatusgetStatus()URIgetUrl()inthashCode()static IpCommandReaderreader()
-
-
-
Method Detail
-
creator
public static IpCommandCreator creator(String sim, String payload, Integer devicePort)
-
fetcher
public static IpCommandFetcher fetcher(String pathSid)
-
reader
public static IpCommandReader reader()
-
fromJson
public static IpCommand fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a IpCommand object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- IpCommand object represented by the provided JSON
-
fromJson
public static IpCommand fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a IpCommand object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- IpCommand object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getSimSid
public final String getSimSid()
-
getSimIccid
public final String getSimIccid()
-
getStatus
public final IpCommand.Status getStatus()
-
getDirection
public final IpCommand.Direction getDirection()
-
getDeviceIp
public final String getDeviceIp()
-
getDevicePort
public final Integer getDevicePort()
-
getPayloadType
public final IpCommand.PayloadType getPayloadType()
-
getPayload
public final String getPayload()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-