AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RxNormEntity.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehendmedical/model/RxNormEntityCategory.h>
10#include <aws/comprehendmedical/model/RxNormEntityType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/comprehendmedical/model/RxNormAttribute.h>
13#include <aws/comprehendmedical/model/RxNormTrait.h>
14#include <aws/comprehendmedical/model/RxNormConcept.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ComprehendMedical
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_COMPREHENDMEDICAL_API RxNormEntity();
46 AWS_COMPREHENDMEDICAL_API RxNormEntity(Aws::Utils::Json::JsonView jsonValue);
47 AWS_COMPREHENDMEDICAL_API RxNormEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline int GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
59 inline RxNormEntity& WithId(int value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetText() const{ return m_text; }
67 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
68 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
69 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
70 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
71 inline RxNormEntity& WithText(const Aws::String& value) { SetText(value); return *this;}
72 inline RxNormEntity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
73 inline RxNormEntity& WithText(const char* value) { SetText(value); return *this;}
75
77
81 inline const RxNormEntityCategory& GetCategory() const{ return m_category; }
82 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
83 inline void SetCategory(const RxNormEntityCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
84 inline void SetCategory(RxNormEntityCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
85 inline RxNormEntity& WithCategory(const RxNormEntityCategory& value) { SetCategory(value); return *this;}
86 inline RxNormEntity& WithCategory(RxNormEntityCategory&& value) { SetCategory(std::move(value)); return *this;}
88
90
94 inline const RxNormEntityType& GetType() const{ return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(const RxNormEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
97 inline void SetType(RxNormEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
98 inline RxNormEntity& WithType(const RxNormEntityType& value) { SetType(value); return *this;}
99 inline RxNormEntity& WithType(RxNormEntityType&& value) { SetType(std::move(value)); return *this;}
101
103
107 inline double GetScore() const{ return m_score; }
108 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
109 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
110 inline RxNormEntity& WithScore(double value) { SetScore(value); return *this;}
112
114
118 inline int GetBeginOffset() const{ return m_beginOffset; }
119 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
120 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
121 inline RxNormEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
123
125
129 inline int GetEndOffset() const{ return m_endOffset; }
130 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
131 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
132 inline RxNormEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
134
136
142 inline const Aws::Vector<RxNormAttribute>& GetAttributes() const{ return m_attributes; }
143 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
144 inline void SetAttributes(const Aws::Vector<RxNormAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
145 inline void SetAttributes(Aws::Vector<RxNormAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
146 inline RxNormEntity& WithAttributes(const Aws::Vector<RxNormAttribute>& value) { SetAttributes(value); return *this;}
147 inline RxNormEntity& WithAttributes(Aws::Vector<RxNormAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
148 inline RxNormEntity& AddAttributes(const RxNormAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
149 inline RxNormEntity& AddAttributes(RxNormAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
151
153
156 inline const Aws::Vector<RxNormTrait>& GetTraits() const{ return m_traits; }
157 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
158 inline void SetTraits(const Aws::Vector<RxNormTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
159 inline void SetTraits(Aws::Vector<RxNormTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
160 inline RxNormEntity& WithTraits(const Aws::Vector<RxNormTrait>& value) { SetTraits(value); return *this;}
161 inline RxNormEntity& WithTraits(Aws::Vector<RxNormTrait>&& value) { SetTraits(std::move(value)); return *this;}
162 inline RxNormEntity& AddTraits(const RxNormTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
163 inline RxNormEntity& AddTraits(RxNormTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
165
167
171 inline const Aws::Vector<RxNormConcept>& GetRxNormConcepts() const{ return m_rxNormConcepts; }
172 inline bool RxNormConceptsHasBeenSet() const { return m_rxNormConceptsHasBeenSet; }
173 inline void SetRxNormConcepts(const Aws::Vector<RxNormConcept>& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = value; }
174 inline void SetRxNormConcepts(Aws::Vector<RxNormConcept>&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = std::move(value); }
176 inline RxNormEntity& WithRxNormConcepts(Aws::Vector<RxNormConcept>&& value) { SetRxNormConcepts(std::move(value)); return *this;}
177 inline RxNormEntity& AddRxNormConcepts(const RxNormConcept& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(value); return *this; }
178 inline RxNormEntity& AddRxNormConcepts(RxNormConcept&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(std::move(value)); return *this; }
180 private:
181
182 int m_id;
183 bool m_idHasBeenSet = false;
184
185 Aws::String m_text;
186 bool m_textHasBeenSet = false;
187
188 RxNormEntityCategory m_category;
189 bool m_categoryHasBeenSet = false;
190
191 RxNormEntityType m_type;
192 bool m_typeHasBeenSet = false;
193
194 double m_score;
195 bool m_scoreHasBeenSet = false;
196
197 int m_beginOffset;
198 bool m_beginOffsetHasBeenSet = false;
199
200 int m_endOffset;
201 bool m_endOffsetHasBeenSet = false;
202
203 Aws::Vector<RxNormAttribute> m_attributes;
204 bool m_attributesHasBeenSet = false;
205
207 bool m_traitsHasBeenSet = false;
208
209 Aws::Vector<RxNormConcept> m_rxNormConcepts;
210 bool m_rxNormConceptsHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace ComprehendMedical
215} // namespace Aws
RxNormEntity & WithText(const Aws::String &value)
RxNormEntity & WithBeginOffset(int value)
RxNormEntity & WithAttributes(Aws::Vector< RxNormAttribute > &&value)
void SetTraits(const Aws::Vector< RxNormTrait > &value)
RxNormEntity & WithText(Aws::String &&value)
void SetRxNormConcepts(Aws::Vector< RxNormConcept > &&value)
RxNormEntity & WithTraits(const Aws::Vector< RxNormTrait > &value)
RxNormEntity & WithText(const char *value)
RxNormEntity & WithRxNormConcepts(Aws::Vector< RxNormConcept > &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCategory(const RxNormEntityCategory &value)
void SetText(const Aws::String &value)
RxNormEntity & AddTraits(RxNormTrait &&value)
RxNormEntity & WithCategory(RxNormEntityCategory &&value)
RxNormEntity & WithCategory(const RxNormEntityCategory &value)
AWS_COMPREHENDMEDICAL_API RxNormEntity()
void SetAttributes(Aws::Vector< RxNormAttribute > &&value)
const Aws::Vector< RxNormTrait > & GetTraits() const
RxNormEntity & WithRxNormConcepts(const Aws::Vector< RxNormConcept > &value)
const Aws::Vector< RxNormAttribute > & GetAttributes() const
void SetType(RxNormEntityType &&value)
RxNormEntity & AddRxNormConcepts(const RxNormConcept &value)
void SetAttributes(const Aws::Vector< RxNormAttribute > &value)
AWS_COMPREHENDMEDICAL_API RxNormEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const RxNormEntityType &value)
RxNormEntity & AddTraits(const RxNormTrait &value)
const Aws::Vector< RxNormConcept > & GetRxNormConcepts() const
RxNormEntity & WithScore(double value)
void SetTraits(Aws::Vector< RxNormTrait > &&value)
RxNormEntity & AddRxNormConcepts(RxNormConcept &&value)
AWS_COMPREHENDMEDICAL_API RxNormEntity(Aws::Utils::Json::JsonView jsonValue)
void SetRxNormConcepts(const Aws::Vector< RxNormConcept > &value)
RxNormEntity & AddAttributes(const RxNormAttribute &value)
const RxNormEntityCategory & GetCategory() const
const Aws::String & GetText() const
RxNormEntity & WithType(RxNormEntityType &&value)
RxNormEntity & WithTraits(Aws::Vector< RxNormTrait > &&value)
RxNormEntity & WithAttributes(const Aws::Vector< RxNormAttribute > &value)
RxNormEntity & AddAttributes(RxNormAttribute &&value)
const RxNormEntityType & GetType() const
void SetCategory(RxNormEntityCategory &&value)
RxNormEntity & WithType(const RxNormEntityType &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