Class UsageRecord

    • Method Detail

      • reader

        public static UsageRecordReader reader()
        Create a UsageRecordReader to execute read.
        Returns:
        UsageRecordReader capable of executing the read
      • 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 String
        objectMapper - 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 InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        UsageRecord object represented by the provided JSON
      • getAccountSid

        public final String getAccountSid()
        Returns The The SID of the Account that created the resource.
        Returns:
        The SID of the Account that created the resource
      • getPeriod

        public final Map<String,​Object> getPeriod()
        Returns The The time period for which usage is reported.
        Returns:
        The time period for which usage is reported
      • getCommands

        public final Map<String,​Object> getCommands()
        Returns The An object that describes the aggregated Commands usage for all SIMs during the specified period.
        Returns:
        An object that describes the aggregated Commands usage for all SIMs during the specified period
      • getData

        public final Map<String,​Object> getData()
        Returns The An object that describes the aggregated Data usage for all SIMs over the period.
        Returns:
        An object that describes the aggregated Data usage for all SIMs over the period
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object