| 1 | package VM::EC2::Spot::Status; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::Spot::Status - Object describing an Amazon EC2 spot instance status | ||
| 6 | message | ||
| 7 | |||
| 8 | =head1 SYNOPSIS | ||
| 9 | |||
| 10 | See L<VM::EC2/SPOT INSTANCES>, and L<VM::EC2::Spot::InstanceRequest>. | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | This object represents an Amazon EC2 spot instance status | ||
| 15 | message, which is returned by a VM::EC2::Spot::InstanceRequest | ||
| 16 | object's status() method. It provides information about | ||
| 17 | the spot instance request status. | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | These object methods are supported: | ||
| 22 | |||
| 23 | code -- the status code of the request. | ||
| 24 | updateTime -- the time the status was stated. | ||
| 25 | message -- the description for the status code for the Spot request. | ||
| 26 | |||
| 27 | =head1 SEE ALSO | ||
| 28 | |||
| 29 | L<VM::EC2> | ||
| 30 | L<VM::EC2::Generic> | ||
| 31 | L<VM::EC2::Spot::InstanceRequest> | ||
| 32 | L<VM::EC2::Error> | ||
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>. | ||
| 37 | |||
| 38 | Copyright (c) 2012 Loyalty Methods, Inc. | ||
| 39 | |||
| 40 | This package and its accompanying libraries is free software; you can | ||
| 41 | redistribute it and/or modify it under the terms of the GPL (either | ||
| 42 | version 1, or at your option, any later version) or the Artistic | ||
| 43 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||
| 44 | please see DISCLAIMER.txt for disclaimers of warranty. | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | use strict; | ||
| 49 | use VM::EC2::Group; | ||
| 50 | use base 'VM::EC2::Generic'; | ||
| 51 | |||
| 52 | sub valid_fields { | ||
| 53 | return qw(code updateTime message); | ||
| 54 | } | ||
| 55 | |||
| 56 | sub short_name { shift->code } | ||
| 57 | |||
| 58 | 1; |