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 boolean
equals(Object o)
static UsageFetcher
fetcher(String pathSimSid)
static Usage
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Usage object using the provided ObjectMapper.static Usage
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Usage object using the provided ObjectMapper.String
getAccountSid()
Map<String,Object>
getCommandsCosts()
Map<String,Object>
getCommandsUsage()
Map<String,Object>
getDataCosts()
Map<String,Object>
getDataUsage()
Map<String,Object>
getPeriod()
String
getSimSid()
String
getSimUniqueName()
URI
getUrl()
int
hashCode()
-
-
-
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()
-
-