lib/Amazon/SQS/Model/ReceiveMessageRequest.pm

filter: Statementstmt 19.7% 16 / 81 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 12.5% 4 / 32 Podpod 0.0% 0 / 29 totaltotal 14.5% 21 / 144 CC 2 SCAR 6.5
CC
2
Cov
20%
new
2.0
getWaitTimeSeconds
2.0
setWaitTimeSeconds
2.0
CRAP 1.9
« lib/Amazon/SQS/Model/Error.pm ↑ Summary lib/Amazon/SQS/Constants.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 file 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 package Amazon::SQS::Model::ReceiveMessageRequest;
29  
30 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 2 ▶use parent qw (Amazon::SQS::Model);
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 #
36 # Amazon::SQS::Model::ReceiveMessageRequest
37 #
38 # Properties:
39 #
40 #
41 # QueueUrl: string
42 # MaxNumberOfMessages: int
43 # WaitTimeSeconds: int
44 # VisibilityTimeout: int
45 # AttributeName: string
46 # MessageAttributeName: ["string"]
47 # ReceiveRequestAttemptId: "string"
48 #
49 #
50  
51 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.0
Pod undocumented
52 1 my ( $class, $data ) = @_;
53  
54 1 my %fields = (
55 _fields => {
56 QueueUrl => { FieldValue => undef, FieldType => 'string' },
57 MaxNumberOfMessages => { FieldValue => undef, FieldType => 'int' },
58 WaitTimeSeconds => { FieldValue => undef, FieldType => 'int' },
59 VisibilityTimeout => { FieldValue => undef, FieldType => 'int' },
60 AttributeName => { FieldValue => [], FieldType => ['string'] },
61 MessageAttributeName => { FieldValue => [], FieldType => ['string'] },
62 ReceiveRequestAttemptId => { FieldValue => undef, FieldType => 'string' },
63 }
64 );
65  
66 1 my $self = bless \%fields, $class;
67  
68 1 ▶ if ( defined $data ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $data) 1 0 1
69 1 $self->_fromHashRef($data);
70 }
71  
72 1 return $self;
73 }
74  
75 0 ▶sub getWaitTimeSeconds {
Subroutine getWaitTimeSeconds: not called CC=1 SCAR=6.9
Pod undocumented
76 0 my ($self) = @_;
77  
78 0 return $self->{_fields}->{WaitTimeSeconds}->{FieldValue};
79 }
80  
81 0 ▶sub setWaitTimeSeconds {
Subroutine setWaitTimeSeconds: not called CC=1 SCAR=6.9
Pod undocumented
82 0 my ( $self, $value ) = @_;
83  
84 0 $self->{_fields}->{WaitTimeSeconds}->{FieldValue} = $value;
85 0 return $self;
86 }
87  
88 0 ▶sub withWaitTimeSeconds {
Subroutine withWaitTimeSeconds: not called CC=1 SCAR=6.9
Pod undocumented
89 0 my ( $self, $value ) = @_;
90 0 $self->setWaitTimeSeconds($value);
91 0 return $self;
92 }
93  
94 0 ▶sub isSetWaitTimeSeconds {
Subroutine isSetWaitTimeSeconds: not called CC=1 SCAR=6.9
Pod undocumented
95 0 return defined( shift->{_fields}->{WaitTimeSeconds}->{FieldValue} );
96 }
97  
98 0 ▶sub getQueueUrl {
Subroutine getQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
99 0 return shift->{_fields}->{QueueUrl}->{FieldValue};
100 }
101  
102 0 ▶sub setQueueUrl {
Subroutine setQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
103 0 my ( $self, $value ) = @_;
104  
105 0 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
106 0 return $self;
107 }
108  
109 0 ▶sub withQueueUrl {
Subroutine withQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
110 0 my ( $self, $value ) = @_;
111 0 $self->setQueueUrl($value);
112 0 return $self;
113 }
114  
115 0 ▶sub isSetQueueUrl {
Subroutine isSetQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
116 0 return defined( shift->{_fields}->{QueueUrl}->{FieldValue} );
117 }
118  
119 0 ▶sub getReceiveRequestAttemptId {
Subroutine getReceiveRequestAttemptId: not called CC=1 SCAR=6.9
Pod undocumented
120 0 return shift->{_fields}->{ReceiveRequestAttemptId}->{FieldValue};
121 }
122  
123 0 ▶sub setReceiveRequestAttemptId {
Subroutine setReceiveRequestAttemptId: not called CC=1 SCAR=6.9
Pod undocumented
124 0 my ( $self, $value ) = @_;
125  
126 0 $self->{_fields}->{ReceiveRequestAttemptId}->{FieldValue} = $value;
127 0 return $self;
128 }
129  
130 0 ▶sub withReceiveRequestAttemptId {
Subroutine withReceiveRequestAttemptId: not called CC=1 SCAR=6.9
Pod undocumented
131 0 my ( $self, $value ) = @_;
132 0 $self->setReceiveRequestAttemptId($value);
133 0 return $self;
134 }
135  
136 0 ▶sub isSetReceiveRequestAttemptId {
Subroutine isSetReceiveRequestAttemptId: not called CC=1 SCAR=6.9
Pod undocumented
137 0 return defined( shift->{_fields}->{ReceiveRequestAttemptId}->{FieldValue} );
138 }
139  
140 0 ▶sub getMaxNumberOfMessages {
Subroutine getMaxNumberOfMessages: not called CC=1 SCAR=6.9
Pod undocumented
141 0 return shift->{_fields}->{MaxNumberOfMessages}->{FieldValue};
142 }
143  
144 0 ▶sub setMaxNumberOfMessages {
Subroutine setMaxNumberOfMessages: not called CC=1 SCAR=6.9
Pod undocumented
145 0 my ( $self, $value ) = @_;
146  
147 0 $self->{_fields}->{MaxNumberOfMessages}->{FieldValue} = $value;
148 0 return $self;
149 }
150  
151 0 ▶sub withMaxNumberOfMessages {
Subroutine withMaxNumberOfMessages: not called CC=1 SCAR=6.9
Pod undocumented
152 0 my ( $self, $value ) = @_;
153 0 $self->setMaxNumberOfMessages($value);
154 0 return $self;
155 }
156  
157 0 ▶sub isSetMaxNumberOfMessages {
Subroutine isSetMaxNumberOfMessages: not called CC=1 SCAR=6.9
Pod undocumented
158 0 return defined( shift->{_fields}->{MaxNumberOfMessages}->{FieldValue} );
159 }
160  
161 0 ▶sub getVisibilityTimeout {
Subroutine getVisibilityTimeout: not called CC=1 SCAR=6.9
Pod undocumented
162 0 return shift->{_fields}->{VisibilityTimeout}->{FieldValue};
163 }
164  
165 0 ▶sub setVisibilityTimeout {
Subroutine setVisibilityTimeout: not called CC=1 SCAR=6.9
Pod undocumented
166 0 my ( $self, $value ) = @_;
167  
168 0 $self->{_fields}->{VisibilityTimeout}->{FieldValue} = $value;
169 0 return $self;
170 }
171  
172 0 ▶sub withVisibilityTimeout {
Subroutine withVisibilityTimeout: not called CC=1 SCAR=6.9
Pod undocumented
173 0 my ( $self, $value ) = @_;
174 0 $self->setVisibilityTimeout($value);
175 0 return $self;
176 }
177  
178 0 ▶sub isSetVisibilityTimeout {
Subroutine isSetVisibilityTimeout: not called CC=1 SCAR=6.9
Pod undocumented
179 0 return defined( shift->{_fields}->{VisibilityTimeout}->{FieldValue} );
180 }
181  
182 0 ▶sub getAttributeName {
Subroutine getAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
183 0 return shift->{_fields}->{AttributeName}->{FieldValue};
184 }
185  
186 0 ▶sub setAttributeName {
Subroutine setAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
187 0 my ( $self, $value ) = @_;
188 0 $self->{_fields}->{AttributeName}->{FieldValue} = $value;
189 0 return $self;
190 }
191  
192 0 ▶sub withAttributeName {
Subroutine withAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
193 0 my ( $self, @attributes ) = @_;
194  
195 0 my $list = $self->{_fields}->{AttributeName}->{FieldValue};
196  
197 0 push @{$list}, @attributes;
198  
199 0 return $self;
200 }
201  
202 0 ▶sub isSetAttributeName {
Subroutine isSetAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
203 0 my ($self) = @_;
204  
205 0 return @{ $self->{_fields}->{AttributeName}->{FieldValue} } > 0;
206 }
207  
208 0 ▶sub getMessageAttributeName {
Subroutine getMessageAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
209 0 return shift->{_fields}->{MessageAttributeName}->{FieldValue};
210 }
211  
212 0 ▶sub setMessageAttributeName {
Subroutine setMessageAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
213 0 my ( $self, $value ) = @_;
214 0 $self->{_fields}->{MessageAttributeName}->{FieldValue} = $value;
215 0 return $self;
216 }
217  
218 0 ▶sub withMessageAttributeName {
Subroutine withMessageAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
219 0 my ( $self, @attributes ) = @_;
220  
221 0 my $list = $self->{_fields}->{MessageAttributeName}->{FieldValue};
222  
223 0 push @{$list}, @attributes;
224  
225 0 return $self;
226 }
227  
228 0 ▶sub isSetMessageAttributeName {
Subroutine isSetMessageAttributeName: not called CC=1 SCAR=6.9
Pod undocumented
229 0 my ($self) = @_;
230  
231 0 return @{ $self->{_fields}->{MessageAttributeName}->{FieldValue} } > 0;
232 }
233  
234 2 1;
235  
236 __END__
« lib/Amazon/SQS/Model/Error.pm ↑ Summary lib/Amazon/SQS/Constants.pm »