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

filter: Statementstmt 0.0% 0 / 50 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 18 Podpod 0.0% 0 / 17 totaltotal 0.0% 0 / 87 CC 2 SCAR 8.8
CC
2
Cov
0%
new
6.0
getQueueUrl
2.0
setQueueUrl
2.0
CRAP 2.4
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::AddPermissionRequest;
23  
24 use base qw (Amazon::SQS::Model);
25  
26
27  
28 #
29 # Amazon::SQS::Model::AddPermissionRequest
30 #
31 # Properties:
32 #
33 #
34 # QueueUrl: string
35 # Label: string
36 # AWSAccountId: string
37 # ActionName: string
38 #
39 #
40 #
41 sub new {
42 my ($class, $data) = @_;
43 my $self = {};
44 $self->{_fields} = {
45
46 QueueUrl => { FieldValue => undef, FieldType => "string"},
47 Label => { FieldValue => undef, FieldType => "string"},
48 AWSAccountId => {FieldValue => [], FieldType => ["string"]},
49 ActionName => {FieldValue => [], FieldType => ["string"]},
50 };
51  
52 bless ($self, $class);
53 if (defined $data) {
54 $self->_fromHashRef($data);
55 }
56
57 return $self;
58 }
59  
60
61 sub getQueueUrl {
62 return shift->{_fields}->{QueueUrl}->{FieldValue};
63 }
64  
65  
66 sub setQueueUrl {
67 my ($self, $value) = @_;
68  
69 $self->{_fields}->{QueueUrl}->{FieldValue} = $value;
70 return $self;
71 }
72  
73  
74 sub withQueueUrl {
75 my ($self, $value) = @_;
76 $self->setQueueUrl($value);
77 return $self;
78 }
79  
80  
81 sub isSetQueueUrl {
82 return defined (shift->{_fields}->{QueueUrl}->{FieldValue});
83 }
84  
85  
86 sub getLabel {
87 return shift->{_fields}->{Label}->{FieldValue};
88 }
89  
90  
91 sub setLabel {
92 my ($self, $value) = @_;
93  
94 $self->{_fields}->{Label}->{FieldValue} = $value;
95 return $self;
96 }
97  
98  
99 sub withLabel {
100 my ($self, $value) = @_;
101 $self->setLabel($value);
102 return $self;
103 }
104  
105  
106 sub isSetLabel {
107 return defined (shift->{_fields}->{Label}->{FieldValue});
108 }
109  
110 sub getAWSAccountId {
111 return shift->{_fields}->{AWSAccountId}->{FieldValue};
112 }
113  
114  
115 sub setAWSAccountId {
116 my ($self, $value) = @_;
117 $self->{_fields}->{AWSAccountId}->{FieldValue} = $value;
118 return $self;
119 }
120  
121  
122  
123 sub withAWSAccountId {
124 my $self = shift;
125 my $list = $self->{_fields}->{AWSAccountId}->{FieldValue};
126 for (@_) {
127 push (@$list, $_);
128 }
129 return $self;
130 }
131
132  
133 sub isSetAWSAccountId {
134 return scalar (@{shift->{_fields}->{AWSAccountId}->{FieldValue}}) > 0;
135 }
136  
137 sub getActionName {
138 return shift->{_fields}->{ActionName}->{FieldValue};
139 }
140  
141  
142 sub setActionName {
143 my ($self, $value) = @_;
144 $self->{_fields}->{ActionName}->{FieldValue} = $value;
145 return $self;
146 }
147  
148  
149  
150 sub withActionName {
151 my $self = shift;
152 my $list = $self->{_fields}->{ActionName}->{FieldValue};
153 for (@_) {
154 push (@$list, $_);
155 }
156 return $self;
157 }
158
159  
160 sub isSetActionName {
161 return scalar (@{shift->{_fields}->{ActionName}->{FieldValue}}) > 0;
162 }
163  
164  
165  
166  
167  
168 1;