lib/Amazon/SQS/Model/ListDeadLetterSourceQueuesRequest.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 # 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 package Amazon::SQS::Model::ListDeadLetterSourceQueuesRequest;
30  
31 use base qw (Amazon::SQS::Model);
32  
33 =pod
34  
35 =head1 NAME
36  
37 Amazon::SQS::Model::ListDeadLetterSourceQueuesRequest
38  
39 =head1 SYNOPSIS
40  
41 my $request = new Amazon::SQS::Model::ListDeadLetterSourceQueuesRequest(
42 {
43 QueueNamePrefix => 'some-prefix'
44 }
45 );
46  
47 =head1 DESCRIPTION
48  
49 The ListQueues action returns a list of your queues. The maximum
50 number of queues that can be returned is 1000. If you specify a value
51 for the optional C<QueueNamePrefix> parameter, only queues with a name
52 beginning with the specified value are returned.
53  
54 =head1 METHODS
55  
56 =head2 new
57  
58 new( options )
59  
60 =over 5
61  
62 =item QueueNamePrefix
63  
64 String to use for filtering the list results. Only those queues whose
65 name begins with the specified string are returned.
66  
67 =item Attribute
68  
69 C<Amazon::SQS::Model::Attribute>
70  
71 This is undocumented on AmazonE<039>s documentation page, however this
72 perl API apparently sends the attributes implying that you might be
73 able to list all queues that have a prefix of "some-prefix" AND have
74 some attribute.
75  
76 Queue attributes are set when the queue is created and are listed below.
77  
78 =over 5
79  
80 =item * VisibilityTimeout
81  
82 The length of time (in seconds) that a message
83 received from a queue will be invisible to other receiving components
84 when they ask to receive messages. For more information about
85 VisibilityTimeout, see Visibility Timeout in the Amazon SQS Developer
86 Guide.
87  
88 =item * Policy
89  
90 The formal description of the permissions for a resource. For more
91 information about Policy, see Basic Policy Structure in the Amazon SQS
92 Developer Guide.
93  
94 =item * MaximumMessageSize
95  
96 The limit of how many bytes a message can contain before Amazon SQS rejects it.
97  
98 =item * MessageRetentionPeriod
99  
100 The number of seconds Amazon SQS retains a message.
101  
102 =item * DelaySeconds
103  
104 The time in seconds that the delivery of all messages in the queue
105 will be delayed.
106  
107 =back
108  
109 =back
110  
111 =cut
112
113  
114 sub new {
115 my ($class, $data) = @_;
116  
117 my $self = {};
118  
119 $self->{_fields} = {
120 QueueUrl => { FieldValue => undef, FieldType => "string"}
121 };
122
123 bless ($self, $class);
124  
125 if (defined $data) {
126 $self->_fromHashRef($data);
127 }
128
129 return $self;
130 }
131  
132
133 sub getQueueUrl {
134 return shift->{_fields}->{QueueUrl}->{FieldValue};
135 }
136  
137  
138 sub setQueueUrl {
139 my ($self, $value) = @_;
140  
141 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
142 return $self;
143 }
144  
145  
146 sub withQueueUrl {
147 my ($self, $value) = @_;
148 $self->setQueueUrl($value);
149 return $self;
150 }
151  
152  
153 sub isSetQueueUrl {
154 return defined (shift->{_fields}->{QueueUrl}->{FieldValue});
155 }
156  
157 =pod
158  
159 =head1 SEE OTHER
160  
161 C<Amazon::SQS::Client>
162  
163 =head1 AUTHOR
164  
165 Elena@AWS
166  
167 =cut
168  
169 1;