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

Represents a set of transcription results from the server to the client. It * contains one or more segments of the transcription.

See Also:

* AWS * API Reference

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

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline const Transcript& GetTranscript() const{ return m_transcript; } /** *

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; } /** *

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline void SetTranscript(const Transcript& value) { m_transcriptHasBeenSet = true; m_transcript = value; } /** *

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline void SetTranscript(Transcript&& value) { m_transcriptHasBeenSet = true; m_transcript = std::move(value); } /** *

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline TranscriptEvent& WithTranscript(const Transcript& value) { SetTranscript(value); return *this;} /** *

The transcription of the audio stream. The transcription is composed of all * of the items in the results list.

*/ inline TranscriptEvent& WithTranscript(Transcript&& value) { SetTranscript(std::move(value)); return *this;} private: Transcript m_transcript; bool m_transcriptHasBeenSet; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws