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
40 AWS_COMPREHENDMEDICAL_API
Entity() =
default;
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; }
96 template<
typename TextT = Aws::String>
97 void SetText(TextT&& value) { m_textHasBeenSet =
true; m_text = std::forward<TextT>(value); }
98 template<
typename TextT = Aws::String>
128 template<
typename TraitsT = Aws::Vector<Trait>>
129 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet =
true; m_traits = std::forward<TraitsT>(value); }
130 template<
typename TraitsT = Aws::Vector<Trait>>
132 template<
typename TraitsT = Trait>
133 Entity&
AddTraits(TraitsT&& value) { m_traitsHasBeenSet =
true; m_traits.emplace_back(std::forward<TraitsT>(value));
return *
this; }
142 template<
typename AttributesT = Aws::Vector<Attribute>>
143 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes = std::forward<AttributesT>(value); }
144 template<
typename AttributesT = Aws::Vector<Attribute>>
146 template<
typename AttributesT = Attribute>
147 Entity&
AddAttributes(AttributesT&& value) { m_attributesHasBeenSet =
true; m_attributes.emplace_back(std::forward<AttributesT>(value));
return *
this; }
152 bool m_idHasBeenSet =
false;
154 int m_beginOffset{0};
155 bool m_beginOffsetHasBeenSet =
false;
158 bool m_endOffsetHasBeenSet =
false;
161 bool m_scoreHasBeenSet =
false;
164 bool m_textHasBeenSet =
false;
167 bool m_categoryHasBeenSet =
false;
170 bool m_typeHasBeenSet =
false;
173 bool m_traitsHasBeenSet =
false;
176 bool m_attributesHasBeenSet =
false;
AWS_COMPREHENDMEDICAL_API Entity(Aws::Utils::Json::JsonView jsonValue)
EntityType GetCategory() const
bool AttributesHasBeenSet() const
void SetType(EntitySubType value)
Entity & AddAttributes(AttributesT &&value)
void SetTraits(TraitsT &&value)
Entity & WithType(EntitySubType value)
bool IdHasBeenSet() const
bool EndOffsetHasBeenSet() const
Entity & WithCategory(EntityType value)
Entity & AddTraits(TraitsT &&value)
bool TraitsHasBeenSet() const
bool ScoreHasBeenSet() const
Entity & WithText(TextT &&value)
bool CategoryHasBeenSet() const
bool TextHasBeenSet() const
void SetEndOffset(int value)
void SetText(TextT &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
void SetScore(double value)
Entity & WithId(int value)
AWS_COMPREHENDMEDICAL_API Entity()=default
Entity & WithBeginOffset(int value)
void SetCategory(EntityType value)
AWS_COMPREHENDMEDICAL_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & WithAttributes(AttributesT &&value)
const Aws::Vector< Trait > & GetTraits() const
const Aws::Vector< Attribute > & GetAttributes() const
int GetBeginOffset() const
void SetBeginOffset(int value)
bool BeginOffsetHasBeenSet() const
const Aws::String & GetText() const
void SetAttributes(AttributesT &&value)
Entity & WithEndOffset(int value)
EntitySubType GetType() const
Entity & WithTraits(TraitsT &&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