Package com.twilio.rest.wireless.v1
Class UsageRecord
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.wireless.v1.UsageRecord
-
- All Implemented Interfaces:
Serializable
public class UsageRecord extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsageRecord.Granularity
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static UsageRecord
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UsageRecord object using the provided ObjectMapper.static UsageRecord
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UsageRecord object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.Map<String,Object>
getCommands()
Returns The An object that describes the aggregated Commands usage for all SIMs during the specified period.Map<String,Object>
getData()
Returns The An object that describes the aggregated Data usage for all SIMs over the period.Map<String,Object>
getPeriod()
Returns The The time period for which usage is reported.int
hashCode()
static UsageRecordReader
reader()
Create a UsageRecordReader to execute read.String
toString()
-
-
-
Method Detail
-
reader
public static UsageRecordReader reader()
Create a UsageRecordReader to execute read.- Returns:
- UsageRecordReader capable of executing the read
-
fromJson
public static UsageRecord fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UsageRecord object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- UsageRecord object represented by the provided JSON
-
fromJson
public static UsageRecord fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UsageRecord object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- UsageRecord object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getPeriod
public final Map<String,Object> getPeriod()
Returns The The time period for which usage is reported.- Returns:
- The time period for which usage is reported
-
getCommands
public final Map<String,Object> getCommands()
Returns The An object that describes the aggregated Commands usage for all SIMs during the specified period.- Returns:
- An object that describes the aggregated Commands usage for all SIMs during the specified period
-
getData
public final Map<String,Object> getData()
Returns The An object that describes the aggregated Data usage for all SIMs over the period.- Returns:
- An object that describes the aggregated Data usage for all SIMs over the period
-
-