7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormAttributeType.h>
9#include <aws/comprehendmedical/model/RxNormTrait.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace ComprehendMedical {
48 m_typeHasBeenSet =
true;
62 inline double GetScore()
const {
return m_score; }
65 m_scoreHasBeenSet =
true;
82 m_relationshipScoreHasBeenSet =
true;
83 m_relationshipScore = value;
96 inline int GetId()
const {
return m_id; }
99 m_idHasBeenSet =
true;
116 m_beginOffsetHasBeenSet =
true;
117 m_beginOffset = value;
133 m_endOffsetHasBeenSet =
true;
148 template <
typename TextT = Aws::String>
150 m_textHasBeenSet =
true;
151 m_text = std::forward<TextT>(value);
153 template <
typename TextT = Aws::String>
155 SetText(std::forward<TextT>(value));
168 template <
typename TraitsT = Aws::Vector<RxNormTrait>>
170 m_traitsHasBeenSet =
true;
171 m_traits = std::forward<TraitsT>(value);
173 template <
typename TraitsT = Aws::Vector<RxNormTrait>>
178 template <
typename TraitsT = RxNormTrait>
180 m_traitsHasBeenSet =
true;
181 m_traits.emplace_back(std::forward<TraitsT>(value));
190 double m_relationshipScore{0.0};
194 int m_beginOffset{0};
201 bool m_typeHasBeenSet =
false;
202 bool m_scoreHasBeenSet =
false;
203 bool m_relationshipScoreHasBeenSet =
false;
204 bool m_idHasBeenSet =
false;
205 bool m_beginOffsetHasBeenSet =
false;
206 bool m_endOffsetHasBeenSet =
false;
207 bool m_textHasBeenSet =
false;
208 bool m_traitsHasBeenSet =
false;
bool TextHasBeenSet() const
void SetText(TextT &&value)
RxNormAttributeType GetType() const
void SetScore(double value)
AWS_COMPREHENDMEDICAL_API RxNormAttribute()=default
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
bool TraitsHasBeenSet() const
bool EndOffsetHasBeenSet() const
void SetRelationshipScore(double value)
bool RelationshipScoreHasBeenSet() const
void SetBeginOffset(int value)
RxNormAttribute & AddTraits(TraitsT &&value)
const Aws::String & GetText() const
bool ScoreHasBeenSet() const
RxNormAttribute & WithBeginOffset(int value)
int GetBeginOffset() const
AWS_COMPREHENDMEDICAL_API RxNormAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithScore(double value)
const Aws::Vector< RxNormTrait > & GetTraits() const
void SetEndOffset(int value)
RxNormAttribute & WithText(TextT &&value)
bool TypeHasBeenSet() const
double GetRelationshipScore() const
RxNormAttribute & WithEndOffset(int value)
bool BeginOffsetHasBeenSet() const
AWS_COMPREHENDMEDICAL_API RxNormAttribute(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithTraits(TraitsT &&value)
void SetType(RxNormAttributeType value)
bool IdHasBeenSet() const
void SetTraits(TraitsT &&value)
RxNormAttribute & WithRelationshipScore(double value)
RxNormAttribute & WithId(int value)
RxNormAttribute & WithType(RxNormAttributeType 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