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.
|
com.fasterxml.jackson.databind.JsonNode |
getCommandsCosts()
Returns The The commands_costs.
|
com.fasterxml.jackson.databind.JsonNode |
getCommandsUsage()
Returns The The commands_usage.
|
com.fasterxml.jackson.databind.JsonNode |
getDataCosts()
Returns The The data_costs.
|
com.fasterxml.jackson.databind.JsonNode |
getDataUsage()
Returns The The data_usage.
|
String |
getDeviceAlias()
Returns The The device_alias.
|
String |
getDeviceSid()
Returns The The device_sid.
|
com.fasterxml.jackson.databind.JsonNode |
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 com.fasterxml.jackson.databind.JsonNode getPeriod()
public final com.fasterxml.jackson.databind.JsonNode getCommandsUsage()
public final com.fasterxml.jackson.databind.JsonNode getCommandsCosts()
public final com.fasterxml.jackson.databind.JsonNode getDataUsage()
public final com.fasterxml.jackson.databind.JsonNode getDataCosts()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.