public class UsageRecord extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
UsageRecord.Granularity |
static class |
UsageRecord.Group |
static class |
UsageRecord.SortBy |
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 incurred the usage..
|
Long |
getDataDownload()
Returns Total data downloaded in bytes, aggregated by the query parameters..
|
Long |
getDataTotal()
Returns Total of data_upload and data_download..
|
Long |
getDataUpload()
Returns Total data uploaded in bytes, aggregated by the query parameters..
|
String |
getFleetSid()
Returns SID of the Fleet resource on which the usage occurred..
|
String |
getIsoCountry()
Returns Alpha-2 ISO Country Code of the country the usage occurred in..
|
String |
getNetworkSid()
Returns SID of the Network resource on which the usage occurred..
|
Map<String,Object> |
getPeriod()
Returns The time period for which the usage is reported..
|
String |
getSimSid()
Returns SID of a Sim resource to which the UsageRecord belongs..
|
int |
hashCode() |
static UsageRecordReader |
reader()
Create a UsageRecordReader to execute read.
|
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 String getSimSid()
public final String getNetworkSid()
public final String getFleetSid()
public final String getIsoCountry()
public final Map<String,Object> getPeriod()
public final Long getDataUpload()
public final Long getDataDownload()
public final Long getDataTotal()
Copyright © 2019 Twilio, Inc. All Rights Reserved.