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

filter: Statementstmt 0.0% 0 / 18 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 / 31 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::CreateQueueResult;
23  
24 use base qw (Amazon::SQS::Model);
25  
26
27  
28 #
29 # Amazon::SQS::Model::CreateQueueResult
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 => undef, FieldType => "string"},
44 };
45  
46 bless ($self, $class);
47 if (defined $data) {
48 $self->_fromHashRef($data);
49 }
50
51 return $self;
52 }
53  
54
55 sub getQueueUrl {
56 return shift->{_fields}->{QueueUrl}->{FieldValue};
57 }
58  
59  
60 sub setQueueUrl {
61 my ($self, $value) = @_;
62  
63 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
64 return $self;
65 }
66  
67  
68 sub withQueueUrl {
69 my ($self, $value) = @_;
70 $self->setQueueUrl($value);
71 return $self;
72 }
73  
74  
75 sub isSetQueueUrl {
76 return defined (shift->{_fields}->{QueueUrl}->{FieldValue});
77 }
78  
79  
80  
81  
82  
83 1;