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 classSim.Statusstatic classSim.StatusUpdate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimCreatorcreator(String iccid, String registrationCode)booleanequals(Object o)static SimFetcherfetcher(String pathSid)static SimfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Sim object using the provided ObjectMapper.static SimfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Sim object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFleetSid()StringgetIccid()Map<String,String>getLinks()StringgetSid()Sim.StatusgetStatus()StringgetUniqueName()URIgetUrl()inthashCode()static SimReaderreader()static SimUpdaterupdater(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()
-
-