/** * 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 { /** *

A word, phrase, or punctuation mark in your transcription output, along with * various associated attributes, such as confidence score, type, and start and end * times.

See Also:

AWS * API Reference

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

The start time, in milliseconds, of the transcribed item.

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

The start time, in milliseconds, of the transcribed item.

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

The start time, in milliseconds, of the transcribed item.

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

The start time, in milliseconds, of the transcribed item.

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

The end time, in milliseconds, of the transcribed item.

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

The end time, in milliseconds, of the transcribed item.

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

The end time, in milliseconds, of the transcribed item.

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

The end time, in milliseconds, of the transcribed item.

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

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline const ItemType& GetType() const{ return m_type; } /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline void SetType(const ItemType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline void SetType(ItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline MedicalItem& WithType(const ItemType& value) { SetType(value); return *this;} /** *

The type of item identified. Options are: PRONUNCIATION (spoken * words) and PUNCTUATION.

*/ inline MedicalItem& WithType(ItemType&& value) { SetType(std::move(value)); return *this;} /** *

The word or punctuation that was transcribed.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The word or punctuation that was transcribed.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The word or punctuation that was transcribed.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The word or punctuation that was transcribed.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The word or punctuation that was transcribed.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The word or punctuation that was transcribed.

*/ inline MedicalItem& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The word or punctuation that was transcribed.

*/ inline MedicalItem& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The word or punctuation that was transcribed.

*/ inline MedicalItem& WithContent(const char* value) { SetContent(value); return *this;} /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

The confidence score associated with a word or phrase in your transcript.

*

Confidence scores are values between 0 and 1. A larger value indicates a * higher probability that the identified item correctly matches the item spoken in * your media.

*/ inline MedicalItem& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline const Aws::String& GetSpeaker() const{ return m_speaker; } /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline bool SpeakerHasBeenSet() const { return m_speakerHasBeenSet; } /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline void SetSpeaker(const Aws::String& value) { m_speakerHasBeenSet = true; m_speaker = value; } /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline void SetSpeaker(Aws::String&& value) { m_speakerHasBeenSet = true; m_speaker = std::move(value); } /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline void SetSpeaker(const char* value) { m_speakerHasBeenSet = true; m_speaker.assign(value); } /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline MedicalItem& WithSpeaker(const Aws::String& value) { SetSpeaker(value); return *this;} /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline MedicalItem& WithSpeaker(Aws::String&& value) { SetSpeaker(std::move(value)); return *this;} /** *

If speaker partitioning is enabled, Speaker labels the speaker * of the specified item.

*/ inline MedicalItem& WithSpeaker(const char* value) { SetSpeaker(value); return *this;} private: double m_startTime; bool m_startTimeHasBeenSet = false; double m_endTime; bool m_endTimeHasBeenSet = false; ItemType m_type; bool m_typeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; Aws::String m_speaker; bool m_speakerHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws