« lib/Amazon/SQS/Model/ChangeMessageVisibilityBatchResult.pm
↑ Summary
lib/Amazon/SQS/Model/DeleteMessageBatchResult.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 | # Copyright 2016 Robert C. Lauer | ||
| 12 | # | ||
| 13 | # Note: The software contained in this distribution has been modified from the | ||
| 14 | # original. You may freely use and distribute this software under the | ||
| 15 | # terms of the original license. | ||
| 16 | # | ||
| 17 | ################################################################################ | ||
| 18 | # __ _ _ ___ | ||
| 19 | # ( )( \/\/ )/ __) | ||
| 20 | # /__\ \ / \__ \ | ||
| 21 | # (_)(_) \/\/ (___/ | ||
| 22 | # | ||
| 23 | # Amazon SQS Perl Library | ||
| 24 | # API Version: 2009-02-01 | ||
| 25 | # Generated: Thu Apr 09 01:13:11 PDT 2009 | ||
| 26 | # | ||
| 27 | |||
| 28 | # This work has been modified from the original Copyright 2016 Robert C. Lauer | ||
| 29 | |||
| 30 | package Amazon::SQS::Model::ChangeMessageVisibilityBatchResultEntry; | ||
| 31 | |||
| 32 | use base qw (Amazon::SQS::Model); | ||
| 33 | |||
| 34 | # | ||
| 35 | # Amazon::SQS::Model::ChangeMessageVisibilityBatchResultEntry | ||
| 36 | # | ||
| 37 | # Properties: | ||
| 38 | # | ||
| 39 | # | ||
| 40 | # Id: "string" | ||
| 41 | # | ||
| 42 | |||
| 43 | sub new { | ||
| 44 | my ($class, $data) = @_; | ||
| 45 | my $self = {}; | ||
| 46 | $self->{_fields} = { | ||
| 47 | Id => {FieldValue => undef, FieldType => "string"} | ||
| 48 | }; | ||
| 49 | |||
| 50 | bless ($self, $class); | ||
| 51 | if (defined $data) { | ||
| 52 | $self->_fromHashRef($data); | ||
| 53 | } | ||
| 54 | |||
| 55 | return $self; | ||
| 56 | } | ||
| 57 | |||
| 58 | sub getId { | ||
| 59 | return shift->{_fields}->{Id}->{FieldValue}; | ||
| 60 | } | ||
| 61 | |||
| 62 | sub setId { | ||
| 63 | my $self = shift; | ||
| 64 | foreach my $message (@_) { | ||
| 65 | if (not $self->_isArrayRef($message)) { | ||
| 66 | $message = [$message]; | ||
| 67 | } | ||
| 68 | $self->{_fields}->{Id}->{FieldValue} = $message; | ||
| 69 | } | ||
| 70 | } | ||
| 71 | |||
| 72 | sub withId { | ||
| 73 | my ($self, $messageArgs) = @_; | ||
| 74 | foreach my $message (@$messageArgs) { | ||
| 75 | $self->{_fields}->{Id}->{FieldValue} = $message; | ||
| 76 | } | ||
| 77 | return $self; | ||
| 78 | } | ||
| 79 | |||
| 80 | sub isSetId { | ||
| 81 | return scalar (@{shift->{_fields}->{Id}->{FieldValue}}) > 0; | ||
| 82 | } | ||
| 83 | |||
| 84 | 1; |