AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RxNormEntity.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormAttribute.h>
9#include <aws/comprehendmedical/model/RxNormConcept.h>
10#include <aws/comprehendmedical/model/RxNormEntityCategory.h>
11#include <aws/comprehendmedical/model/RxNormEntityType.h>
12#include <aws/comprehendmedical/model/RxNormTrait.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ComprehendMedical {
26namespace Model {
27
39 public:
40 AWS_COMPREHENDMEDICAL_API RxNormEntity() = default;
41 AWS_COMPREHENDMEDICAL_API RxNormEntity(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHENDMEDICAL_API RxNormEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline int GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(int value) {
53 m_idHasBeenSet = true;
54 m_id = value;
55 }
56 inline RxNormEntity& WithId(int value) {
57 SetId(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetText() const { return m_text; }
67 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
68 template <typename TextT = Aws::String>
69 void SetText(TextT&& value) {
70 m_textHasBeenSet = true;
71 m_text = std::forward<TextT>(value);
72 }
73 template <typename TextT = Aws::String>
74 RxNormEntity& WithText(TextT&& value) {
75 SetText(std::forward<TextT>(value));
76 return *this;
77 }
79
81
85 inline RxNormEntityCategory GetCategory() const { return m_category; }
86 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
87 inline void SetCategory(RxNormEntityCategory value) {
88 m_categoryHasBeenSet = true;
89 m_category = value;
90 }
92 SetCategory(value);
93 return *this;
94 }
96
98
102 inline RxNormEntityType GetType() const { return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(RxNormEntityType value) {
105 m_typeHasBeenSet = true;
106 m_type = value;
107 }
109 SetType(value);
110 return *this;
111 }
113
115
119 inline double GetScore() const { return m_score; }
120 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
121 inline void SetScore(double value) {
122 m_scoreHasBeenSet = true;
123 m_score = value;
124 }
125 inline RxNormEntity& WithScore(double value) {
126 SetScore(value);
127 return *this;
128 }
130
132
136 inline int GetBeginOffset() const { return m_beginOffset; }
137 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
138 inline void SetBeginOffset(int value) {
139 m_beginOffsetHasBeenSet = true;
140 m_beginOffset = value;
141 }
142 inline RxNormEntity& WithBeginOffset(int value) {
143 SetBeginOffset(value);
144 return *this;
145 }
147
149
153 inline int GetEndOffset() const { return m_endOffset; }
154 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
155 inline void SetEndOffset(int value) {
156 m_endOffsetHasBeenSet = true;
157 m_endOffset = value;
158 }
159 inline RxNormEntity& WithEndOffset(int value) {
160 SetEndOffset(value);
161 return *this;
162 }
164
166
172 inline const Aws::Vector<RxNormAttribute>& GetAttributes() const { return m_attributes; }
173 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
174 template <typename AttributesT = Aws::Vector<RxNormAttribute>>
175 void SetAttributes(AttributesT&& value) {
176 m_attributesHasBeenSet = true;
177 m_attributes = std::forward<AttributesT>(value);
178 }
179 template <typename AttributesT = Aws::Vector<RxNormAttribute>>
180 RxNormEntity& WithAttributes(AttributesT&& value) {
181 SetAttributes(std::forward<AttributesT>(value));
182 return *this;
183 }
184 template <typename AttributesT = RxNormAttribute>
185 RxNormEntity& AddAttributes(AttributesT&& value) {
186 m_attributesHasBeenSet = true;
187 m_attributes.emplace_back(std::forward<AttributesT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Vector<RxNormTrait>& GetTraits() const { return m_traits; }
197 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
198 template <typename TraitsT = Aws::Vector<RxNormTrait>>
199 void SetTraits(TraitsT&& value) {
200 m_traitsHasBeenSet = true;
201 m_traits = std::forward<TraitsT>(value);
202 }
203 template <typename TraitsT = Aws::Vector<RxNormTrait>>
204 RxNormEntity& WithTraits(TraitsT&& value) {
205 SetTraits(std::forward<TraitsT>(value));
206 return *this;
207 }
208 template <typename TraitsT = RxNormTrait>
209 RxNormEntity& AddTraits(TraitsT&& value) {
210 m_traitsHasBeenSet = true;
211 m_traits.emplace_back(std::forward<TraitsT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::Vector<RxNormConcept>& GetRxNormConcepts() const { return m_rxNormConcepts; }
222 inline bool RxNormConceptsHasBeenSet() const { return m_rxNormConceptsHasBeenSet; }
223 template <typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
224 void SetRxNormConcepts(RxNormConceptsT&& value) {
225 m_rxNormConceptsHasBeenSet = true;
226 m_rxNormConcepts = std::forward<RxNormConceptsT>(value);
227 }
228 template <typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
229 RxNormEntity& WithRxNormConcepts(RxNormConceptsT&& value) {
230 SetRxNormConcepts(std::forward<RxNormConceptsT>(value));
231 return *this;
232 }
233 template <typename RxNormConceptsT = RxNormConcept>
234 RxNormEntity& AddRxNormConcepts(RxNormConceptsT&& value) {
235 m_rxNormConceptsHasBeenSet = true;
236 m_rxNormConcepts.emplace_back(std::forward<RxNormConceptsT>(value));
237 return *this;
238 }
240 private:
241 int m_id{0};
242
243 Aws::String m_text;
244
246
248
249 double m_score{0.0};
250
251 int m_beginOffset{0};
252
253 int m_endOffset{0};
254
255 Aws::Vector<RxNormAttribute> m_attributes;
256
258
259 Aws::Vector<RxNormConcept> m_rxNormConcepts;
260 bool m_idHasBeenSet = false;
261 bool m_textHasBeenSet = false;
262 bool m_categoryHasBeenSet = false;
263 bool m_typeHasBeenSet = false;
264 bool m_scoreHasBeenSet = false;
265 bool m_beginOffsetHasBeenSet = false;
266 bool m_endOffsetHasBeenSet = false;
267 bool m_attributesHasBeenSet = false;
268 bool m_traitsHasBeenSet = false;
269 bool m_rxNormConceptsHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace ComprehendMedical
274} // namespace Aws
RxNormEntity & WithBeginOffset(int value)
RxNormEntity & WithCategory(RxNormEntityCategory value)
RxNormEntity & AddRxNormConcepts(RxNormConceptsT &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
RxNormEntity & AddTraits(TraitsT &&value)
RxNormEntity & AddAttributes(AttributesT &&value)
const Aws::Vector< RxNormTrait > & GetTraits() const
RxNormEntity & WithText(TextT &&value)
const Aws::Vector< RxNormAttribute > & GetAttributes() const
void SetRxNormConcepts(RxNormConceptsT &&value)
AWS_COMPREHENDMEDICAL_API RxNormEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(RxNormEntityCategory value)
const Aws::Vector< RxNormConcept > & GetRxNormConcepts() const
RxNormEntity & WithScore(double value)
void SetType(RxNormEntityType value)
RxNormEntity & WithAttributes(AttributesT &&value)
RxNormEntity & WithType(RxNormEntityType value)
RxNormEntity & WithRxNormConcepts(RxNormConceptsT &&value)
AWS_COMPREHENDMEDICAL_API RxNormEntity(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
AWS_COMPREHENDMEDICAL_API RxNormEntity()=default
RxNormEntityCategory GetCategory() const
RxNormEntity & WithTraits(TraitsT &&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