Package com.twilio.rest.supersim.v1
Class Sim
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.supersim.v1.Sim
-
- All Implemented Interfaces:
Serializable
public class Sim extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Sim.Status
static class
Sim.StatusUpdate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimCreator
creator(String iccid, String registrationCode)
boolean
equals(Object o)
static SimFetcher
fetcher(String pathSid)
static Sim
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sim object using the provided ObjectMapper.static Sim
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sim object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFleetSid()
String
getIccid()
Map<String,String>
getLinks()
String
getSid()
Sim.Status
getStatus()
String
getUniqueName()
URI
getUrl()
int
hashCode()
static SimReader
reader()
static SimUpdater
updater(String pathSid)
-
-
-
Method Detail
-
creator
public static SimCreator creator(String iccid, String registrationCode)
-
fetcher
public static SimFetcher fetcher(String pathSid)
-
reader
public static SimReader reader()
-
updater
public static SimUpdater updater(String pathSid)
-
fromJson
public static Sim fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sim object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Sim object represented by the provided JSON
-
fromJson
public static Sim fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sim object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Sim object represented by the provided JSON
-
getSid
public final String getSid()
-
getUniqueName
public final String getUniqueName()
-
getAccountSid
public final String getAccountSid()
-
getIccid
public final String getIccid()
-
getStatus
public final Sim.Status getStatus()
-
getFleetSid
public final String getFleetSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-