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

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 35 CC 2 SCAR 11.5
CC
2
Cov
0%
new
6.0
getQueueUrl
2.0
setQueueUrl
2.0
CRAP 3.1
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::ListQueuesResult;
23  
24 use base qw (Amazon::SQS::Model);
25  
26
27  
28 #
29 # Amazon::SQS::Model::ListQueuesResult
30 #
31 # Properties:
32 #
33 #
34 # QueueUrl: string
35 #
36 #
37 #
38 sub new {
39 my ($class, $data) = @_;
40 my $self = {};
41 $self->{_fields} = {
42
43 QueueUrl => {FieldValue => [], FieldType => ["string"]},
44 };
45  
46 bless ($self, $class);
47 if (defined $data) {
48 $self->_fromHashRef($data);
49 }
50
51 return $self;
52 }
53  
54 sub getQueueUrl {
55 return shift->{_fields}->{QueueUrl}->{FieldValue};
56 }
57  
58  
59 sub setQueueUrl {
60 my ($self, $value) = @_;
61 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
62 return $self;
63 }
64  
65  
66  
67 sub withQueueUrl {
68 my $self = shift;
69 my $list = $self->{_fields}->{QueueUrl}->{FieldValue};
70 for (@_) {
71 push (@$list, $_);
72 }
73 return $self;
74 }
75
76  
77 sub isSetQueueUrl {
78 return scalar (@{shift->{_fields}->{QueueUrl}->{FieldValue}}) > 0;
79 }
80  
81  
82  
83  
84  
85 1;