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

filter: Statementstmt 0.0% 0 / 40 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 11 totaltotal 0.0% 0 / 66 CC 2 SCAR 9.4
CC
2
Cov
0%
new
6.0
fromXML
2.0
getListDeadLetterSourceQueuesResult
2.0
CRAP 2.6
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::ListDeadLetterSourceQueuesResponse;
23  
24 use base qw (Amazon::SQS::Model);
25 use Data::Dumper;
26  
27 =pod
28  
29 =head1 NAME
30  
31 C<Amazon::SQS::Model::ListQueuesResponse>
32  
33 =head1 SYNOPSIS
34  
35 my $response = new Amazon::SQS::Model::ListQueuesResponse( { ListQueuesResult => $result,
36 ResponseMetadata => $response_metadata
37 }
38 );
39  
40 =head1 DESCRIPTION
41  
42 Implements a class that contains the response from a C<ListQueues> request.
43  
44 =head1 METHODS
45  
46 =head2 new
47  
48 new( options )
49  
50 =head2 isSetListQueuesResult
51  
52 Returns true if a C<Amazon::SQS::Model::ListQueuesResult> object is set in the response,
53 false otherwise.
54  
55 =head2 isSetResponseMetadata
56  
57 Returns true if a C<Amazon::SQS::Model::ResponseMetadata> object is set in the response,
58 false otherwise.
59  
60 =head2 getListQueuesResult
61  
62 Returns the C<Amazon::SQS::Model::ListQueuesResult> object.
63  
64 =head2 getResponseMetadata
65  
66 Returns the C<Amazon::SQS::Model::ResponseMetadata> object.
67  
68 =cut
69  
70 sub new {
71 my ($class, $data) = @_;
72  
73 my $self = {};
74  
75 $self->{_fields} = {
76 ListDeadLetterSourceQueuesResult => {
77 FieldValue => undef,
78 FieldType => "Amazon::SQS::Model::ListDeadLetterSourceQueuesResult"
79 },
80  
81 ResponseMetadata => {
82 FieldValue => undef,
83 FieldType => "Amazon::SQS::Model::ResponseMetadata"
84 },
85 };
86  
87 bless ($self, $class);
88  
89 if (defined $data) {
90 $self->_fromHashRef($data);
91 }
92
93 return $self;
94 }
95  
96
97 #
98 # Construct Amazon::SQS::Model::ListQueuesResponse from XML string
99 #
100 sub fromXML {
101 my ($self, $xml) = @_;
102 eval "use XML::Simple";
103 my $tree = XML::Simple::XMLin ($xml);
104
105 # TODO: check valid XML (is this a response XML?)
106 print Dumper [ $tree ];
107 print STDERR $xml;
108
109 return new Amazon::SQS::Model::ListDeadLetterSourceQueuesResponse($tree);
110
111 }
112
113 sub getListDeadLetterSourceQueuesResult {
114 return shift->{_fields}->{ListDeadLetterSourceQueuesResult}->{FieldValue};
115 }
116  
117  
118 sub setListDeadLetterSourceQueuesResult {
119 my ($self, $value) = @_;
120 $self->{_fields}->{ListDeadLetterSourceQueuesResult}->{FieldValue} = $value;
121 }
122  
123  
124 sub withListDeadLetterSourceQueuesResult {
125 my ($self, $value) = @_;
126 $self->setListDeadLetterSourceQueuesResult($value);
127 return $self;
128 }
129  
130  
131 sub isSetListDeadLetterSourceQueuesResult {
132 return defined (shift->{_fields}->{ListDeadLetterSourceQueuesResult}->{FieldValue});
133  
134 }
135  
136 sub getResponseMetadata {
137 return shift->{_fields}->{ResponseMetadata}->{FieldValue};
138 }
139  
140  
141 sub setResponseMetadata {
142 my ($self, $value) = @_;
143 $self->{_fields}->{ResponseMetadata}->{FieldValue} = $value;
144 }
145  
146  
147 sub withResponseMetadata {
148 my ($self, $value) = @_;
149 $self->setResponseMetadata($value);
150 return $self;
151 }
152  
153  
154 sub isSetResponseMetadata {
155 return defined (shift->{_fields}->{ResponseMetadata}->{FieldValue});
156  
157 }
158  
159  
160  
161 #
162 # XML Representation for this object
163 #
164 # Returns string XML for this object
165 #
166 sub toXML {
167 my $self = shift;
168 my $xml = "";
169 $xml .= "<ListDeadLetterSourceQueuesResponse xmlns=\"http://queue.amazonaws.com/doc/2012-11-05/\">";
170 $xml .= $self->_toXMLFragment();
171 $xml .= "</ListDeadLetterSourceQueuesResponse>";
172 return $xml;
173 }
174  
175 =pod
176  
177 =head1 SEE OTHER
178  
179 C<Amazon::SQS::Client>, C<Amazon::SQS::ListDeadLetterSourceQueuesResult>
180  
181 =head1 AUTHOR
182  
183 Elena@AWS
184  
185 =cut
186  
187 1;