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 class
UsageRecord.Granularity
static class
UsageRecord.Group
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static UsageRecord
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UsageRecord object using the provided ObjectMapper.static UsageRecord
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UsageRecord object using the provided ObjectMapper.String
getAccountSid()
Currency
getBilledUnit()
Long
getDataDownload()
Long
getDataTotal()
BigDecimal
getDataTotalBilled()
Long
getDataUpload()
String
getFleetSid()
String
getIsoCountry()
String
getNetworkSid()
Map<String,Object>
getPeriod()
String
getSimSid()
int
hashCode()
static UsageRecordReader
reader()
-
-
-
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()
-
-