Class Yesterday
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.usage.record.Yesterday
-
- All Implemented Interfaces:
Serializable
public class Yesterday extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYesterday.Category
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static YesterdayfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Yesterday object using the provided ObjectMapper.static YesterdayfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Yesterday object using the provided ObjectMapper.StringgetAccountSid()StringgetApiVersion()StringgetAsOf()Yesterday.CategorygetCategory()StringgetCount()StringgetCountUnit()StringgetDescription()LocalDategetEndDate()BigDecimalgetPrice()CurrencygetPriceUnit()LocalDategetStartDate()Map<String,String>getSubresourceUris()StringgetUri()StringgetUsage()StringgetUsageUnit()inthashCode()static YesterdayReaderreader()static YesterdayReaderreader(String pathAccountSid)
-
-
-
Method Detail
-
reader
public static YesterdayReader reader()
-
reader
public static YesterdayReader reader(String pathAccountSid)
-
fromJson
public static Yesterday fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Yesterday object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Yesterday object represented by the provided JSON
-
fromJson
public static Yesterday fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Yesterday object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Yesterday object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getApiVersion
public final String getApiVersion()
-
getAsOf
public final String getAsOf()
-
getCategory
public final Yesterday.Category getCategory()
-
getCount
public final String getCount()
-
getCountUnit
public final String getCountUnit()
-
getDescription
public final String getDescription()
-
getEndDate
public final LocalDate getEndDate()
-
getPrice
public final BigDecimal getPrice()
-
getPriceUnit
public final Currency getPriceUnit()
-
getStartDate
public final LocalDate getStartDate()
-
getUri
public final String getUri()
-
getUsage
public final String getUsage()
-
getUsageUnit
public final String getUsageUnit()
-
-