AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const EntitySubType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const EntitySubType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(EntitySubType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline Attribute& WithType(const EntitySubType& value) { SetType(value); return *this;}
58 inline Attribute& WithType(EntitySubType&& value) { SetType(std::move(value)); return *this;}
60
62
66 inline double GetScore() const{ return m_score; }
67 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
68 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
69 inline Attribute& WithScore(double value) { SetScore(value); return *this;}
71
73
77 inline double GetRelationshipScore() const{ return m_relationshipScore; }
78 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
79 inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
80 inline Attribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
82
84
89 inline const RelationshipType& GetRelationshipType() const{ return m_relationshipType; }
90 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
91 inline void SetRelationshipType(const RelationshipType& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
92 inline void SetRelationshipType(RelationshipType&& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = std::move(value); }
93 inline Attribute& WithRelationshipType(const RelationshipType& value) { SetRelationshipType(value); return *this;}
94 inline Attribute& WithRelationshipType(RelationshipType&& value) { SetRelationshipType(std::move(value)); return *this;}
96
98
103 inline int GetId() const{ return m_id; }
104 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
105 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
106 inline Attribute& WithId(int value) { SetId(value); return *this;}
108
110
114 inline int GetBeginOffset() const{ return m_beginOffset; }
115 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
116 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
117 inline Attribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
119
121
125 inline int GetEndOffset() const{ return m_endOffset; }
126 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
127 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
128 inline Attribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
130
132
135 inline const Aws::String& GetText() const{ return m_text; }
136 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
137 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
138 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
139 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
140 inline Attribute& WithText(const Aws::String& value) { SetText(value); return *this;}
141 inline Attribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
142 inline Attribute& WithText(const char* value) { SetText(value); return *this;}
144
146
149 inline const EntityType& GetCategory() const{ return m_category; }
150 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
151 inline void SetCategory(const EntityType& value) { m_categoryHasBeenSet = true; m_category = value; }
152 inline void SetCategory(EntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
153 inline Attribute& WithCategory(const EntityType& value) { SetCategory(value); return *this;}
154 inline Attribute& WithCategory(EntityType&& value) { SetCategory(std::move(value)); return *this;}
156
158
161 inline const Aws::Vector<Trait>& GetTraits() const{ return m_traits; }
162 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
163 inline void SetTraits(const Aws::Vector<Trait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
164 inline void SetTraits(Aws::Vector<Trait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
165 inline Attribute& WithTraits(const Aws::Vector<Trait>& value) { SetTraits(value); return *this;}
166 inline Attribute& WithTraits(Aws::Vector<Trait>&& value) { SetTraits(std::move(value)); return *this;}
167 inline Attribute& AddTraits(const Trait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
168 inline Attribute& AddTraits(Trait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
170 private:
171
172 EntitySubType m_type;
173 bool m_typeHasBeenSet = false;
174
175 double m_score;
176 bool m_scoreHasBeenSet = false;
177
178 double m_relationshipScore;
179 bool m_relationshipScoreHasBeenSet = false;
180
181 RelationshipType m_relationshipType;
182 bool m_relationshipTypeHasBeenSet = false;
183
184 int m_id;
185 bool m_idHasBeenSet = false;
186
187 int m_beginOffset;
188 bool m_beginOffsetHasBeenSet = false;
189
190 int m_endOffset;
191 bool m_endOffsetHasBeenSet = false;
192
193 Aws::String m_text;
194 bool m_textHasBeenSet = false;
195
196 EntityType m_category;
197 bool m_categoryHasBeenSet = false;
198
199 Aws::Vector<Trait> m_traits;
200 bool m_traitsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace ComprehendMedical
205} // namespace Aws
Attribute & AddTraits(Trait &&value)
Definition Attribute.h:168
Attribute & WithScore(double value)
Definition Attribute.h:69
Attribute & WithBeginOffset(int value)
Definition Attribute.h:117
AWS_COMPREHENDMEDICAL_API Attribute()
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRelationshipType(const RelationshipType &value)
Definition Attribute.h:91
Attribute & WithTraits(Aws::Vector< Trait > &&value)
Definition Attribute.h:166
AWS_COMPREHENDMEDICAL_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithType(const EntitySubType &value)
Definition Attribute.h:57
void SetTraits(Aws::Vector< Trait > &&value)
Definition Attribute.h:164
const Aws::String & GetText() const
Definition Attribute.h:135
void SetCategory(EntityType &&value)
Definition Attribute.h:152
Attribute & WithCategory(const EntityType &value)
Definition Attribute.h:153
Attribute & WithType(EntitySubType &&value)
Definition Attribute.h:58
Attribute & WithRelationshipType(RelationshipType &&value)
Definition Attribute.h:94
Attribute & WithText(const char *value)
Definition Attribute.h:142
Attribute & WithRelationshipScore(double value)
Definition Attribute.h:80
Attribute & AddTraits(const Trait &value)
Definition Attribute.h:167
const RelationshipType & GetRelationshipType() const
Definition Attribute.h:89
AWS_COMPREHENDMEDICAL_API Attribute(Aws::Utils::Json::JsonView jsonValue)
void SetText(const Aws::String &value)
Definition Attribute.h:137
Attribute & WithText(const Aws::String &value)
Definition Attribute.h:140
void SetTraits(const Aws::Vector< Trait > &value)
Definition Attribute.h:163
void SetCategory(const EntityType &value)
Definition Attribute.h:151
Attribute & WithRelationshipType(const RelationshipType &value)
Definition Attribute.h:93
void SetRelationshipType(RelationshipType &&value)
Definition Attribute.h:92
Attribute & WithEndOffset(int value)
Definition Attribute.h:128
void SetType(EntitySubType &&value)
Definition Attribute.h:56
const Aws::Vector< Trait > & GetTraits() const
Definition Attribute.h:161
const EntitySubType & GetType() const
Definition Attribute.h:53
Attribute & WithCategory(EntityType &&value)
Definition Attribute.h:154
const EntityType & GetCategory() const
Definition Attribute.h:149
void SetText(Aws::String &&value)
Definition Attribute.h:138
Attribute & WithText(Aws::String &&value)
Definition Attribute.h:141
Attribute & WithTraits(const Aws::Vector< Trait > &value)
Definition Attribute.h:165
void SetType(const EntitySubType &value)
Definition Attribute.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue