@@ -16,7 +16,7 @@ final class AddLayerVersionPermissionRequest extends Input
16
16
*
17
17
* @var string|null
18
18
*/
19
- private $ LayerName ;
19
+ private $ layerName ;
20
20
21
21
/**
22
22
* The version number.
@@ -25,7 +25,7 @@ final class AddLayerVersionPermissionRequest extends Input
25
25
*
26
26
* @var string|null
27
27
*/
28
- private $ VersionNumber ;
28
+ private $ versionNumber ;
29
29
30
30
/**
31
31
* An identifier that distinguishes the policy from others on the same layer version.
@@ -34,7 +34,7 @@ final class AddLayerVersionPermissionRequest extends Input
34
34
*
35
35
* @var string|null
36
36
*/
37
- private $ StatementId ;
37
+ private $ statementId ;
38
38
39
39
/**
40
40
* The API action that grants access to the layer. For example, `lambda:GetLayerVersion`.
@@ -43,7 +43,7 @@ final class AddLayerVersionPermissionRequest extends Input
43
43
*
44
44
* @var string|null
45
45
*/
46
- private $ Action ;
46
+ private $ action ;
47
47
48
48
/**
49
49
* An account ID, or `*` to grant permission to all AWS accounts.
@@ -52,22 +52,22 @@ final class AddLayerVersionPermissionRequest extends Input
52
52
*
53
53
* @var string|null
54
54
*/
55
- private $ Principal ;
55
+ private $ principal ;
56
56
57
57
/**
58
58
* With the principal set to `*`, grant permission to all accounts in the specified organization.
59
59
*
60
60
* @var string|null
61
61
*/
62
- private $ OrganizationId ;
62
+ private $ organizationId ;
63
63
64
64
/**
65
65
* Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that
66
66
* has changed since you last read it.
67
67
*
68
68
* @var string|null
69
69
*/
70
- private $ RevisionId ;
70
+ private $ revisionId ;
71
71
72
72
/**
73
73
* @param array{
@@ -83,13 +83,13 @@ final class AddLayerVersionPermissionRequest extends Input
83
83
*/
84
84
public function __construct (array $ input = [])
85
85
{
86
- $ this ->LayerName = $ input ['LayerName ' ] ?? null ;
87
- $ this ->VersionNumber = $ input ['VersionNumber ' ] ?? null ;
88
- $ this ->StatementId = $ input ['StatementId ' ] ?? null ;
89
- $ this ->Action = $ input ['Action ' ] ?? null ;
90
- $ this ->Principal = $ input ['Principal ' ] ?? null ;
91
- $ this ->OrganizationId = $ input ['OrganizationId ' ] ?? null ;
92
- $ this ->RevisionId = $ input ['RevisionId ' ] ?? null ;
86
+ $ this ->layerName = $ input ['LayerName ' ] ?? null ;
87
+ $ this ->versionNumber = $ input ['VersionNumber ' ] ?? null ;
88
+ $ this ->statementId = $ input ['StatementId ' ] ?? null ;
89
+ $ this ->action = $ input ['Action ' ] ?? null ;
90
+ $ this ->principal = $ input ['Principal ' ] ?? null ;
91
+ $ this ->organizationId = $ input ['OrganizationId ' ] ?? null ;
92
+ $ this ->revisionId = $ input ['RevisionId ' ] ?? null ;
93
93
parent ::__construct ($ input );
94
94
}
95
95
@@ -100,37 +100,37 @@ public static function create($input): self
100
100
101
101
public function getAction (): ?string
102
102
{
103
- return $ this ->Action ;
103
+ return $ this ->action ;
104
104
}
105
105
106
106
public function getLayerName (): ?string
107
107
{
108
- return $ this ->LayerName ;
108
+ return $ this ->layerName ;
109
109
}
110
110
111
111
public function getOrganizationId (): ?string
112
112
{
113
- return $ this ->OrganizationId ;
113
+ return $ this ->organizationId ;
114
114
}
115
115
116
116
public function getPrincipal (): ?string
117
117
{
118
- return $ this ->Principal ;
118
+ return $ this ->principal ;
119
119
}
120
120
121
121
public function getRevisionId (): ?string
122
122
{
123
- return $ this ->RevisionId ;
123
+ return $ this ->revisionId ;
124
124
}
125
125
126
126
public function getStatementId (): ?string
127
127
{
128
- return $ this ->StatementId ;
128
+ return $ this ->statementId ;
129
129
}
130
130
131
131
public function getVersionNumber (): ?string
132
132
{
133
- return $ this ->VersionNumber ;
133
+ return $ this ->versionNumber ;
134
134
}
135
135
136
136
/**
@@ -143,17 +143,17 @@ public function request(): Request
143
143
144
144
// Prepare query
145
145
$ query = [];
146
- if (null !== $ this ->RevisionId ) {
147
- $ query ['RevisionId ' ] = $ this ->RevisionId ;
146
+ if (null !== $ this ->revisionId ) {
147
+ $ query ['RevisionId ' ] = $ this ->revisionId ;
148
148
}
149
149
150
150
// Prepare URI
151
151
$ uri = [];
152
- if (null === $ v = $ this ->LayerName ) {
152
+ if (null === $ v = $ this ->layerName ) {
153
153
throw new InvalidArgument (sprintf ('Missing parameter "LayerName" for "%s". The value cannot be null. ' , __CLASS__ ));
154
154
}
155
155
$ uri ['LayerName ' ] = $ v ;
156
- if (null === $ v = $ this ->VersionNumber ) {
156
+ if (null === $ v = $ this ->versionNumber ) {
157
157
throw new InvalidArgument (sprintf ('Missing parameter "VersionNumber" for "%s". The value cannot be null. ' , __CLASS__ ));
158
158
}
159
159
$ uri ['VersionNumber ' ] = $ v ;
@@ -169,49 +169,49 @@ public function request(): Request
169
169
170
170
public function setAction (?string $ value ): self
171
171
{
172
- $ this ->Action = $ value ;
172
+ $ this ->action = $ value ;
173
173
174
174
return $ this ;
175
175
}
176
176
177
177
public function setLayerName (?string $ value ): self
178
178
{
179
- $ this ->LayerName = $ value ;
179
+ $ this ->layerName = $ value ;
180
180
181
181
return $ this ;
182
182
}
183
183
184
184
public function setOrganizationId (?string $ value ): self
185
185
{
186
- $ this ->OrganizationId = $ value ;
186
+ $ this ->organizationId = $ value ;
187
187
188
188
return $ this ;
189
189
}
190
190
191
191
public function setPrincipal (?string $ value ): self
192
192
{
193
- $ this ->Principal = $ value ;
193
+ $ this ->principal = $ value ;
194
194
195
195
return $ this ;
196
196
}
197
197
198
198
public function setRevisionId (?string $ value ): self
199
199
{
200
- $ this ->RevisionId = $ value ;
200
+ $ this ->revisionId = $ value ;
201
201
202
202
return $ this ;
203
203
}
204
204
205
205
public function setStatementId (?string $ value ): self
206
206
{
207
- $ this ->StatementId = $ value ;
207
+ $ this ->statementId = $ value ;
208
208
209
209
return $ this ;
210
210
}
211
211
212
212
public function setVersionNumber (?string $ value ): self
213
213
{
214
- $ this ->VersionNumber = $ value ;
214
+ $ this ->versionNumber = $ value ;
215
215
216
216
return $ this ;
217
217
}
@@ -220,19 +220,19 @@ private function requestBody(): array
220
220
{
221
221
$ payload = [];
222
222
223
- if (null === $ v = $ this ->StatementId ) {
223
+ if (null === $ v = $ this ->statementId ) {
224
224
throw new InvalidArgument (sprintf ('Missing parameter "StatementId" for "%s". The value cannot be null. ' , __CLASS__ ));
225
225
}
226
226
$ payload ['StatementId ' ] = $ v ;
227
- if (null === $ v = $ this ->Action ) {
227
+ if (null === $ v = $ this ->action ) {
228
228
throw new InvalidArgument (sprintf ('Missing parameter "Action" for "%s". The value cannot be null. ' , __CLASS__ ));
229
229
}
230
230
$ payload ['Action ' ] = $ v ;
231
- if (null === $ v = $ this ->Principal ) {
231
+ if (null === $ v = $ this ->principal ) {
232
232
throw new InvalidArgument (sprintf ('Missing parameter "Principal" for "%s". The value cannot be null. ' , __CLASS__ ));
233
233
}
234
234
$ payload ['Principal ' ] = $ v ;
235
- if (null !== $ v = $ this ->OrganizationId ) {
235
+ if (null !== $ v = $ this ->organizationId ) {
236
236
$ payload ['OrganizationId ' ] = $ v ;
237
237
}
238
238
0 commit comments