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>
25namespace ComprehendMedical {
50 inline int GetId()
const {
return m_id; }
53 m_idHasBeenSet =
true;
68 template <
typename TextT = Aws::String>
70 m_textHasBeenSet =
true;
71 m_text = std::forward<TextT>(value);
73 template <
typename TextT = Aws::String>
75 SetText(std::forward<TextT>(value));
88 m_categoryHasBeenSet =
true;
105 m_typeHasBeenSet =
true;
122 m_scoreHasBeenSet =
true;
139 m_beginOffsetHasBeenSet =
true;
140 m_beginOffset = value;
156 m_endOffsetHasBeenSet =
true;
174 template <
typename AttributesT = Aws::Vector<RxNormAttribute>>
176 m_attributesHasBeenSet =
true;
177 m_attributes = std::forward<AttributesT>(value);
179 template <
typename AttributesT = Aws::Vector<RxNormAttribute>>
184 template <
typename AttributesT = RxNormAttribute>
186 m_attributesHasBeenSet =
true;
187 m_attributes.emplace_back(std::forward<AttributesT>(value));
198 template <
typename TraitsT = Aws::Vector<RxNormTrait>>
200 m_traitsHasBeenSet =
true;
201 m_traits = std::forward<TraitsT>(value);
203 template <
typename TraitsT = Aws::Vector<RxNormTrait>>
208 template <
typename TraitsT = RxNormTrait>
210 m_traitsHasBeenSet =
true;
211 m_traits.emplace_back(std::forward<TraitsT>(value));
223 template <
typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
225 m_rxNormConceptsHasBeenSet =
true;
226 m_rxNormConcepts = std::forward<RxNormConceptsT>(value);
228 template <
typename RxNormConceptsT = Aws::Vector<RxNormConcept>>
233 template <
typename RxNormConceptsT = RxNormConcept>
235 m_rxNormConceptsHasBeenSet =
true;
236 m_rxNormConcepts.emplace_back(std::forward<RxNormConceptsT>(value));
251 int m_beginOffset{0};
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;
RxNormEntity & WithBeginOffset(int value)
RxNormEntity & WithCategory(RxNormEntityCategory value)
RxNormEntity & WithId(int value)
RxNormEntity & AddRxNormConcepts(RxNormConceptsT &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
bool IdHasBeenSet() const
int GetBeginOffset() const
bool TypeHasBeenSet() const
void SetEndOffset(int value)
RxNormEntity & AddTraits(TraitsT &&value)
RxNormEntity & AddAttributes(AttributesT &&value)
void SetBeginOffset(int value)
bool TraitsHasBeenSet() const
const Aws::Vector< RxNormTrait > & GetTraits() const
bool TextHasBeenSet() 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)
bool BeginOffsetHasBeenSet() const
void SetCategory(RxNormEntityCategory value)
const Aws::Vector< RxNormConcept > & GetRxNormConcepts() const
RxNormEntity & WithEndOffset(int value)
bool RxNormConceptsHasBeenSet() const
RxNormEntity & WithScore(double value)
void SetText(TextT &&value)
void SetType(RxNormEntityType value)
RxNormEntity & WithAttributes(AttributesT &&value)
void SetTraits(TraitsT &&value)
RxNormEntity & WithType(RxNormEntityType value)
RxNormEntity & WithRxNormConcepts(RxNormConceptsT &&value)
AWS_COMPREHENDMEDICAL_API RxNormEntity(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
bool ScoreHasBeenSet() const
AWS_COMPREHENDMEDICAL_API RxNormEntity()=default
void SetAttributes(AttributesT &&value)
RxNormEntityCategory GetCategory() const
bool AttributesHasBeenSet() const
void SetScore(double value)
RxNormEntityType GetType() const
bool CategoryHasBeenSet() const
bool EndOffsetHasBeenSet() 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