Class LastMonth
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.usage.record.LastMonth
-
- All Implemented Interfaces:
Serializable
public class LastMonth extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLastMonth.Category
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static LastMonthfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a LastMonth object using the provided ObjectMapper.static LastMonthfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a LastMonth object using the provided ObjectMapper.StringgetAccountSid()StringgetApiVersion()StringgetAsOf()LastMonth.CategorygetCategory()StringgetCount()StringgetCountUnit()StringgetDescription()LocalDategetEndDate()BigDecimalgetPrice()CurrencygetPriceUnit()LocalDategetStartDate()Map<String,String>getSubresourceUris()StringgetUri()StringgetUsage()StringgetUsageUnit()inthashCode()static LastMonthReaderreader()static LastMonthReaderreader(String pathAccountSid)
-
-
-
Method Detail
-
reader
public static LastMonthReader reader()
-
reader
public static LastMonthReader reader(String pathAccountSid)
-
fromJson
public static LastMonth fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a LastMonth object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- LastMonth object represented by the provided JSON
-
fromJson
public static LastMonth fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a LastMonth object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- LastMonth object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getApiVersion
public final String getApiVersion()
-
getAsOf
public final String getAsOf()
-
getCategory
public final LastMonth.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()
-
-