public class UsageRecord extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
UsageRecord.Granularity |
Modifier and Type | Method and 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 SID of the Account that created the resource.
|
Map<String,Object> |
getCommands()
Returns An object that describes the aggregated Commands usage for all SIMs
during the specified period.
|
Map<String,Object> |
getData()
Returns An object that describes the aggregated Data usage for all SIMs over
the period.
|
Map<String,Object> |
getPeriod()
Returns The time period for which usage is reported.
|
int |
hashCode() |
static UsageRecordReader |
reader()
Create a UsageRecordReader to execute read.
|
String |
toString() |
public static UsageRecordReader reader()
public static UsageRecord fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static UsageRecord fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final Map<String,Object> getPeriod()
public final Map<String,Object> getCommands()
public final Map<String,Object> getData()
Copyright © 2019 Twilio, Inc. All Rights Reserved.