lib/Amazon/SQS/Model/DeleteMessageBatchRequest.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 55 CC 3 SCAR 12.0
CC
3
Cov
0%
new
6.0
setDeleteMessageBatchRequestEntry
6.0
getQueueUrl
2.0
CRAP 3.3
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::DeleteMessageBatchRequest;
31  
32 use base qw (Amazon::SQS::Model);
33  
34 #
35 # Amazon::SQS::Model::DeleteMessageBatchRequest
36 #
37 # Properties:
38 #
39 #
40 # QueueUrl: string
41 # DeleteMessageBatchRequestEntry: Amazon::SQS::Model::DeleteMessageBatchRequestEntry
42 #
43 #
44 #
45 sub new {
46 my ($class, $data) = @_;
47 my $self = {};
48 $self->{_fields} = {
49 QueueUrl => { FieldValue => undef, FieldType => "string"},
50 DeleteMessageBatchRequestEntry => { FieldValue => [], FieldType => ["Amazon::SQS::Model::DeleteMessageBatchRequestEntry"]}
51 };
52
53 bless ($self, $class);
54 if (defined $data) {
55 $self->_fromHashRef($data);
56 }
57
58 return $self;
59 }
60
61  
62 sub getQueueUrl {
63 return shift->{_fields}->{QueueUrl}->{FieldValue};
64 }
65  
66  
67 sub setQueueUrl {
68 my ($self, $value) = @_;
69  
70 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
71 return $self;
72 }
73  
74  
75 sub withQueueUrl {
76 my ($self, $value) = @_;
77 $self->setQueueUrl($value);
78 return $self;
79 }
80  
81  
82 sub isSetQueueUrl {
83 return defined (shift->{_fields}->{QueueUrl}->{FieldValue});
84 }
85  
86 sub getDeleteMessageBatchRequestEntry {
87 return shift->{_fields}->{DeleteMessageBatchRequestEntry}->{FieldValue};
88 }
89  
90 sub setDeleteMessageBatchRequestEntry {
91 my $self = shift;
92 foreach my $attribute (@_) {
93 if (not $self->_isArrayRef($attribute)) {
94 $attribute = [$attribute];
95 }
96 $self->{_fields}->{DeleteMessageBatchRequestEntry}->{FieldValue} = $attribute;
97 }
98 }
99  
100  
101 sub withDeleteMessageBatchRequestEntry {
102 my ($self, $attributeArgs) = @_;
103 foreach my $attribute (@$attributeArgs) {
104 $self->{_fields}->{DeleteMessageBatchRequestEntry}->{FieldValue} = $attribute;
105 }
106 return $self;
107 }
108  
109  
110 sub isSetDeleteMessageBatchRequestEntry {
111 return scalar (@{shift->{_fields}->{DeleteMessageBatchRequestEntry}->{FieldValue}}) > 0;
112 }
113  
114  
115 1;