|
13 | 13 | use AsyncAws\MediaConvert\Enum\BurnInSubtitleStylePassthrough; |
14 | 14 | use AsyncAws\MediaConvert\Enum\BurninSubtitleTeletextSpacing; |
15 | 15 | use AsyncAws\MediaConvert\Enum\FontScript; |
| 16 | +use AsyncAws\MediaConvert\Enum\RemoveRubyReserveAttributes; |
16 | 17 |
|
17 | 18 | /** |
18 | 19 | * Burn-in is a captions delivery method, rather than a captions format. Burn-in writes the captions directly on your |
@@ -168,6 +169,16 @@ final class BurninDestinationSettings |
168 | 169 | */ |
169 | 170 | private $outlineSize; |
170 | 171 |
|
| 172 | + /** |
| 173 | + * Optionally remove any tts:rubyReserve attributes present in your input, that do not have a tts:ruby attribute in the |
| 174 | + * same element, from your output. Use if your vertical Japanese output captions have alignment issues. To remove ruby |
| 175 | + * reserve attributes when present: Choose Enabled. To not remove any ruby reserve attributes: Keep the default value, |
| 176 | + * Disabled. |
| 177 | + * |
| 178 | + * @var RemoveRubyReserveAttributes::*|null |
| 179 | + */ |
| 180 | + private $removeRubyReserveAttributes; |
| 181 | + |
171 | 182 | /** |
172 | 183 | * Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled |
173 | 184 | * to use the shadow color data from your input captions, if present. |
@@ -262,6 +273,7 @@ final class BurninDestinationSettings |
262 | 273 | * HexFontColor?: null|string, |
263 | 274 | * OutlineColor?: null|BurninSubtitleOutlineColor::*, |
264 | 275 | * OutlineSize?: null|int, |
| 276 | + * RemoveRubyReserveAttributes?: null|RemoveRubyReserveAttributes::*, |
265 | 277 | * ShadowColor?: null|BurninSubtitleShadowColor::*, |
266 | 278 | * ShadowOpacity?: null|int, |
267 | 279 | * ShadowXOffset?: null|int, |
@@ -291,6 +303,7 @@ public function __construct(array $input) |
291 | 303 | $this->hexFontColor = $input['HexFontColor'] ?? null; |
292 | 304 | $this->outlineColor = $input['OutlineColor'] ?? null; |
293 | 305 | $this->outlineSize = $input['OutlineSize'] ?? null; |
| 306 | + $this->removeRubyReserveAttributes = $input['RemoveRubyReserveAttributes'] ?? null; |
294 | 307 | $this->shadowColor = $input['ShadowColor'] ?? null; |
295 | 308 | $this->shadowOpacity = $input['ShadowOpacity'] ?? null; |
296 | 309 | $this->shadowXoffset = $input['ShadowXOffset'] ?? null; |
@@ -320,6 +333,7 @@ public function __construct(array $input) |
320 | 333 | * HexFontColor?: null|string, |
321 | 334 | * OutlineColor?: null|BurninSubtitleOutlineColor::*, |
322 | 335 | * OutlineSize?: null|int, |
| 336 | + * RemoveRubyReserveAttributes?: null|RemoveRubyReserveAttributes::*, |
323 | 337 | * ShadowColor?: null|BurninSubtitleShadowColor::*, |
324 | 338 | * ShadowOpacity?: null|int, |
325 | 339 | * ShadowXOffset?: null|int, |
@@ -441,6 +455,14 @@ public function getOutlineSize(): ?int |
441 | 455 | return $this->outlineSize; |
442 | 456 | } |
443 | 457 |
|
| 458 | + /** |
| 459 | + * @return RemoveRubyReserveAttributes::*|null |
| 460 | + */ |
| 461 | + public function getRemoveRubyReserveAttributes(): ?string |
| 462 | + { |
| 463 | + return $this->removeRubyReserveAttributes; |
| 464 | + } |
| 465 | + |
444 | 466 | /** |
445 | 467 | * @return BurninSubtitleShadowColor::*|null |
446 | 468 | */ |
@@ -568,6 +590,12 @@ public function requestBody(): array |
568 | 590 | if (null !== $v = $this->outlineSize) { |
569 | 591 | $payload['outlineSize'] = $v; |
570 | 592 | } |
| 593 | + if (null !== $v = $this->removeRubyReserveAttributes) { |
| 594 | + if (!RemoveRubyReserveAttributes::exists($v)) { |
| 595 | + throw new InvalidArgument(\sprintf('Invalid parameter "removeRubyReserveAttributes" for "%s". The value "%s" is not a valid "RemoveRubyReserveAttributes".', __CLASS__, $v)); |
| 596 | + } |
| 597 | + $payload['removeRubyReserveAttributes'] = $v; |
| 598 | + } |
571 | 599 | if (null !== $v = $this->shadowColor) { |
572 | 600 | if (!BurninSubtitleShadowColor::exists($v)) { |
573 | 601 | throw new InvalidArgument(\sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "BurninSubtitleShadowColor".', __CLASS__, $v)); |
|
0 commit comments