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

The Result associated with a .

Contains a set of * transcription results from one or more audio segments, along with additional * information per your request parameters. This can include information relating * to alternative transcriptions, channel identification, partial result * stabilization, language identification, and other transcription-related * data.

See Also:

AWS * API Reference

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

Provides a unique identifier for the Result.

*/ inline const Aws::String& GetResultId() const{ return m_resultId; } /** *

Provides a unique identifier for the Result.

*/ inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; } /** *

Provides a unique identifier for the Result.

*/ inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; } /** *

Provides a unique identifier for the Result.

*/ inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); } /** *

Provides a unique identifier for the Result.

*/ inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); } /** *

Provides a unique identifier for the Result.

*/ inline Result& WithResultId(const Aws::String& value) { SetResultId(value); return *this;} /** *

Provides a unique identifier for the Result.

*/ inline Result& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;} /** *

Provides a unique identifier for the Result.

*/ inline Result& WithResultId(const char* value) { SetResultId(value); return *this;} /** *

The start time, in milliseconds, of the Result.

*/ inline double GetStartTime() const{ return m_startTime; } /** *

The start time, in milliseconds, of the Result.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time, in milliseconds, of the Result.

*/ inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time, in milliseconds, of the Result.

*/ inline Result& WithStartTime(double value) { SetStartTime(value); return *this;} /** *

The end time, in milliseconds, of the Result.

*/ inline double GetEndTime() const{ return m_endTime; } /** *

The end time, in milliseconds, of the Result.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time, in milliseconds, of the Result.

*/ inline void SetEndTime(double value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time, in milliseconds, of the Result.

*/ inline Result& WithEndTime(double value) { SetEndTime(value); return *this;} /** *

Indicates if the segment is complete.

If IsPartial is * true, the segment is not complete. If IsPartial is * false, the segment is complete.

*/ inline bool GetIsPartial() const{ return m_isPartial; } /** *

Indicates if the segment is complete.

If IsPartial is * true, the segment is not complete. If IsPartial is * false, the segment is complete.

*/ inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; } /** *

Indicates if the segment is complete.

If IsPartial is * true, the segment is not complete. If IsPartial is * false, the segment is complete.

*/ inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; } /** *

Indicates if the segment is complete.

If IsPartial is * true, the segment is not complete. If IsPartial is * false, the segment is complete.

*/ inline Result& WithIsPartial(bool value) { SetIsPartial(value); return *this;} /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline const Aws::Vector& GetAlternatives() const{ return m_alternatives; } /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; } /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline void SetAlternatives(const Aws::Vector& value) { m_alternativesHasBeenSet = true; m_alternatives = value; } /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline void SetAlternatives(Aws::Vector&& value) { m_alternativesHasBeenSet = true; m_alternatives = std::move(value); } /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline Result& WithAlternatives(const Aws::Vector& value) { SetAlternatives(value); return *this;} /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline Result& WithAlternatives(Aws::Vector&& value) { SetAlternatives(std::move(value)); return *this;} /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline Result& AddAlternatives(const Alternative& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(value); return *this; } /** *

A list of possible alternative transcriptions for the input audio. Each * alternative may contain one or more of Items, * Entities, or Transcript.

*/ inline Result& AddAlternatives(Alternative&& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(std::move(value)); return *this; } /** *

Indicates which audio channel is associated with the Result.

*/ inline const Aws::String& GetChannelId() const{ return m_channelId; } /** *

Indicates which audio channel is associated with the Result.

*/ inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; } /** *

Indicates which audio channel is associated with the Result.

*/ inline void SetChannelId(const Aws::String& value) { m_channelIdHasBeenSet = true; m_channelId = value; } /** *

Indicates which audio channel is associated with the Result.

*/ inline void SetChannelId(Aws::String&& value) { m_channelIdHasBeenSet = true; m_channelId = std::move(value); } /** *

Indicates which audio channel is associated with the Result.

*/ inline void SetChannelId(const char* value) { m_channelIdHasBeenSet = true; m_channelId.assign(value); } /** *

Indicates which audio channel is associated with the Result.

*/ inline Result& WithChannelId(const Aws::String& value) { SetChannelId(value); return *this;} /** *

Indicates which audio channel is associated with the Result.

*/ inline Result& WithChannelId(Aws::String&& value) { SetChannelId(std::move(value)); return *this;} /** *

Indicates which audio channel is associated with the Result.

*/ inline Result& WithChannelId(const char* value) { SetChannelId(value); return *this;} /** *

The language code that represents the language spoken in your audio * stream.

*/ inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; } /** *

The language code that represents the language spoken in your audio * stream.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The language code that represents the language spoken in your audio * stream.

*/ inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

The language code that represents the language spoken in your audio * stream.

*/ inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

The language code that represents the language spoken in your audio * stream.

*/ inline Result& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;} /** *

The language code that represents the language spoken in your audio * stream.

*/ inline Result& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline const Aws::Vector& GetLanguageIdentification() const{ return m_languageIdentification; } /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; } /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline void SetLanguageIdentification(const Aws::Vector& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = value; } /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline void SetLanguageIdentification(Aws::Vector&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = std::move(value); } /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline Result& WithLanguageIdentification(const Aws::Vector& value) { SetLanguageIdentification(value); return *this;} /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline Result& WithLanguageIdentification(Aws::Vector&& value) { SetLanguageIdentification(std::move(value)); return *this;} /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline Result& AddLanguageIdentification(const LanguageWithScore& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(value); return *this; } /** *

The language code of the dominant language identified in your stream.

*

If you enabled channel identification and each channel of your audio contains * a different language, you may have more than one result.

*/ inline Result& AddLanguageIdentification(LanguageWithScore&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.push_back(std::move(value)); return *this; } private: Aws::String m_resultId; bool m_resultIdHasBeenSet = false; double m_startTime; bool m_startTimeHasBeenSet = false; double m_endTime; bool m_endTimeHasBeenSet = false; bool m_isPartial; bool m_isPartialHasBeenSet = false; Aws::Vector m_alternatives; bool m_alternativesHasBeenSet = false; Aws::String m_channelId; bool m_channelIdHasBeenSet = false; LanguageCode m_languageCode; bool m_languageCodeHasBeenSet = false; Aws::Vector m_languageIdentification; bool m_languageIdentificationHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws