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#include <aws/crt/cbor/Cbor.h>
25namespace ComprehendMedical {
41 AWS_COMPREHENDMEDICAL_API
RxNormEntity(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_COMPREHENDMEDICAL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
50 inline int64_t
GetId()
const {
return m_id; }
52 inline void SetId(int64_t value) {
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 int64_t m_beginOffset{0};
253 int64_t m_endOffset{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 & WithCategory(RxNormEntityCategory value)
int64_t GetBeginOffset() const
RxNormEntity & AddRxNormConcepts(RxNormConceptsT &&value)
bool IdHasBeenSet() const
bool TypeHasBeenSet() const
RxNormEntity & AddTraits(TraitsT &&value)
RxNormEntity & AddAttributes(AttributesT &&value)
void SetEndOffset(int64_t value)
bool TraitsHasBeenSet() const
void SetId(int64_t value)
AWS_COMPREHENDMEDICAL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< RxNormTrait > & GetTraits() const
bool TextHasBeenSet() const
RxNormEntity & WithText(TextT &&value)
const Aws::Vector< RxNormAttribute > & GetAttributes() const
void SetRxNormConcepts(RxNormConceptsT &&value)
bool BeginOffsetHasBeenSet() const
void SetCategory(RxNormEntityCategory value)
RxNormEntity & WithBeginOffset(int64_t value)
const Aws::Vector< RxNormConcept > & GetRxNormConcepts() const
bool RxNormConceptsHasBeenSet() const
RxNormEntity & WithScore(double value)
AWS_COMPREHENDMEDICAL_API RxNormEntity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetText(TextT &&value)
void SetType(RxNormEntityType value)
AWS_COMPREHENDMEDICAL_API RxNormEntity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RxNormEntity & WithAttributes(AttributesT &&value)
void SetTraits(TraitsT &&value)
RxNormEntity & WithType(RxNormEntityType value)
RxNormEntity & WithRxNormConcepts(RxNormConceptsT &&value)
RxNormEntity & WithEndOffset(int64_t value)
const Aws::String & GetText() const
bool ScoreHasBeenSet() const
AWS_COMPREHENDMEDICAL_API RxNormEntity()=default
int64_t GetEndOffset() const
void SetAttributes(AttributesT &&value)
RxNormEntityCategory GetCategory() const
bool AttributesHasBeenSet() const
void SetScore(double value)
RxNormEntityType GetType() const
bool CategoryHasBeenSet() const
bool EndOffsetHasBeenSet() const
RxNormEntity & WithId(int64_t value)
RxNormEntity & WithTraits(TraitsT &&value)
void SetBeginOffset(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector