/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 of transcribing a portion of the input audio stream. *

See Also:

AWS * API Reference

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

A unique identifier for the result.

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

The offset in seconds from the beginning of the audio stream to the beginning * of the result.

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

The offset in seconds from the beginning of the audio stream to the beginning * of the result.

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

The offset in seconds from the beginning of the audio stream to the beginning * of the result.

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

The offset in seconds from the beginning of the audio stream to the beginning * of the result.

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

The offset in seconds from the beginning of the audio stream to the end of * the result.

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

The offset in seconds from the beginning of the audio stream to the end of * the result.

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

The offset in seconds from the beginning of the audio stream to the end of * the result.

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

The offset in seconds from the beginning of the audio stream to the end of * the result.

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

Amazon Transcribe divides the incoming audio stream into segments at natural * points in the audio. Transcription results are returned based on these segments. *

The IsPartial field is true to indicate that * Amazon Transcribe has additional transcription data to send, false * to indicate that this is the last transcription result for the segment.

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

Amazon Transcribe divides the incoming audio stream into segments at natural * points in the audio. Transcription results are returned based on these segments. *

The IsPartial field is true to indicate that * Amazon Transcribe has additional transcription data to send, false * to indicate that this is the last transcription result for the segment.

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

Amazon Transcribe divides the incoming audio stream into segments at natural * points in the audio. Transcription results are returned based on these segments. *

The IsPartial field is true to indicate that * Amazon Transcribe has additional transcription data to send, false * to indicate that this is the last transcription result for the segment.

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

Amazon Transcribe divides the incoming audio stream into segments at natural * points in the audio. Transcription results are returned based on these segments. *

The IsPartial field is true to indicate that * Amazon Transcribe has additional transcription data to send, false * to indicate that this is the last transcription result for the segment.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

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

A list of possible transcriptions for the audio. Each alternative typically * contains one item that contains the result of the * transcription.

*/ inline Result& AddAlternatives(Alternative&& value) { m_alternativesHasBeenSet = true; m_alternatives.push_back(std::move(value)); return *this; } private: Aws::String m_resultId; bool m_resultIdHasBeenSet; double m_startTime; bool m_startTimeHasBeenSet; double m_endTime; bool m_endTimeHasBeenSet; bool m_isPartial; bool m_isPartialHasBeenSet; Aws::Vector m_alternatives; bool m_alternativesHasBeenSet; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws