UsageRecord class
A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time.
Multiple requests with the same UsageRecords as input will be deduplicated to prevent double charges.
Constructors
-
UsageRecord({required String customerIdentifier, required String dimension, required DateTime timestamp, int? quantity, List<
UsageAllocation> ? usageAllocations}) -
UsageRecord.fromJson(Map<
String, dynamic> json) -
factory
Properties
- customerIdentifier → String
-
The CustomerIdentifier is obtained through the ResolveCustomer operation and
represents an individual buyer in your application.
final
- dimension → String
-
During the process of registering a product on AWS Marketplace, up to eight
dimensions are specified. These represent different units of value in your
application.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- quantity → int?
-
The quantity of usage consumed by the customer for the given dimension and
time. Defaults to
0
if not specified.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp, in UTC, for which the usage is being reported.
final
-
usageAllocations
→ List<
UsageAllocation> ? -
The set of UsageAllocations to submit. The sum of all UsageAllocation
quantities must equal the Quantity of the UsageRecord.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited