lib/Amazon/SQS/Model/DeleteMessageRequest.pm

filter: Statementstmt 10.2% 4 / 39 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 7.1% 1 / 14 Podpod 0.0% 0 / 13 totaltotal 7.1% 5 / 70 CC 5 SCAR 15.0
CC
5
Cov
9%
setAttribute
12.0
new
6.0
withAttribute
6.0
CRAP 4.5
« lib/Amazon/SQS/Config.pm ↑ Summary lib/Amazon/SQS/Model/ChangeMessageVisibilityBatchResult.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 # __ _ _ ___
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::DeleteMessageRequest;
23  
24 2 ▶use base qw (Amazon::SQS::Model);
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26
27  
28 #
29 # Amazon::SQS::Model::DeleteMessageRequest
30 #
31 # Properties:
32 #
33 #
34 # QueueUrl: string
35 # ReceiptHandle: string
36 # Attribute: Amazon::SQS::Model::Attribute
37 #
38 #
39 #
40 0 ▶ sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
41 0 my ($class, $data) = @_;
42 0 my $self = {};
43 $self->{_fields} = {
44
45 0 QueueUrl => { FieldValue => undef, FieldType => "string"},
46 ReceiptHandle => { FieldValue => undef, FieldType => "string"},
47 Attribute => {FieldValue => [], FieldType => ["Amazon::SQS::Model::Attribute"]},
48 };
49  
50 0 bless ($self, $class);
51 0 ▶ if (defined $data) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $data) 0 0 0
52 0 $self->_fromHashRef($data);
53 }
54
55 0 return $self;
56 }
57  
58
59 0 ▶ sub getQueueUrl {
Subroutine getQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
60 0 return shift->{_fields}->{QueueUrl}->{FieldValue};
61 }
62  
63  
64 0 ▶ sub setQueueUrl {
Subroutine setQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
65 0 my ($self, $value) = @_;
66  
67 0 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
68 0 return $self;
69 }
70  
71  
72 0 ▶ sub withQueueUrl {
Subroutine withQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
73 0 my ($self, $value) = @_;
74 0 $self->setQueueUrl($value);
75 0 return $self;
76 }
77  
78  
79 0 ▶ sub isSetQueueUrl {
Subroutine isSetQueueUrl: not called CC=1 SCAR=6.9
Pod undocumented
80 0 return defined (shift->{_fields}->{QueueUrl}->{FieldValue});
81 }
82  
83  
84 0 ▶ sub getReceiptHandle {
Subroutine getReceiptHandle: not called CC=1 SCAR=6.9
Pod undocumented
85 0 return shift->{_fields}->{ReceiptHandle}->{FieldValue};
86 }
87  
88  
89 0 ▶ sub setReceiptHandle {
Subroutine setReceiptHandle: not called CC=1 SCAR=6.9
Pod undocumented
90 0 my ($self, $value) = @_;
91  
92 0 $self->{_fields}->{ReceiptHandle}->{FieldValue} = $value;
93 0 return $self;
94 }
95  
96  
97 0 ▶ sub withReceiptHandle {
Subroutine withReceiptHandle: not called CC=1 SCAR=6.9
Pod undocumented
98 0 my ($self, $value) = @_;
99 0 $self->setReceiptHandle($value);
100 0 return $self;
101 }
102  
103  
104 0 ▶ sub isSetReceiptHandle {
Subroutine isSetReceiptHandle: not called CC=1 SCAR=6.9
Pod undocumented
105 0 return defined (shift->{_fields}->{ReceiptHandle}->{FieldValue});
106 }
107  
108 0 ▶ sub getAttribute {
Subroutine getAttribute: not called CC=1 SCAR=6.9
Pod undocumented
109 0 return shift->{_fields}->{Attribute}->{FieldValue};
110 }
111  
112 0 ▶ sub setAttribute {
Subroutine setAttribute: not called CC=3 SCAR=24.8
Pod undocumented
113 0 my $self = shift;
114 0 foreach my $attribute (@_) {
115 0 ▶ if (not $self->_isArrayRef($attribute)) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->_isArrayRef($attribute)) 0 0 0
116 0 $attribute = [$attribute];
117 }
118 0 $self->{_fields}->{Attribute}->{FieldValue} = $attribute;
119 }
120 }
121  
122  
123 0 ▶ sub withAttribute {
Subroutine withAttribute: not called CC=2 SCAR=17.9
Pod undocumented
124 0 my ($self, $attributeArgs) = @_;
125 0 foreach my $attribute (@$attributeArgs) {
126 0 $self->{_fields}->{Attribute}->{FieldValue} = $attribute;
127 }
128 0 return $self;
129 }
130  
131  
132 0 ▶ sub isSetAttribute {
Subroutine isSetAttribute: not called CC=1 SCAR=6.9
Pod undocumented
133 0 return scalar (@{shift->{_fields}->{Attribute}->{FieldValue}}) > 0;
134 }
135  
136  
137  
138  
139  
140 2 1;
« lib/Amazon/SQS/Config.pm ↑ Summary lib/Amazon/SQS/Model/ChangeMessageVisibilityBatchResult.pm »