« lib/Amazon/SQS/Model/RemovePermissionRequest.pm
↑ Summary
lib/Amazon/SQS/Model/CreateQueueResponse.pm »
| 1 | ################################################################################ | ||
| 2 | # Copyright 2008 Amazon Technologies, Inc. | ||
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | # | ||
| 5 | # You may not use this file except in compliance with the License. | ||
| 6 | # You may obtain a copy of the License at: http://aws.amazon.com/apache2.0 | ||
| 7 | # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
| 8 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
| 9 | # specific language governing permissions and limitations under the License. | ||
| 10 | ################################################################################ | ||
| 11 | # __ _ _ ___ | ||
| 12 | # ( )( \/\/ )/ __) | ||
| 13 | # /__\ \ / \__ \ | ||
| 14 | # (_)(_) \/\/ (___/ | ||
| 15 | # | ||
| 16 | # Amazon SQS Perl Library | ||
| 17 | # API Version: 2009-02-01 | ||
| 18 | # Generated: Thu Apr 09 01:13:11 PDT 2009 | ||
| 19 | # | ||
| 20 | |||
| 21 | |||
| 22 | package Amazon::SQS::Model::SendMessageResult; | ||
| 23 | |||
| 24 | use base qw (Amazon::SQS::Model); | ||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | # | ||
| 29 | # Amazon::SQS::Model::SendMessageResult | ||
| 30 | # | ||
| 31 | # Properties: | ||
| 32 | # | ||
| 33 | # | ||
| 34 | # MessageId: string | ||
| 35 | # MD5OfMessageBody: string | ||
| 36 | # | ||
| 37 | # | ||
| 38 | # | ||
| 39 | sub new { | ||
| 40 | my ($class, $data) = @_; | ||
| 41 | my $self = {}; | ||
| 42 | $self->{_fields} = { | ||
| 43 | |||
| 44 | MessageId => { FieldValue => undef, FieldType => "string"}, | ||
| 45 | MD5OfMessageBody => { FieldValue => undef, FieldType => "string"}, | ||
| 46 | }; | ||
| 47 | |||
| 48 | bless ($self, $class); | ||
| 49 | if (defined $data) { | ||
| 50 | $self->_fromHashRef($data); | ||
| 51 | } | ||
| 52 | |||
| 53 | return $self; | ||
| 54 | } | ||
| 55 | |||
| 56 | |||
| 57 | sub getMessageId { | ||
| 58 | return shift->{_fields}->{MessageId}->{FieldValue}; | ||
| 59 | } | ||
| 60 | |||
| 61 | |||
| 62 | sub setMessageId { | ||
| 63 | my ($self, $value) = @_; | ||
| 64 | |||
| 65 | $self->{_fields}->{MessageId}->{FieldValue} = $value; | ||
| 66 | return $self; | ||
| 67 | } | ||
| 68 | |||
| 69 | |||
| 70 | sub withMessageId { | ||
| 71 | my ($self, $value) = @_; | ||
| 72 | $self->setMessageId($value); | ||
| 73 | return $self; | ||
| 74 | } | ||
| 75 | |||
| 76 | |||
| 77 | sub isSetMessageId { | ||
| 78 | return defined (shift->{_fields}->{MessageId}->{FieldValue}); | ||
| 79 | } | ||
| 80 | |||
| 81 | |||
| 82 | sub getMD5OfMessageBody { | ||
| 83 | return shift->{_fields}->{MD5OfMessageBody}->{FieldValue}; | ||
| 84 | } | ||
| 85 | |||
| 86 | |||
| 87 | sub setMD5OfMessageBody { | ||
| 88 | my ($self, $value) = @_; | ||
| 89 | |||
| 90 | $self->{_fields}->{MD5OfMessageBody}->{FieldValue} = $value; | ||
| 91 | return $self; | ||
| 92 | } | ||
| 93 | |||
| 94 | |||
| 95 | sub withMD5OfMessageBody { | ||
| 96 | my ($self, $value) = @_; | ||
| 97 | $self->setMD5OfMessageBody($value); | ||
| 98 | return $self; | ||
| 99 | } | ||
| 100 | |||
| 101 | |||
| 102 | sub isSetMD5OfMessageBody { | ||
| 103 | return defined (shift->{_fields}->{MD5OfMessageBody}->{FieldValue}); | ||
| 104 | } | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | 1; |