AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Block.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/BlockType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/textract/model/TextType.h>
11#include <aws/textract/model/Geometry.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/textract/model/SelectionStatus.h>
14#include <aws/textract/model/Query.h>
15#include <aws/textract/model/Relationship.h>
16#include <aws/textract/model/EntityType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Textract
30{
31namespace Model
32{
33
52 class Block
53 {
54 public:
55 AWS_TEXTRACT_API Block();
56 AWS_TEXTRACT_API Block(Aws::Utils::Json::JsonView jsonValue);
57 AWS_TEXTRACT_API Block& operator=(Aws::Utils::Json::JsonView jsonValue);
58 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
59
60
62
117 inline const BlockType& GetBlockType() const{ return m_blockType; }
118 inline bool BlockTypeHasBeenSet() const { return m_blockTypeHasBeenSet; }
119 inline void SetBlockType(const BlockType& value) { m_blockTypeHasBeenSet = true; m_blockType = value; }
120 inline void SetBlockType(BlockType&& value) { m_blockTypeHasBeenSet = true; m_blockType = std::move(value); }
121 inline Block& WithBlockType(const BlockType& value) { SetBlockType(value); return *this;}
122 inline Block& WithBlockType(BlockType&& value) { SetBlockType(std::move(value)); return *this;}
124
126
131 inline double GetConfidence() const{ return m_confidence; }
132 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
133 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
134 inline Block& WithConfidence(double value) { SetConfidence(value); return *this;}
136
138
141 inline const Aws::String& GetText() const{ return m_text; }
142 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
143 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
144 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
145 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
146 inline Block& WithText(const Aws::String& value) { SetText(value); return *this;}
147 inline Block& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
148 inline Block& WithText(const char* value) { SetText(value); return *this;}
150
152
156 inline const TextType& GetTextType() const{ return m_textType; }
157 inline bool TextTypeHasBeenSet() const { return m_textTypeHasBeenSet; }
158 inline void SetTextType(const TextType& value) { m_textTypeHasBeenSet = true; m_textType = value; }
159 inline void SetTextType(TextType&& value) { m_textTypeHasBeenSet = true; m_textType = std::move(value); }
160 inline Block& WithTextType(const TextType& value) { SetTextType(value); return *this;}
161 inline Block& WithTextType(TextType&& value) { SetTextType(std::move(value)); return *this;}
163
165
170 inline int GetRowIndex() const{ return m_rowIndex; }
171 inline bool RowIndexHasBeenSet() const { return m_rowIndexHasBeenSet; }
172 inline void SetRowIndex(int value) { m_rowIndexHasBeenSet = true; m_rowIndex = value; }
173 inline Block& WithRowIndex(int value) { SetRowIndex(value); return *this;}
175
177
182 inline int GetColumnIndex() const{ return m_columnIndex; }
183 inline bool ColumnIndexHasBeenSet() const { return m_columnIndexHasBeenSet; }
184 inline void SetColumnIndex(int value) { m_columnIndexHasBeenSet = true; m_columnIndex = value; }
185 inline Block& WithColumnIndex(int value) { SetColumnIndex(value); return *this;}
187
189
194 inline int GetRowSpan() const{ return m_rowSpan; }
195 inline bool RowSpanHasBeenSet() const { return m_rowSpanHasBeenSet; }
196 inline void SetRowSpan(int value) { m_rowSpanHasBeenSet = true; m_rowSpan = value; }
197 inline Block& WithRowSpan(int value) { SetRowSpan(value); return *this;}
199
201
206 inline int GetColumnSpan() const{ return m_columnSpan; }
207 inline bool ColumnSpanHasBeenSet() const { return m_columnSpanHasBeenSet; }
208 inline void SetColumnSpan(int value) { m_columnSpanHasBeenSet = true; m_columnSpan = value; }
209 inline Block& WithColumnSpan(int value) { SetColumnSpan(value); return *this;}
211
213
218 inline const Geometry& GetGeometry() const{ return m_geometry; }
219 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
220 inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
221 inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
222 inline Block& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;}
223 inline Block& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;}
225
227
231 inline const Aws::String& GetId() const{ return m_id; }
232 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
233 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
234 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
235 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
236 inline Block& WithId(const Aws::String& value) { SetId(value); return *this;}
237 inline Block& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
238 inline Block& WithId(const char* value) { SetId(value); return *this;}
240
242
249 inline const Aws::Vector<Relationship>& GetRelationships() const{ return m_relationships; }
250 inline bool RelationshipsHasBeenSet() const { return m_relationshipsHasBeenSet; }
251 inline void SetRelationships(const Aws::Vector<Relationship>& value) { m_relationshipsHasBeenSet = true; m_relationships = value; }
252 inline void SetRelationships(Aws::Vector<Relationship>&& value) { m_relationshipsHasBeenSet = true; m_relationships = std::move(value); }
253 inline Block& WithRelationships(const Aws::Vector<Relationship>& value) { SetRelationships(value); return *this;}
254 inline Block& WithRelationships(Aws::Vector<Relationship>&& value) { SetRelationships(std::move(value)); return *this;}
255 inline Block& AddRelationships(const Relationship& value) { m_relationshipsHasBeenSet = true; m_relationships.push_back(value); return *this; }
256 inline Block& AddRelationships(Relationship&& value) { m_relationshipsHasBeenSet = true; m_relationships.push_back(std::move(value)); return *this; }
258
260
280 inline const Aws::Vector<EntityType>& GetEntityTypes() const{ return m_entityTypes; }
281 inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
282 inline void SetEntityTypes(const Aws::Vector<EntityType>& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; }
283 inline void SetEntityTypes(Aws::Vector<EntityType>&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); }
284 inline Block& WithEntityTypes(const Aws::Vector<EntityType>& value) { SetEntityTypes(value); return *this;}
285 inline Block& WithEntityTypes(Aws::Vector<EntityType>&& value) { SetEntityTypes(std::move(value)); return *this;}
286 inline Block& AddEntityTypes(const EntityType& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; }
287 inline Block& AddEntityTypes(EntityType&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; }
289
291
295 inline const SelectionStatus& GetSelectionStatus() const{ return m_selectionStatus; }
296 inline bool SelectionStatusHasBeenSet() const { return m_selectionStatusHasBeenSet; }
297 inline void SetSelectionStatus(const SelectionStatus& value) { m_selectionStatusHasBeenSet = true; m_selectionStatus = value; }
298 inline void SetSelectionStatus(SelectionStatus&& value) { m_selectionStatusHasBeenSet = true; m_selectionStatus = std::move(value); }
299 inline Block& WithSelectionStatus(const SelectionStatus& value) { SetSelectionStatus(value); return *this;}
300 inline Block& WithSelectionStatus(SelectionStatus&& value) { SetSelectionStatus(std::move(value)); return *this;}
302
304
312 inline int GetPage() const{ return m_page; }
313 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
314 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
315 inline Block& WithPage(int value) { SetPage(value); return *this;}
317
319
322 inline const Query& GetQuery() const{ return m_query; }
323 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
324 inline void SetQuery(const Query& value) { m_queryHasBeenSet = true; m_query = value; }
325 inline void SetQuery(Query&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
326 inline Block& WithQuery(const Query& value) { SetQuery(value); return *this;}
327 inline Block& WithQuery(Query&& value) { SetQuery(std::move(value)); return *this;}
329 private:
330
331 BlockType m_blockType;
332 bool m_blockTypeHasBeenSet = false;
333
334 double m_confidence;
335 bool m_confidenceHasBeenSet = false;
336
337 Aws::String m_text;
338 bool m_textHasBeenSet = false;
339
340 TextType m_textType;
341 bool m_textTypeHasBeenSet = false;
342
343 int m_rowIndex;
344 bool m_rowIndexHasBeenSet = false;
345
346 int m_columnIndex;
347 bool m_columnIndexHasBeenSet = false;
348
349 int m_rowSpan;
350 bool m_rowSpanHasBeenSet = false;
351
352 int m_columnSpan;
353 bool m_columnSpanHasBeenSet = false;
354
355 Geometry m_geometry;
356 bool m_geometryHasBeenSet = false;
357
358 Aws::String m_id;
359 bool m_idHasBeenSet = false;
360
361 Aws::Vector<Relationship> m_relationships;
362 bool m_relationshipsHasBeenSet = false;
363
364 Aws::Vector<EntityType> m_entityTypes;
365 bool m_entityTypesHasBeenSet = false;
366
367 SelectionStatus m_selectionStatus;
368 bool m_selectionStatusHasBeenSet = false;
369
370 int m_page;
371 bool m_pageHasBeenSet = false;
372
373 Query m_query;
374 bool m_queryHasBeenSet = false;
375 };
376
377} // namespace Model
378} // namespace Textract
379} // namespace Aws
void SetTextType(const TextType &value)
Definition Block.h:158
Block & WithText(const Aws::String &value)
Definition Block.h:146
void SetId(const Aws::String &value)
Definition Block.h:233
bool RelationshipsHasBeenSet() const
Definition Block.h:250
bool TextHasBeenSet() const
Definition Block.h:142
Block & WithSelectionStatus(SelectionStatus &&value)
Definition Block.h:300
void SetEntityTypes(const Aws::Vector< EntityType > &value)
Definition Block.h:282
void SetRelationships(Aws::Vector< Relationship > &&value)
Definition Block.h:252
Block & WithEntityTypes(const Aws::Vector< EntityType > &value)
Definition Block.h:284
Block & AddEntityTypes(EntityType &&value)
Definition Block.h:287
Block & WithRowSpan(int value)
Definition Block.h:197
Block & WithSelectionStatus(const SelectionStatus &value)
Definition Block.h:299
void SetGeometry(Geometry &&value)
Definition Block.h:221
void SetRelationships(const Aws::Vector< Relationship > &value)
Definition Block.h:251
void SetQuery(Query &&value)
Definition Block.h:325
bool PageHasBeenSet() const
Definition Block.h:313
AWS_TEXTRACT_API Block & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetText(Aws::String &&value)
Definition Block.h:144
bool QueryHasBeenSet() const
Definition Block.h:323
Block & WithPage(int value)
Definition Block.h:315
const Aws::Vector< EntityType > & GetEntityTypes() const
Definition Block.h:280
int GetColumnIndex() const
Definition Block.h:182
void SetText(const char *value)
Definition Block.h:145
bool ColumnIndexHasBeenSet() const
Definition Block.h:183
bool EntityTypesHasBeenSet() const
Definition Block.h:281
Block & WithColumnSpan(int value)
Definition Block.h:209
int GetRowIndex() const
Definition Block.h:170
bool SelectionStatusHasBeenSet() const
Definition Block.h:296
Block & WithBlockType(const BlockType &value)
Definition Block.h:121
Block & WithQuery(const Query &value)
Definition Block.h:326
const TextType & GetTextType() const
Definition Block.h:156
void SetRowIndex(int value)
Definition Block.h:172
Block & WithGeometry(Geometry &&value)
Definition Block.h:223
Block & WithText(Aws::String &&value)
Definition Block.h:147
Block & WithColumnIndex(int value)
Definition Block.h:185
Block & WithText(const char *value)
Definition Block.h:148
void SetSelectionStatus(const SelectionStatus &value)
Definition Block.h:297
Block & WithQuery(Query &&value)
Definition Block.h:327
void SetQuery(const Query &value)
Definition Block.h:324
const Aws::Vector< Relationship > & GetRelationships() const
Definition Block.h:249
const Geometry & GetGeometry() const
Definition Block.h:218
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
bool BlockTypeHasBeenSet() const
Definition Block.h:118
Block & AddRelationships(const Relationship &value)
Definition Block.h:255
Block & WithTextType(TextType &&value)
Definition Block.h:161
void SetColumnSpan(int value)
Definition Block.h:208
AWS_TEXTRACT_API Block()
void SetEntityTypes(Aws::Vector< EntityType > &&value)
Definition Block.h:283
Block & WithRelationships(const Aws::Vector< Relationship > &value)
Definition Block.h:253
bool RowIndexHasBeenSet() const
Definition Block.h:171
void SetTextType(TextType &&value)
Definition Block.h:159
void SetGeometry(const Geometry &value)
Definition Block.h:220
bool RowSpanHasBeenSet() const
Definition Block.h:195
void SetId(Aws::String &&value)
Definition Block.h:234
bool GeometryHasBeenSet() const
Definition Block.h:219
void SetPage(int value)
Definition Block.h:314
bool ColumnSpanHasBeenSet() const
Definition Block.h:207
void SetRowSpan(int value)
Definition Block.h:196
Block & WithConfidence(double value)
Definition Block.h:134
bool ConfidenceHasBeenSet() const
Definition Block.h:132
void SetSelectionStatus(SelectionStatus &&value)
Definition Block.h:298
Block & WithId(const char *value)
Definition Block.h:238
void SetBlockType(const BlockType &value)
Definition Block.h:119
Block & WithEntityTypes(Aws::Vector< EntityType > &&value)
Definition Block.h:285
Block & WithTextType(const TextType &value)
Definition Block.h:160
Block & WithId(Aws::String &&value)
Definition Block.h:237
Block & AddEntityTypes(const EntityType &value)
Definition Block.h:286
Block & WithGeometry(const Geometry &value)
Definition Block.h:222
void SetConfidence(double value)
Definition Block.h:133
Block & AddRelationships(Relationship &&value)
Definition Block.h:256
void SetColumnIndex(int value)
Definition Block.h:184
Block & WithRowIndex(int value)
Definition Block.h:173
const SelectionStatus & GetSelectionStatus() const
Definition Block.h:295
void SetId(const char *value)
Definition Block.h:235
const Aws::String & GetText() const
Definition Block.h:141
const BlockType & GetBlockType() const
Definition Block.h:117
AWS_TEXTRACT_API Block(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Block.h:231
Block & WithBlockType(BlockType &&value)
Definition Block.h:122
double GetConfidence() const
Definition Block.h:131
bool TextTypeHasBeenSet() const
Definition Block.h:157
Block & WithRelationships(Aws::Vector< Relationship > &&value)
Definition Block.h:254
int GetColumnSpan() const
Definition Block.h:206
bool IdHasBeenSet() const
Definition Block.h:232
const Query & GetQuery() const
Definition Block.h:322
void SetBlockType(BlockType &&value)
Definition Block.h:120
void SetText(const Aws::String &value)
Definition Block.h:143
Block & WithId(const Aws::String &value)
Definition Block.h:236
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue