File Coverage

blib/lib/Paws/MarketplaceMetering/UsageRecord.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::MarketplaceMetering::UsageRecord;
2 1     1   555 use Moose;
  1         2  
  1         11  
3             has CustomerIdentifier => (is => 'ro', isa => 'Str', required => 1);
4             has Dimension => (is => 'ro', isa => 'Str', required => 1);
5             has Quantity => (is => 'ro', isa => 'Int', required => 1);
6             has Timestamp => (is => 'ro', isa => 'Str', required => 1);
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::MarketplaceMetering::UsageRecord
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::MarketplaceMetering::UsageRecord object:
25              
26             $service_obj->Method(Att1 => { CustomerIdentifier => $value, ..., Timestamp => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::MarketplaceMetering::UsageRecord object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->CustomerIdentifier
34              
35             =head1 DESCRIPTION
36              
37             A UsageRecord indicates a quantity of usage for a given product,
38             customer, dimension and time.
39              
40             Multiple requests with the same UsageRecords as input will be
41             deduplicated to prevent double charges.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 B<REQUIRED> CustomerIdentifier => Str
47              
48             The CustomerIdentifier is obtained through the ResolveCustomer
49             operation and represents an individual buyer in your application.
50              
51              
52             =head2 B<REQUIRED> Dimension => Str
53              
54             During the process of registering a product on AWS Marketplace, up to
55             eight dimensions are specified. These represent different units of
56             value in your application.
57              
58              
59             =head2 B<REQUIRED> Quantity => Int
60              
61             The quantity of usage consumed by the customer for the given dimension
62             and time.
63              
64              
65             =head2 B<REQUIRED> Timestamp => Str
66              
67             Timestamp of the hour, recorded in UTC. The seconds and milliseconds
68             portions of the timestamp will be ignored.
69              
70             Your application can meter usage for up to one hour in the past.
71              
72              
73              
74             =head1 SEE ALSO
75              
76             This class forms part of L<Paws>, describing an object used in L<Paws::MarketplaceMetering>
77              
78             =head1 BUGS and CONTRIBUTIONS
79              
80             The source code is located here: https://github.com/pplu/aws-sdk-perl
81              
82             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
83              
84             =cut
85