@@ -114,6 +114,13 @@ final class SendEmailRequest extends Input
114
114
*/
115
115
private $ configurationSetName ;
116
116
117
+ /**
118
+ * The ID of the multi-region endpoint (global-endpoint).
119
+ *
120
+ * @var string|null
121
+ */
122
+ private $ endpointId ;
123
+
117
124
/**
118
125
* An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to
119
126
* unsubscribe.
@@ -133,6 +140,7 @@ final class SendEmailRequest extends Input
133
140
* Content?: EmailContent|array,
134
141
* EmailTags?: null|array<MessageTag|array>,
135
142
* ConfigurationSetName?: null|string,
143
+ * EndpointId?: null|string,
136
144
* ListManagementOptions?: null|ListManagementOptions|array,
137
145
* '@region'?: string|null,
138
146
* } $input
@@ -148,6 +156,7 @@ public function __construct(array $input = [])
148
156
$ this ->content = isset ($ input ['Content ' ]) ? EmailContent::create ($ input ['Content ' ]) : null ;
149
157
$ this ->emailTags = isset ($ input ['EmailTags ' ]) ? array_map ([MessageTag::class, 'create ' ], $ input ['EmailTags ' ]) : null ;
150
158
$ this ->configurationSetName = $ input ['ConfigurationSetName ' ] ?? null ;
159
+ $ this ->endpointId = $ input ['EndpointId ' ] ?? null ;
151
160
$ this ->listManagementOptions = isset ($ input ['ListManagementOptions ' ]) ? ListManagementOptions::create ($ input ['ListManagementOptions ' ]) : null ;
152
161
parent ::__construct ($ input );
153
162
}
@@ -163,6 +172,7 @@ public function __construct(array $input = [])
163
172
* Content?: EmailContent|array,
164
173
* EmailTags?: null|array<MessageTag|array>,
165
174
* ConfigurationSetName?: null|string,
175
+ * EndpointId?: null|string,
166
176
* ListManagementOptions?: null|ListManagementOptions|array,
167
177
* '@region'?: string|null,
168
178
* }|SendEmailRequest $input
@@ -195,6 +205,11 @@ public function getEmailTags(): array
195
205
return $ this ->emailTags ?? [];
196
206
}
197
207
208
+ public function getEndpointId (): ?string
209
+ {
210
+ return $ this ->endpointId ;
211
+ }
212
+
198
213
public function getFeedbackForwardingEmailAddress (): ?string
199
214
{
200
215
return $ this ->feedbackForwardingEmailAddress ;
@@ -284,6 +299,13 @@ public function setEmailTags(array $value): self
284
299
return $ this ;
285
300
}
286
301
302
+ public function setEndpointId (?string $ value ): self
303
+ {
304
+ $ this ->endpointId = $ value ;
305
+
306
+ return $ this ;
307
+ }
308
+
287
309
public function setFeedbackForwardingEmailAddress (?string $ value ): self
288
310
{
289
311
$ this ->feedbackForwardingEmailAddress = $ value ;
@@ -370,6 +392,9 @@ private function requestBody(): array
370
392
if (null !== $ v = $ this ->configurationSetName ) {
371
393
$ payload ['ConfigurationSetName ' ] = $ v ;
372
394
}
395
+ if (null !== $ v = $ this ->endpointId ) {
396
+ $ payload ['EndpointId ' ] = $ v ;
397
+ }
373
398
if (null !== $ v = $ this ->listManagementOptions ) {
374
399
$ payload ['ListManagementOptions ' ] = $ v ->requestBody ();
375
400
}
0 commit comments