| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Amazon::SQS::Simple::Message; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 11 | use strict; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 63 |  | 
| 4 | 2 |  |  | 2 |  | 8 | use warnings; | 
|  | 2 |  |  |  |  | 8 |  | 
|  | 2 |  |  |  |  | 61 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 2 |  |  | 2 |  | 9 | use Amazon::SQS::Simple::Base; # for constants | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 403 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | sub new { | 
| 9 | 0 |  |  | 0 | 0 |  | my $class = shift; | 
| 10 | 0 |  |  |  |  |  | my $msg = shift; | 
| 11 | 0 |  | 0 |  |  |  | my $version = shift || $Amazon::SQS::Simple::Base::DEFAULT_SQS_VERSION; | 
| 12 | 0 |  |  |  |  |  | $msg->{Version} = $version; | 
| 13 | 0 |  |  |  |  |  | return bless ($msg, $class); | 
| 14 |  |  |  |  |  |  | } | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | sub MessageBody { | 
| 17 | 0 |  |  | 0 | 1 |  | my $self = shift; | 
| 18 | 0 |  |  |  |  |  | return $self->{Body}; | 
| 19 |  |  |  |  |  |  | } | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | sub MD5OfBody { | 
| 22 | 0 |  |  | 0 | 1 |  | my $self = shift; | 
| 23 | 0 |  |  |  |  |  | return $self->{MD5OfBody}; | 
| 24 |  |  |  |  |  |  | } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | sub MessageId { | 
| 27 | 0 |  |  | 0 | 1 |  | my $self = shift; | 
| 28 | 0 |  |  |  |  |  | return $self->{MessageId}; | 
| 29 |  |  |  |  |  |  | } | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | sub ReceiptHandle { | 
| 32 | 0 |  |  | 0 | 1 |  | my $self = shift; | 
| 33 | 0 |  |  |  |  |  | return $self->{ReceiptHandle}; | 
| 34 |  |  |  |  |  |  | } | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | 1; | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | __END__ | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | =head1 NAME | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | Amazon::SQS::Simple::Message - OO API for representing messages from | 
| 43 |  |  |  |  |  |  | the Amazon Simple Queue Service. | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | =head1 INTRODUCTION | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | Don't instantiate this class directly. Objects of this class are returned | 
| 48 |  |  |  |  |  |  | by various methods in C<Amazon::SQS::Simple::Queue>. | 
| 49 |  |  |  |  |  |  | See L<Amazon::SQS::Simple::Queue> for more details. | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | =head1 METHODS | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | =over 2 | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =item B<MessageBody()> | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | Get the message body. | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =item B<MessageId()> | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | Get the message unique identifier | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =item B<MD5OfBody()> | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | Get the MD5 checksum of the message body | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =item B<ReceiptHandle()> | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | Get the receipt handle for the message (used as an argument to DeleteMessage) | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =back | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =head1 AUTHOR | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | Copyright 2007-2008 Simon Whitaker E<lt>swhitaker@cpan.orgE<gt> | 
| 76 |  |  |  |  |  |  | Copyright 2013-2017 Mike (no relation) Whitaker E<lt>penfold@cpan.orgE<gt> | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | This program is free software; you can redistribute it and/or modify it | 
| 79 |  |  |  |  |  |  | under the same terms as Perl itself. | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =cut |