/** * 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 personally identifiable information (PII) 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 Entity { public: AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(); AWS_TRANSCRIBESTREAMINGSERVICE_API Entity(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSCRIBESTREAMINGSERVICE_API Entity& 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 * PII.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

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

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

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

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

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

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

*/ inline Entity& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

*/ inline Entity& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of PII identified. For example, NAME or * CREDIT_DEBIT_NUMBER.

*/ inline Entity& WithType(const char* value) { SetType(value); return *this;} /** *

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The word or words identified as PII.

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

The confidence score associated with the identified PII 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 PII 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 PII 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 PII 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 Entity& 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_type; bool m_typeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace TranscribeStreamingService } // namespace Aws