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

Contains entities identified as personal health information (PHI) in your * transcription output, along with various associated attributes. Examples include * category, confidence score, type, stability score, and start and end * times.

See Also:

AWS * API Reference

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

The start time, in milliseconds, of the utterance that was identified as * PHI.

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

The start time, in milliseconds, of the utterance that was identified as * PHI.

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

The start time, in milliseconds, of the utterance that was identified as * PHI.

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

The start time, in milliseconds, of the utterance that was identified as * PHI.

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

The end time, in milliseconds, of the utterance that was identified as * PHI.

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

The end time, in milliseconds, of the utterance that was identified as * PHI.

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

The end time, in milliseconds, of the utterance that was identified as * PHI.

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

The end time, in milliseconds, of the utterance that was identified as * PHI.

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

The category of information identified. The only category is * PHI.

*/ inline const Aws::String& GetCategory() const{ return m_category; } /** *

The category of information identified. The only category is * PHI.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

The category of information identified. The only category is * PHI.

*/ inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

The category of information identified. The only category is * PHI.

*/ inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

The category of information identified. The only category is * PHI.

*/ inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); } /** *

The category of information identified. The only category is * PHI.

*/ inline MedicalEntity& WithCategory(const Aws::String& value) { SetCategory(value); return *this;} /** *

The category of information identified. The only category is * PHI.

*/ inline MedicalEntity& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;} /** *

The category of information identified. The only category is * PHI.

*/ inline MedicalEntity& WithCategory(const char* value) { SetCategory(value); return *this;} /** *

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The word or words identified as PHI.

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

The confidence score associated with the identified PHI entity in your * audio.

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

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

The confidence score associated with the identified PHI entity in your * audio.

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

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

The confidence score associated with the identified PHI entity in your * audio.

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

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

The confidence score associated with the identified PHI entity in your * audio.

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

*/ inline MedicalEntity& WithConfidence(double value) { SetConfidence(value); return *this;} private: double m_startTime; bool m_startTimeHasBeenSet = false; double m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_category; bool m_categoryHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws