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

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