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>
14#include <aws/crt/cbor/Cbor.h>
24namespace ComprehendMedical {
35 AWS_COMPREHENDMEDICAL_API
Entity() =
default;
36 AWS_COMPREHENDMEDICAL_API
Entity(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPREHENDMEDICAL_API
Entity&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_COMPREHENDMEDICAL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
45 inline int64_t
GetId()
const {
return m_id; }
47 inline void SetId(int64_t value) {
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 int64_t m_beginOffset{0};
210 int64_t m_endOffset{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;
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)
Entity & WithId(int64_t value)
bool TraitsHasBeenSet() const
bool ScoreHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Entity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Entity & WithText(TextT &&value)
bool CategoryHasBeenSet() const
bool TextHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Entity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEndOffset(int64_t value)
Entity & WithBeginOffset(int64_t value)
void SetText(TextT &&value)
bool TypeHasBeenSet() const
void SetScore(double value)
Entity & WithEndOffset(int64_t value)
AWS_COMPREHENDMEDICAL_API Entity()=default
void SetId(int64_t value)
void SetCategory(EntityType value)
Entity & WithAttributes(AttributesT &&value)
void SetBeginOffset(int64_t value)
const Aws::Vector< Trait > & GetTraits() const
AWS_COMPREHENDMEDICAL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< Attribute > & GetAttributes() const
int64_t GetBeginOffset() const
bool BeginOffsetHasBeenSet() const
const Aws::String & GetText() const
int64_t GetEndOffset() const
void SetAttributes(AttributesT &&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