7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/EntitySubType.h>
9#include <aws/comprehendmedical/model/EntityType.h>
10#include <aws/comprehendmedical/model/RelationshipType.h>
11#include <aws/comprehendmedical/model/Trait.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
24namespace ComprehendMedical {
50 m_typeHasBeenSet =
true;
64 inline double GetScore()
const {
return m_score; }
67 m_scoreHasBeenSet =
true;
84 m_relationshipScoreHasBeenSet =
true;
85 m_relationshipScore = value;
102 m_relationshipTypeHasBeenSet =
true;
103 m_relationshipType = value;
117 inline int GetId()
const {
return m_id; }
120 m_idHasBeenSet =
true;
137 m_beginOffsetHasBeenSet =
true;
138 m_beginOffset = value;
154 m_endOffsetHasBeenSet =
true;
169 template <
typename TextT = Aws::String>
171 m_textHasBeenSet =
true;
172 m_text = std::forward<TextT>(value);
174 template <
typename TextT = Aws::String>
176 SetText(std::forward<TextT>(value));
188 m_categoryHasBeenSet =
true;
203 template <
typename TraitsT = Aws::Vector<Trait>>
205 m_traitsHasBeenSet =
true;
206 m_traits = std::forward<TraitsT>(value);
208 template <
typename TraitsT = Aws::Vector<Trait>>
213 template <
typename TraitsT = Trait>
215 m_traitsHasBeenSet =
true;
216 m_traits.emplace_back(std::forward<TraitsT>(value));
225 double m_relationshipScore{0.0};
231 int m_beginOffset{0};
240 bool m_typeHasBeenSet =
false;
241 bool m_scoreHasBeenSet =
false;
242 bool m_relationshipScoreHasBeenSet =
false;
243 bool m_relationshipTypeHasBeenSet =
false;
244 bool m_idHasBeenSet =
false;
245 bool m_beginOffsetHasBeenSet =
false;
246 bool m_endOffsetHasBeenSet =
false;
247 bool m_textHasBeenSet =
false;
248 bool m_categoryHasBeenSet =
false;
249 bool m_traitsHasBeenSet =
false;
Attribute & WithScore(double value)
bool ScoreHasBeenSet() const
void SetType(EntitySubType value)
Attribute & WithTraits(TraitsT &&value)
void SetRelationshipScore(double value)
void SetEndOffset(int value)
Attribute & WithBeginOffset(int value)
bool IdHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScore(double value)
AWS_COMPREHENDMEDICAL_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(EntityType value)
const Aws::String & GetText() const
Attribute & WithRelationshipType(RelationshipType value)
bool CategoryHasBeenSet() const
void SetRelationshipType(RelationshipType value)
bool TraitsHasBeenSet() const
void SetBeginOffset(int value)
Attribute & WithText(TextT &&value)
Attribute & WithRelationshipScore(double value)
AWS_COMPREHENDMEDICAL_API Attribute()=default
EntitySubType GetType() const
bool TextHasBeenSet() const
bool EndOffsetHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithId(int value)
void SetText(TextT &&value)
Attribute & WithType(EntitySubType value)
bool TypeHasBeenSet() const
Attribute & WithCategory(EntityType value)
bool BeginOffsetHasBeenSet() const
Attribute & WithEndOffset(int value)
double GetRelationshipScore() const
bool RelationshipScoreHasBeenSet() const
bool RelationshipTypeHasBeenSet() const
const Aws::Vector< Trait > & GetTraits() const
Attribute & AddTraits(TraitsT &&value)
int GetBeginOffset() const
RelationshipType GetRelationshipType() const
void SetTraits(TraitsT &&value)
EntityType GetCategory() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue