AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attribute.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/EntitySubType.h>
9#include <aws/comprehendmedical/model/RelationshipType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/comprehendmedical/model/EntityType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/comprehendmedical/model/Trait.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ComprehendMedical
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_COMPREHENDMEDICAL_API Attribute() = default;
44 AWS_COMPREHENDMEDICAL_API Attribute(Aws::Utils::Json::JsonView jsonValue);
45 AWS_COMPREHENDMEDICAL_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline EntitySubType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(EntitySubType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline Attribute& WithType(EntitySubType value) { SetType(value); return *this;}
58
60
64 inline double GetScore() const { return m_score; }
65 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
66 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
67 inline Attribute& WithScore(double value) { SetScore(value); return *this;}
69
71
75 inline double GetRelationshipScore() const { return m_relationshipScore; }
76 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
77 inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
78 inline Attribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
80
82
87 inline RelationshipType GetRelationshipType() const { return m_relationshipType; }
88 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
89 inline void SetRelationshipType(RelationshipType value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
92
94
99 inline int GetId() const { return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
102 inline Attribute& WithId(int value) { SetId(value); return *this;}
104
106
110 inline int GetBeginOffset() const { return m_beginOffset; }
111 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
112 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
113 inline Attribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
115
117
121 inline int GetEndOffset() const { return m_endOffset; }
122 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
123 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
124 inline Attribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
126
128
131 inline const Aws::String& GetText() const { return m_text; }
132 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
133 template<typename TextT = Aws::String>
134 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
135 template<typename TextT = Aws::String>
136 Attribute& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
138
140
143 inline EntityType GetCategory() const { return m_category; }
144 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
145 inline void SetCategory(EntityType value) { m_categoryHasBeenSet = true; m_category = value; }
146 inline Attribute& WithCategory(EntityType value) { SetCategory(value); return *this;}
148
150
153 inline const Aws::Vector<Trait>& GetTraits() const { return m_traits; }
154 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
155 template<typename TraitsT = Aws::Vector<Trait>>
156 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits = std::forward<TraitsT>(value); }
157 template<typename TraitsT = Aws::Vector<Trait>>
158 Attribute& WithTraits(TraitsT&& value) { SetTraits(std::forward<TraitsT>(value)); return *this;}
159 template<typename TraitsT = Trait>
160 Attribute& AddTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits.emplace_back(std::forward<TraitsT>(value)); return *this; }
162 private:
163
165 bool m_typeHasBeenSet = false;
166
167 double m_score{0.0};
168 bool m_scoreHasBeenSet = false;
169
170 double m_relationshipScore{0.0};
171 bool m_relationshipScoreHasBeenSet = false;
172
174 bool m_relationshipTypeHasBeenSet = false;
175
176 int m_id{0};
177 bool m_idHasBeenSet = false;
178
179 int m_beginOffset{0};
180 bool m_beginOffsetHasBeenSet = false;
181
182 int m_endOffset{0};
183 bool m_endOffsetHasBeenSet = false;
184
185 Aws::String m_text;
186 bool m_textHasBeenSet = false;
187
189 bool m_categoryHasBeenSet = false;
190
191 Aws::Vector<Trait> m_traits;
192 bool m_traitsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ComprehendMedical
197} // namespace Aws
Attribute & WithScore(double value)
Definition Attribute.h:67
void SetType(EntitySubType value)
Definition Attribute.h:55
Attribute & WithTraits(TraitsT &&value)
Definition Attribute.h:158
Attribute & WithBeginOffset(int value)
Definition Attribute.h:113
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHENDMEDICAL_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
Definition Attribute.h:131
Attribute & WithRelationshipType(RelationshipType value)
Definition Attribute.h:90
void SetRelationshipType(RelationshipType value)
Definition Attribute.h:89
Attribute & WithText(TextT &&value)
Definition Attribute.h:136
Attribute & WithRelationshipScore(double value)
Definition Attribute.h:78
AWS_COMPREHENDMEDICAL_API Attribute()=default
AWS_COMPREHENDMEDICAL_API Attribute(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithType(EntitySubType value)
Definition Attribute.h:56
Attribute & WithCategory(EntityType value)
Definition Attribute.h:146
Attribute & WithEndOffset(int value)
Definition Attribute.h:124
const Aws::Vector< Trait > & GetTraits() const
Definition Attribute.h:153
Attribute & AddTraits(TraitsT &&value)
Definition Attribute.h:160
RelationshipType GetRelationshipType() const
Definition Attribute.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue