1
package Amazon::SQS::Simple::Message;
6
use Amazon::SQS::Simple::Base; # for constants
11
my $version = shift || +SQS_VERSION_2008_01_01;
12
$msg->{Version} = $version;
13
return bless ($msg, $class);
18
if ($self->{Version} eq +SQS_VERSION_2007_05_01) {
19
return $self->{MessageBody};
28
return $self->{MD5OfBody};
33
return $self->{MessageId};
38
return $self->{ReceiptHandle};
47
Amazon::SQS::Simple::Message - OO API for representing messages from
48
the Amazon Simple Queue Service.
52
Don't instantiate this class directly. Objects of this class are returned
53
by various methods in C<Amazon::SQS::Simple::Queue>.
54
See L<Amazon::SQS::Simple::Queue> for more details.
60
=item B<MessageBody()>
66
Get the message unique identifier
70
Get the MD5 checksum of the message body
72
=item B<ReceiptHandle()>
74
Get the receipt handle for the message (used as an argument to DeleteMessage)
80
Copyright 2007-2008 Simon Whitaker E<lt>swhitaker@cpan.orgE<gt>
82
This program is free software; you can redistribute it and/or modify it
83
under the same terms as Perl itself.