public class Usage extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static UsageFetcher |
fetch(String deviceSid)
Create a UsageFetcher to execute fetch.
|
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()
Returns The The account_sid.
|
Map<String,Object> |
getCommandsCosts()
Returns The The commands_costs.
|
Map<String,Object> |
getCommandsUsage()
Returns The The commands_usage.
|
Map<String,Object> |
getDataCosts()
Returns The The data_costs.
|
Map<String,Object> |
getDataUsage()
Returns The The data_usage.
|
String |
getDeviceAlias()
Returns The The device_alias.
|
String |
getDeviceSid()
Returns The The device_sid.
|
Map<String,Object> |
getPeriod()
Returns The The period.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
String |
toString() |
public static UsageFetcher fetch(String deviceSid)
deviceSid
- The device_sidpublic static Usage fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Usage fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getDeviceSid()
public final String getDeviceAlias()
public final String getAccountSid()
public final Map<String,Object> getCommandsUsage()
public final Map<String,Object> getCommandsCosts()
public final Map<String,Object> getDataUsage()
public final Map<String,Object> getDataCosts()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.