public class Today extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Today.Category |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Today |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Today object using the provided
ObjectMapper.
|
static Today |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Today object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account accrued the usage.
|
String |
getApiVersion()
Returns The API version used to create the resource.
|
String |
getAsOf()
Returns Usage records up to date as of this timestamp.
|
Today.Category |
getCategory()
Returns The category of usage.
|
String |
getCount()
Returns The number of usage events.
|
String |
getCountUnit()
Returns The units in which count is measured.
|
String |
getDescription()
Returns A plain-language description of the usage category.
|
LocalDate |
getEndDate()
Returns The last date for which usage is included in the UsageRecord.
|
BigDecimal |
getPrice()
Returns The total price of the usage.
|
Currency |
getPriceUnit()
Returns The currency in which `price` is measured.
|
LocalDate |
getStartDate()
Returns The first date for which usage is included in this UsageRecord.
|
Map<String,String> |
getSubresourceUris()
Returns A list of related resources identified by their relative URIs.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
String |
getUsage()
Returns The amount of usage.
|
String |
getUsageUnit()
Returns The units in which usage is measured.
|
int |
hashCode() |
static TodayReader |
reader()
Create a TodayReader to execute read.
|
static TodayReader |
reader(String pathAccountSid)
Create a TodayReader to execute read.
|
public static TodayReader reader(String pathAccountSid)
pathAccountSid
- The SID of the Account that created the resources to
readpublic static TodayReader reader()
public static Today fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Today fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final String getAsOf()
public final Today.Category getCategory()
public final String getCount()
public final String getCountUnit()
public final String getDescription()
public final LocalDate getEndDate()
public final BigDecimal getPrice()
public final Currency getPriceUnit()
public final LocalDate getStartDate()
public final Map<String,String> getSubresourceUris()
public final String getUri()
public final String getUsage()
public final String getUsageUnit()
Copyright © 2019 Twilio, Inc. All Rights Reserved.