/** * 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 TranscribeStreamingService { namespace Model { /** *

The transcription in a TranscriptEvent.

See Also:

AWS * API Reference

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

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; } /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline void SetResults(const Aws::Vector& value) { m_resultsHasBeenSet = true; m_results = value; } /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline void SetResults(Aws::Vector&& value) { m_resultsHasBeenSet = true; m_results = std::move(value); } /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline Transcript& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline Transcript& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline Transcript& AddResults(const Result& value) { m_resultsHasBeenSet = true; m_results.push_back(value); return *this; } /** *

Result objects that contain the results of transcribing a portion of * the input audio stream. The array can be empty.

*/ inline Transcript& AddResults(Result&& value) { m_resultsHasBeenSet = true; m_results.push_back(std::move(value)); return *this; } private: Aws::Vector m_results; bool m_resultsHasBeenSet; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws