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

filter: Statementstmt 0.0% 0 / 37 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 / 63 CC 2 SCAR 9.4
CC
2
Cov
0%
new
6.0
fromXML
2.0
getResponseMetadata
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 # 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::ChangeMessageVisibilityBatchResponse;
31  
32 use base qw (Amazon::SQS::Model);
33 use Data::Dumper;
34  
35 #
36 # Amazon::SQS::Model::ChangeMessageVisibilityBatchResponse
37 #
38 # Properties:
39 #
40 #
41 # ResponseMetadata: Amazon::SQS::Model::ResponseMetadata
42 # ChangeMessageVisibilityBatchResult: Amazon::SQS::Model::ChangeMessageVisibilityBatchResult
43 #
44 #
45 sub new {
46 my ($class, $data) = @_;
47 my $self = {};
48 $self->{_fields} = {
49 ChangeMessageVisibilityBatchResult => {FieldValue => undef, FieldType => "Amazon::SQS::Model::ChangeMessageVisibilityBatchResult"},
50 ResponseMetadata => {FieldValue => undef, FieldType => "Amazon::SQS::Model::ResponseMetadata"},
51 };
52  
53 bless ($self, $class);
54 if (defined $data) {
55 $self->_fromHashRef($data);
56 }
57
58 return $self;
59 }
60  
61
62 #
63 # Construct Amazon::SQS::Model::ChangeMessageVisibilityBatchResponse from XML string
64 #
65 sub fromXML {
66 my ($self, $xml) = @_;
67 eval "use XML::Simple";
68 my $tree = XML::Simple::XMLin ($xml);
69
70 # TODO: check valid XML (is this a response XML?)
71 return new Amazon::SQS::Model::ChangeMessageVisibilityBatchResponse($tree);
72
73 }
74
75 sub getResponseMetadata {
76 return shift->{_fields}->{ResponseMetadata}->{FieldValue};
77 }
78  
79  
80 sub setResponseMetadata {
81 my ($self, $value) = @_;
82 $self->{_fields}->{ResponseMetadata}->{FieldValue} = $value;
83 }
84  
85  
86 sub withResponseMetadata {
87 my ($self, $value) = @_;
88 $self->setResponseMetadata($value);
89 return $self;
90 }
91  
92  
93 sub isSetResponseMetadata {
94 return defined (shift->{_fields}->{ResponseMetadata}->{FieldValue});
95  
96 }
97  
98  
99 sub getChangeMessageVisibilityBatchResult {
100 return shift->{_fields}->{ChangeMessageVisibilityBatchResult}->{FieldValue};
101 }
102  
103  
104 sub setChangeMessageVisibilityBatchResult {
105 my ($self, $value) = @_;
106 $self->{_fields}->{ChangeMessageVisibilityBatchResult}->{FieldValue} = $value;
107 }
108  
109  
110 sub withChangeMessageVisibilityBatchResult {
111 my ($self, $value) = @_;
112 $self->setChangeMessageVisibilityBatchResult($value);
113 return $self;
114 }
115  
116  
117 sub isSetChangeMessageVisibilityBatchResult {
118 return defined (shift->{_fields}->{ChangeMessageVisibilityBatchResult}->{FieldValue});
119  
120 }
121  
122 #
123 # XML Representation for this object
124 #
125 # Returns string XML for this object
126 #
127 sub toXML {
128 my $self = shift;
129 my $xml = "";
130 $xml .= "<ChangeMessageVisibilityBatchResponse xmlns=\"http://queue.amazonaws.com/doc/2012-11-05/\">";
131 $xml .= $self->_toXMLFragment();
132 $xml .= "</ChangeMessageVisibilityBatchResponse>";
133  
134 return $xml;
135 }
136  
137 1;