| 1 | package Net::Amazon::EC2::StateReason; | ||
| 2 | 2 | $Net::Amazon::EC2::StateReason::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::StateReason | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing additional information on the reason for the current state of the instance. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item code (required) | ||
| 18 | |||
| 19 | A code for the state change reason. | ||
| 20 | |||
| 21 | =item message (required) | ||
| 22 | |||
| 23 | A message providing additional information about the state. | ||
| 24 | |||
| 25 | =back | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | 2 | has 'code' => ( is => 'ro', isa => 'Maybe[Int|Str]' ); | |
| 30 | 2 | has 'message' => ( is => 'ro', isa => 'Maybe[Str]' ); | |
| 31 | |||
| 32 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Jeff Kim <cpan@chosec.com> | ||
| 37 | |||
| 38 | =head1 COPYRIGHT | ||
| 39 | |||
| 40 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 41 | under the same terms as Perl itself. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | 2 | 1; | |