1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/comprehend/Comprehend_EXPORTS.h> 8 #include <aws/comprehend/model/PiiEntityType.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Comprehend 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Specifies one of the label or labels that categorize the personally 28 * identifiable information (PII) entity being analyzed.</p><p><h3>See Also:</h3> 29 * <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityLabel">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_COMPREHEND_API EntityLabel 34 { 35 public: 36 EntityLabel(); 37 EntityLabel(Aws::Utils::Json::JsonView jsonValue); 38 EntityLabel& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The name of the label.</p> 44 */ GetName()45 inline const PiiEntityType& GetName() const{ return m_name; } 46 47 /** 48 * <p>The name of the label.</p> 49 */ NameHasBeenSet()50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 51 52 /** 53 * <p>The name of the label.</p> 54 */ SetName(const PiiEntityType & value)55 inline void SetName(const PiiEntityType& value) { m_nameHasBeenSet = true; m_name = value; } 56 57 /** 58 * <p>The name of the label.</p> 59 */ SetName(PiiEntityType && value)60 inline void SetName(PiiEntityType&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 61 62 /** 63 * <p>The name of the label.</p> 64 */ WithName(const PiiEntityType & value)65 inline EntityLabel& WithName(const PiiEntityType& value) { SetName(value); return *this;} 66 67 /** 68 * <p>The name of the label.</p> 69 */ WithName(PiiEntityType && value)70 inline EntityLabel& WithName(PiiEntityType&& value) { SetName(std::move(value)); return *this;} 71 72 73 /** 74 * <p>The level of confidence that Amazon Comprehend has in the accuracy of the 75 * detection.</p> 76 */ GetScore()77 inline double GetScore() const{ return m_score; } 78 79 /** 80 * <p>The level of confidence that Amazon Comprehend has in the accuracy of the 81 * detection.</p> 82 */ ScoreHasBeenSet()83 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } 84 85 /** 86 * <p>The level of confidence that Amazon Comprehend has in the accuracy of the 87 * detection.</p> 88 */ SetScore(double value)89 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } 90 91 /** 92 * <p>The level of confidence that Amazon Comprehend has in the accuracy of the 93 * detection.</p> 94 */ WithScore(double value)95 inline EntityLabel& WithScore(double value) { SetScore(value); return *this;} 96 97 private: 98 99 PiiEntityType m_name; 100 bool m_nameHasBeenSet; 101 102 double m_score; 103 bool m_scoreHasBeenSet; 104 }; 105 106 } // namespace Model 107 } // namespace Comprehend 108 } // namespace Aws 109