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/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehend/model/BlockType.h>
10#include <aws/comprehend/model/Geometry.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/comprehend/model/RelationshipsListItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Comprehend
26{
27namespace Model
28{
29
38 class Block
39 {
40 public:
41 AWS_COMPREHEND_API Block();
42 AWS_COMPREHEND_API Block(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPREHEND_API Block& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetId() const{ return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 inline Block& WithId(const Aws::String& value) { SetId(value); return *this;}
57 inline Block& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
58 inline Block& WithId(const char* value) { SetId(value); return *this;}
60
62
69 inline const BlockType& GetBlockType() const{ return m_blockType; }
70 inline bool BlockTypeHasBeenSet() const { return m_blockTypeHasBeenSet; }
71 inline void SetBlockType(const BlockType& value) { m_blockTypeHasBeenSet = true; m_blockType = value; }
72 inline void SetBlockType(BlockType&& value) { m_blockTypeHasBeenSet = true; m_blockType = std::move(value); }
73 inline Block& WithBlockType(const BlockType& value) { SetBlockType(value); return *this;}
74 inline Block& WithBlockType(BlockType&& value) { SetBlockType(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetText() const{ return m_text; }
82 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
83 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
84 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
85 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
86 inline Block& WithText(const Aws::String& value) { SetText(value); return *this;}
87 inline Block& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
88 inline Block& WithText(const char* value) { SetText(value); return *this;}
90
92
95 inline int GetPage() const{ return m_page; }
96 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
97 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
98 inline Block& WithPage(int value) { SetPage(value); return *this;}
100
102
105 inline const Geometry& GetGeometry() const{ return m_geometry; }
106 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
107 inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
108 inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
109 inline Block& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;}
110 inline Block& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;}
112
114
118 inline const Aws::Vector<RelationshipsListItem>& GetRelationships() const{ return m_relationships; }
119 inline bool RelationshipsHasBeenSet() const { return m_relationshipsHasBeenSet; }
120 inline void SetRelationships(const Aws::Vector<RelationshipsListItem>& value) { m_relationshipsHasBeenSet = true; m_relationships = value; }
121 inline void SetRelationships(Aws::Vector<RelationshipsListItem>&& value) { m_relationshipsHasBeenSet = true; m_relationships = std::move(value); }
122 inline Block& WithRelationships(const Aws::Vector<RelationshipsListItem>& value) { SetRelationships(value); return *this;}
123 inline Block& WithRelationships(Aws::Vector<RelationshipsListItem>&& value) { SetRelationships(std::move(value)); return *this;}
124 inline Block& AddRelationships(const RelationshipsListItem& value) { m_relationshipsHasBeenSet = true; m_relationships.push_back(value); return *this; }
125 inline Block& AddRelationships(RelationshipsListItem&& value) { m_relationshipsHasBeenSet = true; m_relationships.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 BlockType m_blockType;
133 bool m_blockTypeHasBeenSet = false;
134
135 Aws::String m_text;
136 bool m_textHasBeenSet = false;
137
138 int m_page;
139 bool m_pageHasBeenSet = false;
140
141 Geometry m_geometry;
142 bool m_geometryHasBeenSet = false;
143
145 bool m_relationshipsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Comprehend
150} // namespace Aws
Block & WithId(const Aws::String &value)
Definition Block.h:56
void SetRelationships(const Aws::Vector< RelationshipsListItem > &value)
Definition Block.h:120
bool PageHasBeenSet() const
Definition Block.h:96
Block & WithBlockType(const BlockType &value)
Definition Block.h:73
Block & WithGeometry(Geometry &&value)
Definition Block.h:110
const BlockType & GetBlockType() const
Definition Block.h:69
void SetId(const Aws::String &value)
Definition Block.h:53
Block & AddRelationships(RelationshipsListItem &&value)
Definition Block.h:125
bool TextHasBeenSet() const
Definition Block.h:82
bool RelationshipsHasBeenSet() const
Definition Block.h:119
bool IdHasBeenSet() const
Definition Block.h:52
AWS_COMPREHEND_API Block & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(Aws::String &&value)
Definition Block.h:54
void SetText(const char *value)
Definition Block.h:85
Block & WithRelationships(Aws::Vector< RelationshipsListItem > &&value)
Definition Block.h:123
Block & WithGeometry(const Geometry &value)
Definition Block.h:109
const Aws::String & GetId() const
Definition Block.h:51
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
Block & WithText(const Aws::String &value)
Definition Block.h:86
bool BlockTypeHasBeenSet() const
Definition Block.h:70
AWS_COMPREHEND_API Block()
void SetText(const Aws::String &value)
Definition Block.h:83
Block & WithId(Aws::String &&value)
Definition Block.h:57
void SetPage(int value)
Definition Block.h:97
void SetBlockType(BlockType &&value)
Definition Block.h:72
const Aws::String & GetText() const
Definition Block.h:81
void SetGeometry(Geometry &&value)
Definition Block.h:108
const Aws::Vector< RelationshipsListItem > & GetRelationships() const
Definition Block.h:118
void SetGeometry(const Geometry &value)
Definition Block.h:107
void SetRelationships(Aws::Vector< RelationshipsListItem > &&value)
Definition Block.h:121
bool GeometryHasBeenSet() const
Definition Block.h:106
AWS_COMPREHEND_API Block(Aws::Utils::Json::JsonView jsonValue)
const Geometry & GetGeometry() const
Definition Block.h:105
Block & WithPage(int value)
Definition Block.h:98
Block & AddRelationships(const RelationshipsListItem &value)
Definition Block.h:124
Block & WithText(Aws::String &&value)
Definition Block.h:87
void SetId(const char *value)
Definition Block.h:55
Block & WithRelationships(const Aws::Vector< RelationshipsListItem > &value)
Definition Block.h:122
Block & WithId(const char *value)
Definition Block.h:58
Block & WithText(const char *value)
Definition Block.h:88
void SetBlockType(const BlockType &value)
Definition Block.h:71
void SetText(Aws::String &&value)
Definition Block.h:84
Block & WithBlockType(BlockType &&value)
Definition Block.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue