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

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 47 CC 2 SCAR 10.0
CC
2
Cov
0%
new
6.0
getId
2.0
setId
2.0
CRAP 2.7
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  
30 package Amazon::SQS::Model::DeleteMessageBatchRequestEntry;
31  
32 use base qw (Amazon::SQS::Model);
33  
34 =pod
35  
36 =head1 NAME
37  
38 Amazon::SQS::Model::DeleteMessageBatchRequestEntry
39  
40 =head1 SYNOPSIS
41  
42 my $attribute = new Amazon::SQS::Model::DeleteMessageBatchRequestEntry(
43 {
44 Id => id,
45 ReceiptHandle => receiptHandle
46 }
47  
48 =cut
49  
50 sub new {
51 my ($class, $data) = @_;
52 my $self = {};
53 $self->{_fields} = {
54 Id => { FieldValue => undef, FieldType => "string"},
55 ReceiptHandle => { FieldValue => undef, FieldType => "string" }
56 };
57
58 bless ($self, $class);
59
60 if (defined $data) {
61 $self->_fromHashRef($data);
62 }
63
64 return $self;
65 }
66  
67 sub getId {
68 return shift->{_fields}->{Id}->{FieldValue};
69 }
70  
71  
72 sub setId {
73 my ($self, $value) = @_;
74  
75 $self->{_fields}->{Id}->{FieldValue} = $value;
76 return $self;
77 }
78  
79  
80 sub withId {
81 my ($self, $value) = @_;
82 $self->setId($value);
83 return $self;
84 }
85  
86  
87 sub isSetId {
88 return defined (shift->{_fields}->{Id}->{FieldValue});
89 }
90  
91  
92  
93 sub getReceiptHandle {
94 return shift->{_fields}->{ReceiptHandle}->{FieldValue};
95 }
96  
97  
98 sub setReceiptHandle {
99 my ($self, $value) = @_;
100  
101 $self->{_fields}->{ReceiptHandle}->{FieldValue} = $value;
102 return $self;
103 }
104  
105 sub withReceiptHandle {
106 my ($self, $value) = @_;
107 $self->setReceiptHandle($value);
108 return $self;
109 }
110  
111 sub isSetReceiptHandle {
112 return defined (shift->{_fields}->{ReceiptHandle}->{FieldValue});
113 }
114  
115  
116 =pod
117  
118 =head1 SEE OTHER
119  
120 C<Amazon::SQS::Client>
121  
122 =head1 AUTHOR
123  
124 Elena@AWS
125  
126 =cut
127  
128  
129 1;