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