AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ICD10CMAttribute.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/ICD10CMAttributeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehendmedical/model/ICD10CMEntityType.h>
12#include <aws/comprehendmedical/model/ICD10CMRelationshipType.h>
13#include <aws/comprehendmedical/model/ICD10CMTrait.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ComprehendMedical
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_COMPREHENDMEDICAL_API ICD10CMAttribute() = default;
44 AWS_COMPREHENDMEDICAL_API ICD10CMAttribute(Aws::Utils::Json::JsonView jsonValue);
45 AWS_COMPREHENDMEDICAL_API ICD10CMAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline ICD10CMAttributeType GetType() const { return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(ICD10CMAttributeType value) { m_typeHasBeenSet = true; m_type = value; }
57 inline ICD10CMAttribute& WithType(ICD10CMAttributeType value) { SetType(value); return *this;}
59
61
65 inline double GetScore() const { return m_score; }
66 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
67 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
68 inline ICD10CMAttribute& WithScore(double value) { SetScore(value); return *this;}
70
72
76 inline double GetRelationshipScore() const { return m_relationshipScore; }
77 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
78 inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
79 inline ICD10CMAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
81
83
87 inline int GetId() const { return m_id; }
88 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
90 inline ICD10CMAttribute& WithId(int value) { SetId(value); return *this;}
92
94
98 inline int GetBeginOffset() const { return m_beginOffset; }
99 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
100 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
101 inline ICD10CMAttribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
103
105
109 inline int GetEndOffset() const { return m_endOffset; }
110 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
111 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
112 inline ICD10CMAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
114
116
119 inline const Aws::String& GetText() const { return m_text; }
120 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
121 template<typename TextT = Aws::String>
122 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
123 template<typename TextT = Aws::String>
124 ICD10CMAttribute& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
126
128
133 inline const Aws::Vector<ICD10CMTrait>& GetTraits() const { return m_traits; }
134 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
135 template<typename TraitsT = Aws::Vector<ICD10CMTrait>>
136 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits = std::forward<TraitsT>(value); }
137 template<typename TraitsT = Aws::Vector<ICD10CMTrait>>
138 ICD10CMAttribute& WithTraits(TraitsT&& value) { SetTraits(std::forward<TraitsT>(value)); return *this;}
139 template<typename TraitsT = ICD10CMTrait>
140 ICD10CMAttribute& AddTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits.emplace_back(std::forward<TraitsT>(value)); return *this; }
142
144
148 inline ICD10CMEntityType GetCategory() const { return m_category; }
149 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
150 inline void SetCategory(ICD10CMEntityType value) { m_categoryHasBeenSet = true; m_category = value; }
151 inline ICD10CMAttribute& WithCategory(ICD10CMEntityType value) { SetCategory(value); return *this;}
153
155
160 inline ICD10CMRelationshipType GetRelationshipType() const { return m_relationshipType; }
161 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
162 inline void SetRelationshipType(ICD10CMRelationshipType value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
165 private:
166
168 bool m_typeHasBeenSet = false;
169
170 double m_score{0.0};
171 bool m_scoreHasBeenSet = false;
172
173 double m_relationshipScore{0.0};
174 bool m_relationshipScoreHasBeenSet = false;
175
176 int m_id{0};
177 bool m_idHasBeenSet = false;
178
179 int m_beginOffset{0};
180 bool m_beginOffsetHasBeenSet = false;
181
182 int m_endOffset{0};
183 bool m_endOffsetHasBeenSet = false;
184
185 Aws::String m_text;
186 bool m_textHasBeenSet = false;
187
189 bool m_traitsHasBeenSet = false;
190
192 bool m_categoryHasBeenSet = false;
193
195 bool m_relationshipTypeHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace ComprehendMedical
200} // namespace Aws
AWS_COMPREHENDMEDICAL_API ICD10CMAttribute(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
ICD10CMAttribute & WithTraits(TraitsT &&value)
ICD10CMAttribute & AddTraits(TraitsT &&value)
ICD10CMAttribute & WithType(ICD10CMAttributeType value)
ICD10CMAttribute & WithCategory(ICD10CMEntityType value)
AWS_COMPREHENDMEDICAL_API ICD10CMAttribute()=default
void SetRelationshipType(ICD10CMRelationshipType value)
ICD10CMRelationshipType GetRelationshipType() const
ICD10CMAttribute & WithScore(double value)
ICD10CMAttribute & WithText(TextT &&value)
ICD10CMAttribute & WithRelationshipScore(double value)
const Aws::Vector< ICD10CMTrait > & GetTraits() const
AWS_COMPREHENDMEDICAL_API ICD10CMAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
ICD10CMAttribute & WithRelationshipType(ICD10CMRelationshipType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue