/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace TranscribeService { namespace Model { /** *

Generate subtitles for your media file with your transcription request.

*

You can choose a start index of 0 or 1, and you can specify either WebVTT or * SubRip (or both) as your output format.

Note that your subtitle files are * placed in the same location as your transcription output.

See * Also:

AWS * API Reference

*/ class Subtitles { public: AWS_TRANSCRIBESERVICE_API Subtitles(); AWS_TRANSCRIBESERVICE_API Subtitles(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSCRIBESERVICE_API Subtitles& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline const Aws::Vector& GetFormats() const{ return m_formats; } /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline bool FormatsHasBeenSet() const { return m_formatsHasBeenSet; } /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline void SetFormats(const Aws::Vector& value) { m_formatsHasBeenSet = true; m_formats = value; } /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline void SetFormats(Aws::Vector&& value) { m_formatsHasBeenSet = true; m_formats = std::move(value); } /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline Subtitles& WithFormats(const Aws::Vector& value) { SetFormats(value); return *this;} /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline Subtitles& WithFormats(Aws::Vector&& value) { SetFormats(std::move(value)); return *this;} /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline Subtitles& AddFormats(const SubtitleFormat& value) { m_formatsHasBeenSet = true; m_formats.push_back(value); return *this; } /** *

Specify the output format for your subtitle file; if you select both WebVTT * (vtt) and SubRip (srt) formats, two output files are * generated.

*/ inline Subtitles& AddFormats(SubtitleFormat&& value) { m_formatsHasBeenSet = true; m_formats.push_back(std::move(value)); return *this; } /** *

Specify the starting value that is assigned to the first subtitle * segment.

The default start index for Amazon Transcribe is 0, * which differs from the more widely used standard of 1. If you're * uncertain which value to use, we recommend choosing 1, as this may * improve compatibility with other services.

*/ inline int GetOutputStartIndex() const{ return m_outputStartIndex; } /** *

Specify the starting value that is assigned to the first subtitle * segment.

The default start index for Amazon Transcribe is 0, * which differs from the more widely used standard of 1. If you're * uncertain which value to use, we recommend choosing 1, as this may * improve compatibility with other services.

*/ inline bool OutputStartIndexHasBeenSet() const { return m_outputStartIndexHasBeenSet; } /** *

Specify the starting value that is assigned to the first subtitle * segment.

The default start index for Amazon Transcribe is 0, * which differs from the more widely used standard of 1. If you're * uncertain which value to use, we recommend choosing 1, as this may * improve compatibility with other services.

*/ inline void SetOutputStartIndex(int value) { m_outputStartIndexHasBeenSet = true; m_outputStartIndex = value; } /** *

Specify the starting value that is assigned to the first subtitle * segment.

The default start index for Amazon Transcribe is 0, * which differs from the more widely used standard of 1. If you're * uncertain which value to use, we recommend choosing 1, as this may * improve compatibility with other services.

*/ inline Subtitles& WithOutputStartIndex(int value) { SetOutputStartIndex(value); return *this;} private: Aws::Vector m_formats; bool m_formatsHasBeenSet = false; int m_outputStartIndex; bool m_outputStartIndexHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws