@@ -121,6 +121,16 @@ final class SendEmailRequest extends Input
121121 */
122122 private $ endpointId ;
123123
124+ /**
125+ * The name of the tenant through which this email will be sent.
126+ *
127+ * > The email sending operation will only succeed if all referenced resources (identities, configuration sets, and
128+ * > templates) are associated with this tenant.
129+ *
130+ * @var string|null
131+ */
132+ private $ tenantName ;
133+
124134 /**
125135 * An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to
126136 * unsubscribe.
@@ -141,6 +151,7 @@ final class SendEmailRequest extends Input
141151 * EmailTags?: null|array<MessageTag|array>,
142152 * ConfigurationSetName?: null|string,
143153 * EndpointId?: null|string,
154+ * TenantName?: null|string,
144155 * ListManagementOptions?: null|ListManagementOptions|array,
145156 * '@region'?: string|null,
146157 * } $input
@@ -157,6 +168,7 @@ public function __construct(array $input = [])
157168 $ this ->emailTags = isset ($ input ['EmailTags ' ]) ? array_map ([MessageTag::class, 'create ' ], $ input ['EmailTags ' ]) : null ;
158169 $ this ->configurationSetName = $ input ['ConfigurationSetName ' ] ?? null ;
159170 $ this ->endpointId = $ input ['EndpointId ' ] ?? null ;
171+ $ this ->tenantName = $ input ['TenantName ' ] ?? null ;
160172 $ this ->listManagementOptions = isset ($ input ['ListManagementOptions ' ]) ? ListManagementOptions::create ($ input ['ListManagementOptions ' ]) : null ;
161173 parent ::__construct ($ input );
162174 }
@@ -173,6 +185,7 @@ public function __construct(array $input = [])
173185 * EmailTags?: null|array<MessageTag|array>,
174186 * ConfigurationSetName?: null|string,
175187 * EndpointId?: null|string,
188+ * TenantName?: null|string,
176189 * ListManagementOptions?: null|ListManagementOptions|array,
177190 * '@region'?: string|null,
178191 * }|SendEmailRequest $input
@@ -243,6 +256,11 @@ public function getReplyToAddresses(): array
243256 return $ this ->replyToAddresses ?? [];
244257 }
245258
259+ public function getTenantName (): ?string
260+ {
261+ return $ this ->tenantName ;
262+ }
263+
246264 /**
247265 * @internal
248266 */
@@ -351,6 +369,13 @@ public function setReplyToAddresses(array $value): self
351369 return $ this ;
352370 }
353371
372+ public function setTenantName (?string $ value ): self
373+ {
374+ $ this ->tenantName = $ value ;
375+
376+ return $ this ;
377+ }
378+
354379 private function requestBody (): array
355380 {
356381 $ payload = [];
@@ -395,6 +420,9 @@ private function requestBody(): array
395420 if (null !== $ v = $ this ->endpointId ) {
396421 $ payload ['EndpointId ' ] = $ v ;
397422 }
423+ if (null !== $ v = $ this ->tenantName ) {
424+ $ payload ['TenantName ' ] = $ v ;
425+ }
398426 if (null !== $ v = $ this ->listManagementOptions ) {
399427 $ payload ['ListManagementOptions ' ] = $ v ->requestBody ();
400428 }
0 commit comments