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/ICD10CMTraitName.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>Contextual information for the entity. The traits recognized by InferICD10CM
28    * are <code>DIAGNOSIS</code>, <code>SIGN</code>, <code>SYMPTOM</code>, and
29    * <code>NEGATION</code>.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ICD10CMTrait">AWS
31    * API Reference</a></p>
32    */
33   class AWS_COMPREHENDMEDICAL_API ICD10CMTrait
34   {
35   public:
36     ICD10CMTrait();
37     ICD10CMTrait(Aws::Utils::Json::JsonView jsonValue);
38     ICD10CMTrait& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>Provides a name or contextual description about the trait.</p>
44      */
GetName()45     inline const ICD10CMTraitName& GetName() const{ return m_name; }
46 
47     /**
48      * <p>Provides a name or contextual description about the trait.</p>
49      */
NameHasBeenSet()50     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
52     /**
53      * <p>Provides a name or contextual description about the trait.</p>
54      */
SetName(const ICD10CMTraitName & value)55     inline void SetName(const ICD10CMTraitName& value) { m_nameHasBeenSet = true; m_name = value; }
56 
57     /**
58      * <p>Provides a name or contextual description about the trait.</p>
59      */
SetName(ICD10CMTraitName && value)60     inline void SetName(ICD10CMTraitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
62     /**
63      * <p>Provides a name or contextual description about the trait.</p>
64      */
WithName(const ICD10CMTraitName & value)65     inline ICD10CMTrait& WithName(const ICD10CMTraitName& value) { SetName(value); return *this;}
66 
67     /**
68      * <p>Provides a name or contextual description about the trait.</p>
69      */
WithName(ICD10CMTraitName && value)70     inline ICD10CMTrait& WithName(ICD10CMTraitName&& value) { SetName(std::move(value)); return *this;}
71 
72 
73     /**
74      * <p>The level of confidence that Amazon Comprehend Medical has that the segment
75      * of text is correctly recognized as a trait.</p>
76      */
GetScore()77     inline double GetScore() const{ return m_score; }
78 
79     /**
80      * <p>The level of confidence that Amazon Comprehend Medical has that the segment
81      * of text is correctly recognized as a trait.</p>
82      */
ScoreHasBeenSet()83     inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
84 
85     /**
86      * <p>The level of confidence that Amazon Comprehend Medical has that the segment
87      * of text is correctly recognized as a trait.</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 Medical has that the segment
93      * of text is correctly recognized as a trait.</p>
94      */
WithScore(double value)95     inline ICD10CMTrait& WithScore(double value) { SetScore(value); return *this;}
96 
97   private:
98 
99     ICD10CMTraitName m_name;
100     bool m_nameHasBeenSet;
101 
102     double m_score;
103     bool m_scoreHasBeenSet;
104   };
105 
106 } // namespace Model
107 } // namespace ComprehendMedical
108 } // namespace Aws
109