File Coverage

blib/lib/Paws/MarketplaceMetering/UsageRecordResult.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::UsageRecordResult;
2 1     1   487 use Moose;
  1         4  
  1         9  
3             has MeteringRecordId => (is => 'ro', isa => 'Str');
4             has Status => (is => 'ro', isa => 'Str');
5             has UsageRecord => (is => 'ro', isa => 'Paws::MarketplaceMetering::UsageRecord');
6             1;
7              
8             ### main pod documentation begin ###
9              
10             =head1 NAME
11              
12             Paws::MarketplaceMetering::UsageRecordResult
13              
14             =head1 USAGE
15              
16             This class represents one of two things:
17              
18             =head3 Arguments in a call to a service
19              
20             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
21             Each attribute should be used as a named argument in the calls that expect this type of object.
22              
23             As an example, if Att1 is expected to be a Paws::MarketplaceMetering::UsageRecordResult object:
24              
25             $service_obj->Method(Att1 => { MeteringRecordId => $value, ..., UsageRecord => $value });
26              
27             =head3 Results returned from an API call
28              
29             Use accessors for each attribute. If Att1 is expected to be an Paws::MarketplaceMetering::UsageRecordResult object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->MeteringRecordId
33              
34             =head1 DESCRIPTION
35              
36             A UsageRecordResult indicates the status of a given UsageRecord
37             processed by BatchMeterUsage.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 MeteringRecordId => Str
43              
44             The MeteringRecordId is a unique identifier for this metering event.
45              
46              
47             =head2 Status => Str
48              
49             The UsageRecordResult Status indicates the status of an individual
50             UsageRecord processed by BatchMeterUsage.
51              
52             =over
53              
54             =item *
55              
56             I<Success>- The UsageRecord was accepted and honored by
57             BatchMeterUsage.
58              
59             =item *
60              
61             I<CustomerNotSubscribed>- The CustomerIdentifier specified is not
62             subscribed to your product. The UsageRecord was not honored. Future
63             UsageRecords for this customer will fail until the customer subscribes
64             to your product.
65              
66             =item *
67              
68             I<DuplicateRecord>- Indicates that the UsageRecord was invalid and not
69             honored. A previously metered UsageRecord had the same customer,
70             dimension, and time, but a different quantity.
71              
72             =back
73              
74              
75              
76             =head2 UsageRecord => L<Paws::MarketplaceMetering::UsageRecord>
77              
78             The UsageRecord that was part of the BatchMeterUsage request.
79              
80              
81              
82             =head1 SEE ALSO
83              
84             This class forms part of L<Paws>, describing an object used in L<Paws::MarketplaceMetering>
85              
86             =head1 BUGS and CONTRIBUTIONS
87              
88             The source code is located here: https://github.com/pplu/aws-sdk-perl
89              
90             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
91              
92             =cut
93