7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/Attribute.h>
9#include <aws/comprehendmedical/model/EntitySubType.h>
10#include <aws/comprehendmedical/model/EntityType.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 {
35 AWS_COMPREHENDMEDICAL_API
Entity() =
default;
45 inline int GetId()
const {
return m_id; }
48 m_idHasBeenSet =
true;
65 m_beginOffsetHasBeenSet =
true;
66 m_beginOffset = value;
82 m_endOffsetHasBeenSet =
true;
96 inline double GetScore()
const {
return m_score; }
99 m_scoreHasBeenSet =
true;
114 template <
typename TextT = Aws::String>
116 m_textHasBeenSet =
true;
117 m_text = std::forward<TextT>(value);
119 template <
typename TextT = Aws::String>
121 SetText(std::forward<TextT>(value));
133 m_categoryHasBeenSet =
true;
149 m_typeHasBeenSet =
true;
164 template <
typename TraitsT = Aws::Vector<Trait>>
166 m_traitsHasBeenSet =
true;
167 m_traits = std::forward<TraitsT>(value);
169 template <
typename TraitsT = Aws::Vector<Trait>>
174 template <
typename TraitsT = Trait>
176 m_traitsHasBeenSet =
true;
177 m_traits.emplace_back(std::forward<TraitsT>(value));
188 template <
typename AttributesT = Aws::Vector<Attribute>>
190 m_attributesHasBeenSet =
true;
191 m_attributes = std::forward<AttributesT>(value);
193 template <
typename AttributesT = Aws::Vector<Attribute>>
198 template <
typename AttributesT = Attribute>
200 m_attributesHasBeenSet =
true;
201 m_attributes.emplace_back(std::forward<AttributesT>(value));
208 int m_beginOffset{0};
223 bool m_idHasBeenSet =
false;
224 bool m_beginOffsetHasBeenSet =
false;
225 bool m_endOffsetHasBeenSet =
false;
226 bool m_scoreHasBeenSet =
false;
227 bool m_textHasBeenSet =
false;
228 bool m_categoryHasBeenSet =
false;
229 bool m_typeHasBeenSet =
false;
230 bool m_traitsHasBeenSet =
false;
231 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