7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehendmedical/model/EntityType.h>
10#include <aws/comprehendmedical/model/EntitySubType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/comprehendmedical/model/Trait.h>
13#include <aws/comprehendmedical/model/Attribute.h>
26namespace ComprehendMedical
51 inline int GetId()
const{
return m_id; }
53 inline void SetId(
int value) { m_idHasBeenSet =
true; m_id = value; }
64 inline void SetBeginOffset(
int value) { m_beginOffsetHasBeenSet =
true; m_beginOffset = value; }
75 inline void SetEndOffset(
int value) { m_endOffsetHasBeenSet =
true; m_endOffset = value; }
84 inline double GetScore()
const{
return m_score; }
86 inline void SetScore(
double value) { m_scoreHasBeenSet =
true; m_score = value; }
98 inline void SetText(
const char* value) { m_textHasBeenSet =
true; m_text.assign(value); }
138 inline Entity&
AddTraits(
const Trait& value) { m_traitsHasBeenSet =
true; m_traits.push_back(value);
return *
this; }
139 inline Entity&
AddTraits(
Trait&& value) { m_traitsHasBeenSet =
true; m_traits.push_back(std::move(value));
return *
this; }
158 bool m_idHasBeenSet =
false;
161 bool m_beginOffsetHasBeenSet =
false;
164 bool m_endOffsetHasBeenSet =
false;
167 bool m_scoreHasBeenSet =
false;
170 bool m_textHasBeenSet =
false;
173 bool m_categoryHasBeenSet =
false;
176 bool m_typeHasBeenSet =
false;
179 bool m_traitsHasBeenSet =
false;
182 bool m_attributesHasBeenSet =
false;
AWS_COMPREHENDMEDICAL_API Entity(Aws::Utils::Json::JsonView jsonValue)
bool AttributesHasBeenSet() const
Entity & AddTraits(Trait &&value)
Entity & WithCategory(EntityType &&value)
Entity & WithText(const Aws::String &value)
const EntitySubType & GetType() const
void SetAttributes(const Aws::Vector< Attribute > &value)
bool IdHasBeenSet() const
bool EndOffsetHasBeenSet() const
Entity & WithType(EntitySubType &&value)
bool TraitsHasBeenSet() const
bool ScoreHasBeenSet() const
bool CategoryHasBeenSet() const
void SetCategory(const EntityType &value)
bool TextHasBeenSet() const
Entity & WithTraits(const Aws::Vector< Trait > &value)
void SetEndOffset(int value)
Entity & WithAttributes(const Aws::Vector< Attribute > &value)
void SetType(EntitySubType &&value)
Entity & WithText(Aws::String &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
void SetScore(double value)
void SetAttributes(Aws::Vector< Attribute > &&value)
Entity & WithType(const EntitySubType &value)
Entity & WithId(int value)
Entity & AddAttributes(Attribute &&value)
void SetTraits(const Aws::Vector< Trait > &value)
Entity & WithBeginOffset(int value)
void SetText(Aws::String &&value)
Entity & WithTraits(Aws::Vector< Trait > &&value)
AWS_COMPREHENDMEDICAL_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & AddAttributes(const Attribute &value)
void SetType(const EntitySubType &value)
void SetText(const Aws::String &value)
const Aws::Vector< Trait > & GetTraits() const
const Aws::Vector< Attribute > & GetAttributes() const
const EntityType & GetCategory() const
Entity & WithCategory(const EntityType &value)
int GetBeginOffset() const
AWS_COMPREHENDMEDICAL_API Entity()
Entity & WithAttributes(Aws::Vector< Attribute > &&value)
void SetBeginOffset(int value)
bool BeginOffsetHasBeenSet() const
const Aws::String & GetText() const
Entity & WithText(const char *value)
Entity & AddTraits(const Trait &value)
void SetTraits(Aws::Vector< Trait > &&value)
void SetText(const char *value)
Entity & WithEndOffset(int value)
void SetCategory(EntityType &&value)
Entity & WithScore(double 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