AWS SDK for C++  1.8.126
AWS SDK for C++
Entity.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Comprehend
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Entity();
39 
40 
45  inline double GetScore() const{ return m_score; }
46 
51  inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
52 
57  inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
58 
63  inline Entity& WithScore(double value) { SetScore(value); return *this;}
64 
65 
69  inline const EntityType& GetType() const{ return m_type; }
70 
74  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 
79  inline void SetType(const EntityType& value) { m_typeHasBeenSet = true; m_type = value; }
80 
84  inline void SetType(EntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
85 
89  inline Entity& WithType(const EntityType& value) { SetType(value); return *this;}
90 
94  inline Entity& WithType(EntityType&& value) { SetType(std::move(value)); return *this;}
95 
96 
100  inline const Aws::String& GetText() const{ return m_text; }
101 
105  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
106 
110  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
111 
115  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
116 
120  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
121 
125  inline Entity& WithText(const Aws::String& value) { SetText(value); return *this;}
126 
130  inline Entity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
131 
135  inline Entity& WithText(const char* value) { SetText(value); return *this;}
136 
137 
145  inline int GetBeginOffset() const{ return m_beginOffset; }
146 
154  inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
155 
163  inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
164 
172  inline Entity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
173 
174 
181  inline int GetEndOffset() const{ return m_endOffset; }
182 
189  inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
190 
197  inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
198 
205  inline Entity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
206 
207  private:
208 
209  double m_score;
210  bool m_scoreHasBeenSet;
211 
212  EntityType m_type;
213  bool m_typeHasBeenSet;
214 
215  Aws::String m_text;
216  bool m_textHasBeenSet;
217 
218  int m_beginOffset;
219  bool m_beginOffsetHasBeenSet;
220 
221  int m_endOffset;
222  bool m_endOffsetHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace Comprehend
227 } // namespace Aws
Aws::Comprehend::Model::Entity::WithText
Entity & WithText(Aws::String &&value)
Definition: Entity.h:130
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::Entity::Entity
Entity(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::Entity::WithEndOffset
Entity & WithEndOffset(int value)
Definition: Entity.h:205
Aws::Comprehend::Model::Entity::ScoreHasBeenSet
bool ScoreHasBeenSet() const
Definition: Entity.h:51
Aws::Comprehend::Model::Entity::GetText
const Aws::String & GetText() const
Definition: Entity.h:100
Aws::Comprehend::Model::Entity::WithText
Entity & WithText(const char *value)
Definition: Entity.h:135
Aws::Comprehend::Model::Entity::SetType
void SetType(const EntityType &value)
Definition: Entity.h:79
Aws::Comprehend::Model::Entity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Comprehend::Model::Entity::SetScore
void SetScore(double value)
Definition: Entity.h:57
Aws::Comprehend::Model::EntityType
EntityType
Definition: EntityType.h:17
Aws::Comprehend::Model::Entity::GetBeginOffset
int GetBeginOffset() const
Definition: Entity.h:145
Aws::Comprehend::Model::Entity::SetText
void SetText(Aws::String &&value)
Definition: Entity.h:115
Aws::Comprehend::Model::Entity::GetType
const EntityType & GetType() const
Definition: Entity.h:69
Aws::Comprehend::Model::Entity::Entity
Entity()
Aws::Comprehend::Model::Entity::SetType
void SetType(EntityType &&value)
Definition: Entity.h:84
Aws::Comprehend::Model::Entity::SetText
void SetText(const Aws::String &value)
Definition: Entity.h:110
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Comprehend::Model::Entity::operator=
Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::Entity::WithType
Entity & WithType(EntityType &&value)
Definition: Entity.h:94
Aws::Comprehend::Model::Entity
Definition: Entity.h:33
Aws::Comprehend::Model::Entity::SetBeginOffset
void SetBeginOffset(int value)
Definition: Entity.h:163
Aws::Comprehend::Model::Entity::SetEndOffset
void SetEndOffset(int value)
Definition: Entity.h:197
EntityType.h
Aws::Comprehend::Model::Entity::WithScore
Entity & WithScore(double value)
Definition: Entity.h:63
Comprehend_EXPORTS.h
Aws::Comprehend::Model::Entity::WithText
Entity & WithText(const Aws::String &value)
Definition: Entity.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::Entity::TextHasBeenSet
bool TextHasBeenSet() const
Definition: Entity.h:105
Aws::Comprehend::Model::Entity::EndOffsetHasBeenSet
bool EndOffsetHasBeenSet() const
Definition: Entity.h:189
Aws::Comprehend::Model::Entity::BeginOffsetHasBeenSet
bool BeginOffsetHasBeenSet() const
Definition: Entity.h:154
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::Entity::GetScore
double GetScore() const
Definition: Entity.h:45
Aws::Comprehend::Model::Entity::SetText
void SetText(const char *value)
Definition: Entity.h:120
Aws::Comprehend::Model::Entity::GetEndOffset
int GetEndOffset() const
Definition: Entity.h:181
Aws::Comprehend::Model::Entity::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Entity.h:74
Aws::Comprehend::Model::Entity::WithBeginOffset
Entity & WithBeginOffset(int value)
Definition: Entity.h:172
Aws::Comprehend::Model::Entity::WithType
Entity & WithType(const EntityType &value)
Definition: Entity.h:89