/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a PII entity.See Also:
AWS
* API Reference
The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline double GetScore() const{ return m_score; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The level of confidence that Amazon Comprehend has in the accuracy of the * detection.
*/ inline PiiEntity& WithScore(double value) { SetScore(value); return *this;} /** *The entity's type.
*/ inline const PiiEntityType& GetType() const{ return m_type; } /** *The entity's type.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The entity's type.
*/ inline void SetType(const PiiEntityType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The entity's type.
*/ inline void SetType(PiiEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The entity's type.
*/ inline PiiEntity& WithType(const PiiEntityType& value) { SetType(value); return *this;} /** *The entity's type.
*/ inline PiiEntity& WithType(PiiEntityType&& value) { SetType(std::move(value)); return *this;} /** *The zero-based offset from the beginning of the source text to the first * character in the entity.
*/ inline int GetBeginOffset() const{ return m_beginOffset; } /** *The zero-based offset from the beginning of the source text to the first * character in the entity.
*/ inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; } /** *The zero-based offset from the beginning of the source text to the first * character in the entity.
*/ inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; } /** *The zero-based offset from the beginning of the source text to the first * character in the entity.
*/ inline PiiEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;} /** *The zero-based offset from the beginning of the source text to the last * character in the entity.
*/ inline int GetEndOffset() const{ return m_endOffset; } /** *The zero-based offset from the beginning of the source text to the last * character in the entity.
*/ inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; } /** *The zero-based offset from the beginning of the source text to the last * character in the entity.
*/ inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; } /** *The zero-based offset from the beginning of the source text to the last * character in the entity.
*/ inline PiiEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;} private: double m_score; bool m_scoreHasBeenSet = false; PiiEntityType m_type; bool m_typeHasBeenSet = false; int m_beginOffset; bool m_beginOffsetHasBeenSet = false; int m_endOffset; bool m_endOffsetHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws