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/comprehendmedical/ComprehendMedical_EXPORTS.h> 8 #include <aws/comprehendmedical/model/AttributeName.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 ComprehendMedical 22 { 23 namespace Model 24 { 25 26 /** 27 * <p> Provides contextual information about the extracted entity. </p><p><h3>See 28 * Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Trait">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_COMPREHENDMEDICAL_API Trait 33 { 34 public: 35 Trait(); 36 Trait(Aws::Utils::Json::JsonView jsonValue); 37 Trait& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p> Provides a name or contextual description about the trait. </p> 43 */ GetName()44 inline const AttributeName& GetName() const{ return m_name; } 45 46 /** 47 * <p> Provides a name or contextual description about the trait. </p> 48 */ NameHasBeenSet()49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 50 51 /** 52 * <p> Provides a name or contextual description about the trait. </p> 53 */ SetName(const AttributeName & value)54 inline void SetName(const AttributeName& value) { m_nameHasBeenSet = true; m_name = value; } 55 56 /** 57 * <p> Provides a name or contextual description about the trait. </p> 58 */ SetName(AttributeName && value)59 inline void SetName(AttributeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 60 61 /** 62 * <p> Provides a name or contextual description about the trait. </p> 63 */ WithName(const AttributeName & value)64 inline Trait& WithName(const AttributeName& value) { SetName(value); return *this;} 65 66 /** 67 * <p> Provides a name or contextual description about the trait. </p> 68 */ WithName(AttributeName && value)69 inline Trait& WithName(AttributeName&& value) { SetName(std::move(value)); return *this;} 70 71 72 /** 73 * <p> The level of confidence that Amazon Comprehend Medical has in the accuracy 74 * of this trait.</p> 75 */ GetScore()76 inline double GetScore() const{ return m_score; } 77 78 /** 79 * <p> The level of confidence that Amazon Comprehend Medical has in the accuracy 80 * of this trait.</p> 81 */ ScoreHasBeenSet()82 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } 83 84 /** 85 * <p> The level of confidence that Amazon Comprehend Medical has in the accuracy 86 * of this trait.</p> 87 */ SetScore(double value)88 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } 89 90 /** 91 * <p> The level of confidence that Amazon Comprehend Medical has in the accuracy 92 * of this trait.</p> 93 */ WithScore(double value)94 inline Trait& WithScore(double value) { SetScore(value); return *this;} 95 96 private: 97 98 AttributeName m_name; 99 bool m_nameHasBeenSet; 100 101 double m_score; 102 bool m_scoreHasBeenSet; 103 }; 104 105 } // namespace Model 106 } // namespace ComprehendMedical 107 } // namespace Aws 108