Class Usage
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.wireless.sim.Usage
-
- All Implemented Interfaces:
Serializable
public class Usage extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UsageFetcherfetcher(String pathSimSid)static UsagefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Usage object using the provided ObjectMapper.static UsagefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Usage object using the provided ObjectMapper.StringgetAccountSid()Map<String,Object>getCommandsCosts()Map<String,Object>getCommandsUsage()Map<String,Object>getDataCosts()Map<String,Object>getDataUsage()Map<String,Object>getPeriod()StringgetSimSid()StringgetSimUniqueName()URIgetUrl()inthashCode()
-
-
-
Method Detail
-
fetcher
public static UsageFetcher fetcher(String pathSimSid)
-
fromJson
public static Usage fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Usage object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Usage object represented by the provided JSON
-
fromJson
public static Usage fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Usage object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Usage object represented by the provided JSON
-
getSimSid
public final String getSimSid()
-
getSimUniqueName
public final String getSimUniqueName()
-
getAccountSid
public final String getAccountSid()
-
getUrl
public final URI getUrl()
-
-