« lib/Amazon/SQS/Model/DeleteMessageRequest.pm
↑ Summary
lib/Amazon/SQS/Model/ChangeMessageVisibilityBatchResultEntry.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::ChangeMessageVisibilityBatchResult; | ||
| 31 | |||
| 32 | use base qw (Amazon::SQS::Model); | ||
| 33 | |||
| 34 | # | ||
| 35 | # Amazon::SQS::Model::ChangeMessageVisibilityBatchResult | ||
| 36 | # | ||
| 37 | # Properties: | ||
| 38 | # | ||
| 39 | # ChangeMessageVisibilityBatchResultEntry => ["Amazon::SQS::Model::ChangeMessageVisibilityBatchResultEntry"] | ||
| 40 | |||
| 41 | sub new { | ||
| 42 | my ($class, $data) = @_; | ||
| 43 | my $self = {}; | ||
| 44 | |||
| 45 | $self->{_fields} = { | ||
| 46 | ChangeMessageVisibilityBatchResultEntry => { | ||
| 47 | FieldValue => [], | ||
| 48 | FieldType => ["Amazon::SQS::Model::ChangeMessageVisibilityBatchResultEntry"]}, | ||
| 49 | }; | ||
| 50 | |||
| 51 | bless ($self, $class); | ||
| 52 | if (defined $data) { | ||
| 53 | $self->_fromHashRef($data); | ||
| 54 | } | ||
| 55 | |||
| 56 | return $self; | ||
| 57 | } | ||
| 58 | |||
| 59 | sub getChangeMessageVisibilityBatchResultEntry { | ||
| 60 | return shift->{_fields}->{ChangeMessageVisibilityBatchResultEntry}->{FieldValue}; | ||
| 61 | } | ||
| 62 | |||
| 63 | sub setChangeMessageVisibilityBatchResultEntry { | ||
| 64 | my $self = shift; | ||
| 65 | foreach my $message (@_) { | ||
| 66 | if (not $self->_isArrayRef($message)) { | ||
| 67 | $message = [$message]; | ||
| 68 | } | ||
| 69 | $self->{_fields}->{ChangeMessageVisibilityBatchResultEntry}->{FieldValue} = $message; | ||
| 70 | } | ||
| 71 | } | ||
| 72 | |||
| 73 | sub withChangeMessageVisibilityBatchResultEntry { | ||
| 74 | my ($self, $messageArgs) = @_; | ||
| 75 | foreach my $message (@$messageArgs) { | ||
| 76 | $self->{_fields}->{ChangeMessageVisibilityBatchResultEntry}->{FieldValue} = $message; | ||
| 77 | } | ||
| 78 | return $self; | ||
| 79 | } | ||
| 80 | |||
| 81 | sub isSetChangeMessageVisibilityBatchResultEntry { | ||
| 82 | return scalar (@{shift->{_fields}->{ChangeMessageVisibilityBatchResultEntry}->{FieldValue}}) > 0; | ||
| 83 | } | ||
| 84 | |||
| 85 | 1; |