AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TextT = Aws::String>
69 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
70 template<typename TextT = Aws::String>
71 RxNormEntity& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
73
75
79 inline RxNormEntityCategory GetCategory() const { return m_category; }
80 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
81 inline void SetCategory(RxNormEntityCategory value) { m_categoryHasBeenSet = true; m_category = value; }
82 inline RxNormEntity& WithCategory(RxNormEntityCategory value) { SetCategory(value); return *this;}
84
86
90 inline RxNormEntityType GetType() const { return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(RxNormEntityType value) { m_typeHasBeenSet = true; m_type = value; }
93 inline RxNormEntity& WithType(RxNormEntityType value) { SetType(value); return *this;}
95
97
101 inline double GetScore() const { return m_score; }
102 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
103 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
104 inline RxNormEntity& WithScore(double value) { SetScore(value); return *this;}
106
108
112 inline int GetBeginOffset() const { return m_beginOffset; }
113 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
114 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
115 inline RxNormEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
117
119
123 inline int GetEndOffset() const { return m_endOffset; }
124 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
125 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
126 inline RxNormEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
128
130
136 inline const Aws::Vector<RxNormAttribute>& GetAttributes() const { return m_attributes; }
137 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
138 template<typename AttributesT = Aws::Vector<RxNormAttribute>>
139 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
140 template<typename AttributesT = Aws::Vector<RxNormAttribute>>
141 RxNormEntity& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
142 template<typename AttributesT = RxNormAttribute>
143 RxNormEntity& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
145
147
150 inline const Aws::Vector<RxNormTrait>& GetTraits() const { return m_traits; }
151 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
152 template<typename TraitsT = Aws::Vector<RxNormTrait>>
153 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits = std::forward<TraitsT>(value); }
154 template<typename TraitsT = Aws::Vector<RxNormTrait>>
155 RxNormEntity& WithTraits(TraitsT&& value) { SetTraits(std::forward<TraitsT>(value)); return *this;}
156 template<typename TraitsT = RxNormTrait>
157 RxNormEntity& AddTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits.emplace_back(std::forward<TraitsT>(value)); return *this; }
159
161
165 inline const Aws::Vector<RxNormConcept>& GetRxNormConcepts() const { return m_rxNormConcepts; }
166 inline bool RxNormConceptsHasBeenSet() const { return m_rxNormConceptsHasBeenSet; }
167 template<typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
168 void SetRxNormConcepts(RxNormConceptsT&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = std::forward<RxNormConceptsT>(value); }
169 template<typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
170 RxNormEntity& WithRxNormConcepts(RxNormConceptsT&& value) { SetRxNormConcepts(std::forward<RxNormConceptsT>(value)); return *this;}
171 template<typename RxNormConceptsT = RxNormConcept>
172 RxNormEntity& AddRxNormConcepts(RxNormConceptsT&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.emplace_back(std::forward<RxNormConceptsT>(value)); return *this; }
174 private:
175
176 int m_id{0};
177 bool m_idHasBeenSet = false;
178
179 Aws::String m_text;
180 bool m_textHasBeenSet = false;
181
183 bool m_categoryHasBeenSet = false;
184
186 bool m_typeHasBeenSet = false;
187
188 double m_score{0.0};
189 bool m_scoreHasBeenSet = false;
190
191 int m_beginOffset{0};
192 bool m_beginOffsetHasBeenSet = false;
193
194 int m_endOffset{0};
195 bool m_endOffsetHasBeenSet = false;
196
197 Aws::Vector<RxNormAttribute> m_attributes;
198 bool m_attributesHasBeenSet = false;
199
201 bool m_traitsHasBeenSet = false;
202
203 Aws::Vector<RxNormConcept> m_rxNormConcepts;
204 bool m_rxNormConceptsHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace ComprehendMedical
209} // 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