AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 Block& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
67 inline BlockType GetBlockType() const { return m_blockType; }
68 inline bool BlockTypeHasBeenSet() const { return m_blockTypeHasBeenSet; }
69 inline void SetBlockType(BlockType value) { m_blockTypeHasBeenSet = true; m_blockType = value; }
70 inline Block& WithBlockType(BlockType value) { SetBlockType(value); return *this;}
72
74
77 inline const Aws::String& GetText() const { return m_text; }
78 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
79 template<typename TextT = Aws::String>
80 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
81 template<typename TextT = Aws::String>
82 Block& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
84
86
89 inline int GetPage() const { return m_page; }
90 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
91 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
92 inline Block& WithPage(int value) { SetPage(value); return *this;}
94
96
99 inline const Geometry& GetGeometry() const { return m_geometry; }
100 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
101 template<typename GeometryT = Geometry>
102 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
103 template<typename GeometryT = Geometry>
104 Block& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
106
108
112 inline const Aws::Vector<RelationshipsListItem>& GetRelationships() const { return m_relationships; }
113 inline bool RelationshipsHasBeenSet() const { return m_relationshipsHasBeenSet; }
114 template<typename RelationshipsT = Aws::Vector<RelationshipsListItem>>
115 void SetRelationships(RelationshipsT&& value) { m_relationshipsHasBeenSet = true; m_relationships = std::forward<RelationshipsT>(value); }
116 template<typename RelationshipsT = Aws::Vector<RelationshipsListItem>>
117 Block& WithRelationships(RelationshipsT&& value) { SetRelationships(std::forward<RelationshipsT>(value)); return *this;}
118 template<typename RelationshipsT = RelationshipsListItem>
119 Block& AddRelationships(RelationshipsT&& value) { m_relationshipsHasBeenSet = true; m_relationships.emplace_back(std::forward<RelationshipsT>(value)); return *this; }
121 private:
122
123 Aws::String m_id;
124 bool m_idHasBeenSet = false;
125
126 BlockType m_blockType{BlockType::NOT_SET};
127 bool m_blockTypeHasBeenSet = false;
128
129 Aws::String m_text;
130 bool m_textHasBeenSet = false;
131
132 int m_page{0};
133 bool m_pageHasBeenSet = false;
134
135 Geometry m_geometry;
136 bool m_geometryHasBeenSet = false;
137
139 bool m_relationshipsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Comprehend
144} // namespace Aws
bool PageHasBeenSet() const
Definition Block.h:90
void SetText(TextT &&value)
Definition Block.h:80
void SetId(IdT &&value)
Definition Block.h:54
BlockType GetBlockType() const
Definition Block.h:67
Block & WithText(TextT &&value)
Definition Block.h:82
bool TextHasBeenSet() const
Definition Block.h:78
bool RelationshipsHasBeenSet() const
Definition Block.h:113
bool IdHasBeenSet() const
Definition Block.h:52
AWS_COMPREHEND_API Block & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGeometry(GeometryT &&value)
Definition Block.h:102
const Aws::String & GetId() const
Definition Block.h:51
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRelationships(RelationshipsT &&value)
Definition Block.h:115
bool BlockTypeHasBeenSet() const
Definition Block.h:68
AWS_COMPREHEND_API Block()=default
Block & WithGeometry(GeometryT &&value)
Definition Block.h:104
void SetPage(int value)
Definition Block.h:91
const Aws::String & GetText() const
Definition Block.h:77
Block & WithRelationships(RelationshipsT &&value)
Definition Block.h:117
const Aws::Vector< RelationshipsListItem > & GetRelationships() const
Definition Block.h:112
bool GeometryHasBeenSet() const
Definition Block.h:100
AWS_COMPREHEND_API Block(Aws::Utils::Json::JsonView jsonValue)
const Geometry & GetGeometry() const
Definition Block.h:99
void SetBlockType(BlockType value)
Definition Block.h:69
Block & WithPage(int value)
Definition Block.h:92
Block & WithId(IdT &&value)
Definition Block.h:56
Block & WithBlockType(BlockType value)
Definition Block.h:70
Block & AddRelationships(RelationshipsT &&value)
Definition Block.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue