7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormAttributeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehendmedical/model/RxNormTrait.h>
24namespace ComprehendMedical
62 inline double GetScore()
const {
return m_score; }
64 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
75 inline void SetRelationshipScore(
double value) { m_relationshipScoreHasBeenSet =
true; m_relationshipScore = value; }
84 inline int GetId()
const {
return m_id; }
86 inline void SetId(
int value) { m_idHasBeenSet =
true; m_id = value; }
97 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
108 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
118 template<
typename TextT = Aws::String>
119 void SetText(TextT&& value) { m_textHasBeenSet =
true; m_text = std::forward<TextT>(value); }
120 template<
typename TextT = Aws::String>
132 template<
typename TraitsT = Aws::Vector<RxNormTrait>>
133 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet =
true; m_traits = std::forward<TraitsT>(value); }
134 template<
typename TraitsT = Aws::Vector<RxNormTrait>>
136 template<
typename TraitsT = RxNormTrait>
137 RxNormAttribute&
AddTraits(TraitsT&& value) { m_traitsHasBeenSet =
true; m_traits.emplace_back(std::forward<TraitsT>(value));
return *
this; }
142 bool m_typeHasBeenSet =
false;
145 bool m_scoreHasBeenSet =
false;
147 double m_relationshipScore{0.0};
148 bool m_relationshipScoreHasBeenSet =
false;
151 bool m_idHasBeenSet =
false;
153 int m_beginOffset{0};
154 bool m_beginOffsetHasBeenSet =
false;
157 bool m_endOffsetHasBeenSet =
false;
160 bool m_textHasBeenSet =
false;
163 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