7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/EntitySubType.h>
9#include <aws/comprehendmedical/model/RelationshipType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/comprehendmedical/model/EntityType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/comprehendmedical/model/Trait.h>
26namespace ComprehendMedical
66 inline double GetScore()
const{
return m_score; }
68 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
79 inline void SetRelationshipScore(
double value) { m_relationshipScoreHasBeenSet =
true; m_relationshipScore = value; }
103 inline int GetId()
const{
return m_id; }
105 inline void SetId(
int value) { m_idHasBeenSet =
true; m_id = value; }
116 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
127 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
139 inline void SetText(
const char* value) { m_textHasBeenSet =
true; m_text.assign(value); }
173 bool m_typeHasBeenSet =
false;
176 bool m_scoreHasBeenSet =
false;
178 double m_relationshipScore;
179 bool m_relationshipScoreHasBeenSet =
false;
182 bool m_relationshipTypeHasBeenSet =
false;
185 bool m_idHasBeenSet =
false;
188 bool m_beginOffsetHasBeenSet =
false;
191 bool m_endOffsetHasBeenSet =
false;
194 bool m_textHasBeenSet =
false;
197 bool m_categoryHasBeenSet =
false;
200 bool m_traitsHasBeenSet =
false;
Attribute & AddTraits(Trait &&value)
Attribute & WithScore(double value)
bool ScoreHasBeenSet() const
void SetRelationshipScore(double value)
void SetEndOffset(int value)
void SetText(const char *value)
Attribute & WithBeginOffset(int value)
AWS_COMPREHENDMEDICAL_API Attribute()
bool IdHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScore(double value)
void SetRelationshipType(const RelationshipType &value)
Attribute & WithTraits(Aws::Vector< Trait > &&value)
AWS_COMPREHENDMEDICAL_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithType(const EntitySubType &value)
void SetTraits(Aws::Vector< Trait > &&value)
const Aws::String & GetText() const
void SetCategory(EntityType &&value)
bool CategoryHasBeenSet() const
Attribute & WithCategory(const EntityType &value)
Attribute & WithType(EntitySubType &&value)
Attribute & WithRelationshipType(RelationshipType &&value)
bool TraitsHasBeenSet() const
Attribute & WithText(const char *value)
void SetBeginOffset(int value)
Attribute & WithRelationshipScore(double value)
Attribute & AddTraits(const Trait &value)
bool TextHasBeenSet() const
bool EndOffsetHasBeenSet() const
const RelationshipType & GetRelationshipType() const
AWS_COMPREHENDMEDICAL_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithId(int value)
void SetText(const Aws::String &value)
Attribute & WithText(const Aws::String &value)
bool TypeHasBeenSet() const
void SetTraits(const Aws::Vector< Trait > &value)
void SetCategory(const EntityType &value)
Attribute & WithRelationshipType(const RelationshipType &value)
void SetRelationshipType(RelationshipType &&value)
bool BeginOffsetHasBeenSet() const
Attribute & WithEndOffset(int value)
double GetRelationshipScore() const
bool RelationshipScoreHasBeenSet() const
bool RelationshipTypeHasBeenSet() const
void SetType(EntitySubType &&value)
const Aws::Vector< Trait > & GetTraits() const
int GetBeginOffset() const
const EntitySubType & GetType() const
Attribute & WithCategory(EntityType &&value)
const EntityType & GetCategory() const
void SetText(Aws::String &&value)
Attribute & WithText(Aws::String &&value)
Attribute & WithTraits(const Aws::Vector< Trait > &value)
void SetType(const EntitySubType &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