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>
27namespace ComprehendMedical
56 inline int GetId()
const {
return m_id; }
58 inline void SetId(
int value) { m_idHasBeenSet =
true; m_id = value; }
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>
103 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
114 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
125 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
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>>
142 template<
typename AttributesT = RxNormAttribute>
143 RxNormEntity&
AddAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes.emplace_back(std::forward<AttributesT>(value));
return *
this; }
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>>
156 template<
typename TraitsT = RxNormTrait>
157 RxNormEntity&
AddTraits(TraitsT&& value) { m_traitsHasBeenSet =
true; m_traits.emplace_back(std::forward<TraitsT>(value));
return *
this; }
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>>
171 template<
typename RxNormConceptsT = RxNormConcept>
172 RxNormEntity&
AddRxNormConcepts(RxNormConceptsT&& value) { m_rxNormConceptsHasBeenSet =
true; m_rxNormConcepts.emplace_back(std::forward<RxNormConceptsT>(value));
return *
this; }
177 bool m_idHasBeenSet =
false;
180 bool m_textHasBeenSet =
false;
183 bool m_categoryHasBeenSet =
false;
186 bool m_typeHasBeenSet =
false;
189 bool m_scoreHasBeenSet =
false;
191 int m_beginOffset{0};
192 bool m_beginOffsetHasBeenSet =
false;
195 bool m_endOffsetHasBeenSet =
false;
198 bool m_attributesHasBeenSet =
false;
201 bool m_traitsHasBeenSet =
false;
204 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