Package com.twilio.rest.supersim.v1
Class UsageRecord
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.supersim.v1.UsageRecord
-
- All Implemented Interfaces:
Serializable
public class UsageRecord extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsageRecord.Granularitystatic classUsageRecord.Group
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UsageRecordfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a UsageRecord object using the provided ObjectMapper.static UsageRecordfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a UsageRecord object using the provided ObjectMapper.StringgetAccountSid()CurrencygetBilledUnit()LonggetDataDownload()LonggetDataTotal()BigDecimalgetDataTotalBilled()LonggetDataUpload()StringgetFleetSid()StringgetIsoCountry()StringgetNetworkSid()Map<String,Object>getPeriod()StringgetSimSid()inthashCode()static UsageRecordReaderreader()
-
-
-
Method Detail
-
reader
public static UsageRecordReader reader()
-
fromJson
public static UsageRecord fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UsageRecord object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- UsageRecord object represented by the provided JSON
-
fromJson
public static UsageRecord fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UsageRecord object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- UsageRecord object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getSimSid
public final String getSimSid()
-
getNetworkSid
public final String getNetworkSid()
-
getFleetSid
public final String getFleetSid()
-
getIsoCountry
public final String getIsoCountry()
-
getDataUpload
public final Long getDataUpload()
-
getDataDownload
public final Long getDataDownload()
-
getDataTotal
public final Long getDataTotal()
-
getDataTotalBilled
public final BigDecimal getDataTotalBilled()
-
getBilledUnit
public final Currency getBilledUnit()
-
-