7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/EntitySubType.h>
9#include <aws/comprehendmedical/model/EntityType.h>
10#include <aws/comprehendmedical/model/RelationshipType.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 {
39 AWS_COMPREHENDMEDICAL_API
Attribute(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_COMPREHENDMEDICAL_API
Attribute&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_COMPREHENDMEDICAL_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
50 m_typeHasBeenSet =
true;
64 inline double GetScore()
const {
return m_score; }
67 m_scoreHasBeenSet =
true;
84 m_relationshipScoreHasBeenSet =
true;
85 m_relationshipScore = value;
102 m_relationshipTypeHasBeenSet =
true;
103 m_relationshipType = value;
117 inline int64_t
GetId()
const {
return m_id; }
120 m_idHasBeenSet =
true;
137 m_beginOffsetHasBeenSet =
true;
138 m_beginOffset = value;
154 m_endOffsetHasBeenSet =
true;
169 template <
typename TextT = Aws::String>
171 m_textHasBeenSet =
true;
172 m_text = std::forward<TextT>(value);
174 template <
typename TextT = Aws::String>
176 SetText(std::forward<TextT>(value));
188 m_categoryHasBeenSet =
true;
203 template <
typename TraitsT = Aws::Vector<Trait>>
205 m_traitsHasBeenSet =
true;
206 m_traits = std::forward<TraitsT>(value);
208 template <
typename TraitsT = Aws::Vector<Trait>>
213 template <
typename TraitsT = Trait>
215 m_traitsHasBeenSet =
true;
216 m_traits.emplace_back(std::forward<TraitsT>(value));
225 double m_relationshipScore{0.0};
231 int64_t m_beginOffset{0};
233 int64_t m_endOffset{0};
240 bool m_typeHasBeenSet =
false;
241 bool m_scoreHasBeenSet =
false;
242 bool m_relationshipScoreHasBeenSet =
false;
243 bool m_relationshipTypeHasBeenSet =
false;
244 bool m_idHasBeenSet =
false;
245 bool m_beginOffsetHasBeenSet =
false;
246 bool m_endOffsetHasBeenSet =
false;
247 bool m_textHasBeenSet =
false;
248 bool m_categoryHasBeenSet =
false;
249 bool m_traitsHasBeenSet =
false;
int64_t GetEndOffset() const
Attribute & WithEndOffset(int64_t value)
Attribute & WithScore(double value)
bool ScoreHasBeenSet() const
void SetType(EntitySubType value)
Attribute & WithTraits(TraitsT &&value)
void SetRelationshipScore(double value)
bool IdHasBeenSet() const
void SetScore(double value)
void SetCategory(EntityType value)
const Aws::String & GetText() const
Attribute & WithId(int64_t value)
Attribute & WithRelationshipType(RelationshipType value)
bool CategoryHasBeenSet() const
void SetRelationshipType(RelationshipType value)
void SetEndOffset(int64_t value)
AWS_COMPREHENDMEDICAL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetId(int64_t value)
int64_t GetBeginOffset() const
bool TraitsHasBeenSet() const
Attribute & WithText(TextT &&value)
Attribute & WithRelationshipScore(double value)
AWS_COMPREHENDMEDICAL_API Attribute()=default
EntitySubType GetType() const
bool TextHasBeenSet() const
bool EndOffsetHasBeenSet() const
AWS_COMPREHENDMEDICAL_API Attribute(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetText(TextT &&value)
Attribute & WithType(EntitySubType value)
bool TypeHasBeenSet() const
void SetBeginOffset(int64_t value)
Attribute & WithCategory(EntityType value)
Attribute & WithBeginOffset(int64_t value)
bool BeginOffsetHasBeenSet() const
double GetRelationshipScore() const
bool RelationshipScoreHasBeenSet() const
bool RelationshipTypeHasBeenSet() const
const Aws::Vector< Trait > & GetTraits() const
Attribute & AddTraits(TraitsT &&value)
RelationshipType GetRelationshipType() const
void SetTraits(TraitsT &&value)
AWS_COMPREHENDMEDICAL_API Attribute & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EntityType GetCategory() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector