public class Record extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Record.Category |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Record |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Record object using the provided
ObjectMapper.
|
static Record |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Record object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The Account that accrued the usage.
|
String |
getApiVersion()
Returns The The api_version.
|
Record.Category |
getCategory()
Returns The The category of usage.
|
String |
getCount()
Returns The The number of usage events (e.g.
|
String |
getCountUnit()
Returns The The unit in which `Count` is measured.
|
String |
getDescription()
Returns The A human-readable description of the usage category..
|
org.joda.time.LocalDate |
getEndDate()
Returns The The last date usage is included in this record.
|
BigDecimal |
getPrice()
Returns The The total price of the usage.
|
Currency |
getPriceUnit()
Returns The The currency in which `Price` is measured.
|
org.joda.time.LocalDate |
getStartDate()
Returns The The first date usage is included in this record.
|
Map<String,String> |
getSubresourceUris()
Returns The Subresources Uris for this UsageRecord.
|
String |
getUri()
Returns The The URI for this resource.
|
String |
getUsage()
Returns The The amount of usage.
|
String |
getUsageUnit()
Returns The The units in which `Usage` is measured.
|
int |
hashCode() |
static RecordReader |
reader()
Create a RecordReader to execute read.
|
static RecordReader |
reader(String pathAccountSid)
Create a RecordReader to execute read.
|
String |
toString() |
public static RecordReader reader(String pathAccountSid)
pathAccountSid
- The account_sidpublic static RecordReader reader()
public static Record fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Record fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final Record.Category getCategory()
public final String getCount()
public final String getCountUnit()
public final String getDescription()
public final org.joda.time.LocalDate getEndDate()
public final BigDecimal getPrice()
public final Currency getPriceUnit()
public final org.joda.time.LocalDate getStartDate()
public final Map<String,String> getSubresourceUris()
public final String getUri()
public final String getUsage()
public final String getUsageUnit()
Copyright © 2016 Twilio, Inc. All Rights Reserved.