AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehendmedical/model/EntityType.h>
10#include <aws/comprehendmedical/model/EntitySubType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/comprehendmedical/model/Trait.h>
13#include <aws/comprehendmedical/model/Attribute.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
37 class Entity
38 {
39 public:
40 AWS_COMPREHENDMEDICAL_API Entity();
41 AWS_COMPREHENDMEDICAL_API Entity(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHENDMEDICAL_API Entity& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline int GetId() const{ return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
54 inline Entity& WithId(int value) { SetId(value); return *this;}
56
58
62 inline int GetBeginOffset() const{ return m_beginOffset; }
63 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
64 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
65 inline Entity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
67
69
73 inline int GetEndOffset() const{ return m_endOffset; }
74 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
75 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
76 inline Entity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
78
80
84 inline double GetScore() const{ return m_score; }
85 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
86 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
87 inline Entity& WithScore(double value) { SetScore(value); return *this;}
89
91
94 inline const Aws::String& GetText() const{ return m_text; }
95 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
96 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
97 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
98 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
99 inline Entity& WithText(const Aws::String& value) { SetText(value); return *this;}
100 inline Entity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
101 inline Entity& WithText(const char* value) { SetText(value); return *this;}
103
105
108 inline const EntityType& GetCategory() const{ return m_category; }
109 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
110 inline void SetCategory(const EntityType& value) { m_categoryHasBeenSet = true; m_category = value; }
111 inline void SetCategory(EntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
112 inline Entity& WithCategory(const EntityType& value) { SetCategory(value); return *this;}
113 inline Entity& WithCategory(EntityType&& value) { SetCategory(std::move(value)); return *this;}
115
117
120 inline const EntitySubType& GetType() const{ return m_type; }
121 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
122 inline void SetType(const EntitySubType& value) { m_typeHasBeenSet = true; m_type = value; }
123 inline void SetType(EntitySubType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
124 inline Entity& WithType(const EntitySubType& value) { SetType(value); return *this;}
125 inline Entity& WithType(EntitySubType&& value) { SetType(std::move(value)); return *this;}
127
129
132 inline const Aws::Vector<Trait>& GetTraits() const{ return m_traits; }
133 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
134 inline void SetTraits(const Aws::Vector<Trait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
135 inline void SetTraits(Aws::Vector<Trait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
136 inline Entity& WithTraits(const Aws::Vector<Trait>& value) { SetTraits(value); return *this;}
137 inline Entity& WithTraits(Aws::Vector<Trait>&& value) { SetTraits(std::move(value)); return *this;}
138 inline Entity& AddTraits(const Trait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
139 inline Entity& AddTraits(Trait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
141
143
146 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
147 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
148 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
149 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
150 inline Entity& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
151 inline Entity& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
152 inline Entity& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
153 inline Entity& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
155 private:
156
157 int m_id;
158 bool m_idHasBeenSet = false;
159
160 int m_beginOffset;
161 bool m_beginOffsetHasBeenSet = false;
162
163 int m_endOffset;
164 bool m_endOffsetHasBeenSet = false;
165
166 double m_score;
167 bool m_scoreHasBeenSet = false;
168
169 Aws::String m_text;
170 bool m_textHasBeenSet = false;
171
172 EntityType m_category;
173 bool m_categoryHasBeenSet = false;
174
175 EntitySubType m_type;
176 bool m_typeHasBeenSet = false;
177
178 Aws::Vector<Trait> m_traits;
179 bool m_traitsHasBeenSet = false;
180
181 Aws::Vector<Attribute> m_attributes;
182 bool m_attributesHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace ComprehendMedical
187} // namespace Aws
AWS_COMPREHENDMEDICAL_API Entity(Aws::Utils::Json::JsonView jsonValue)
Entity & AddTraits(Trait &&value)
Definition Entity.h:139
Entity & WithCategory(EntityType &&value)
Definition Entity.h:113
Entity & WithText(const Aws::String &value)
Definition Entity.h:99
const EntitySubType & GetType() const
Definition Entity.h:120
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition Entity.h:148
Entity & WithType(EntitySubType &&value)
Definition Entity.h:125
void SetCategory(const EntityType &value)
Definition Entity.h:110
Entity & WithTraits(const Aws::Vector< Trait > &value)
Definition Entity.h:136
Entity & WithAttributes(const Aws::Vector< Attribute > &value)
Definition Entity.h:150
void SetType(EntitySubType &&value)
Definition Entity.h:123
Entity & WithText(Aws::String &&value)
Definition Entity.h:100
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition Entity.h:149
Entity & WithType(const EntitySubType &value)
Definition Entity.h:124
Entity & AddAttributes(Attribute &&value)
Definition Entity.h:153
void SetTraits(const Aws::Vector< Trait > &value)
Definition Entity.h:134
Entity & WithBeginOffset(int value)
Definition Entity.h:65
void SetText(Aws::String &&value)
Definition Entity.h:97
Entity & WithTraits(Aws::Vector< Trait > &&value)
Definition Entity.h:137
AWS_COMPREHENDMEDICAL_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & AddAttributes(const Attribute &value)
Definition Entity.h:152
void SetType(const EntitySubType &value)
Definition Entity.h:122
void SetText(const Aws::String &value)
Definition Entity.h:96
const Aws::Vector< Trait > & GetTraits() const
Definition Entity.h:132
const Aws::Vector< Attribute > & GetAttributes() const
Definition Entity.h:146
const EntityType & GetCategory() const
Definition Entity.h:108
Entity & WithCategory(const EntityType &value)
Definition Entity.h:112
AWS_COMPREHENDMEDICAL_API Entity()
Entity & WithAttributes(Aws::Vector< Attribute > &&value)
Definition Entity.h:151
const Aws::String & GetText() const
Definition Entity.h:94
Entity & WithText(const char *value)
Definition Entity.h:101
Entity & AddTraits(const Trait &value)
Definition Entity.h:138
void SetTraits(Aws::Vector< Trait > &&value)
Definition Entity.h:135
void SetText(const char *value)
Definition Entity.h:98
Entity & WithEndOffset(int value)
Definition Entity.h:76
void SetCategory(EntityType &&value)
Definition Entity.h:111
Entity & WithScore(double value)
Definition Entity.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