File Coverage

blib/lib/Net/Amazon/EC2/ReservationInfo.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::EC2::ReservationInfo;
2 2     2   1458 use Moose;
  2         3  
  2         13  
3              
4             =head1 NAME
5              
6             Net::Amazon::EC2::ReservationInfo
7              
8             =head1 DESCRIPTION
9              
10             A class representing a run instance reservation.
11              
12             =head1 ATTRIBUTES
13              
14             =over
15              
16             =item reservation_id (required)
17              
18             Unique ID attached to the reservation.
19              
20             =item owner_id (required)
21              
22             AWS Account id of the person making the reservation.
23              
24             =item group_set
25              
26             An array ref of Net::Amazon::EC2::GroupSet objects.
27              
28             =item instances_set (required)
29              
30             An array ref of Net::Amazon::EC2::RunningInstances objects.
31              
32             =item requesterId (optional)
33              
34             ID of the requester.
35              
36             =cut
37              
38             has 'reservation_id' => ( is => 'ro', isa => 'Str', required => 1 );
39             has 'owner_id' => ( is => 'ro', isa => 'Str', required => 1 );
40             has 'group_set' => (
41             is => 'ro',
42             isa => 'ArrayRef[Net::Amazon::EC2::GroupSet]',
43             required => 1,
44             auto_deref => 1,
45             );
46             has 'instances_set' => (
47             is => 'ro',
48             isa => 'ArrayRef[Net::Amazon::EC2::RunningInstances]',
49             required => 1,
50             auto_deref => 1,
51             );
52             has 'requester_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
53              
54             __PACKAGE__->meta->make_immutable();
55              
56             =back
57              
58             =head1 AUTHOR
59              
60             Jeff Kim <cpan@chosec.com>
61              
62             =head1 COPYRIGHT
63              
64             Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
65             under the same terms as Perl itself.
66              
67             =cut
68              
69 2     2   10437 no Moose;
  2         4  
  2         8  
70             1;