7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/BlockType.h>
9#include <aws/comprehend/model/Geometry.h>
10#include <aws/comprehend/model/RelationshipsListItem.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/crt/cbor/Cbor.h>
36 AWS_COMPREHEND_API
Block() =
default;
37 AWS_COMPREHEND_API
Block(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_COMPREHEND_API
Block&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_COMPREHEND_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename IdT = Aws::String>
49 m_idHasBeenSet =
true;
50 m_id = std::forward<IdT>(value);
52 template <
typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
70 m_blockTypeHasBeenSet =
true;
85 template <
typename TextT = Aws::String>
87 m_textHasBeenSet =
true;
88 m_text = std::forward<TextT>(value);
90 template <
typename TextT = Aws::String>
92 SetText(std::forward<TextT>(value));
101 inline int64_t
GetPage()
const {
return m_page; }
104 m_pageHasBeenSet =
true;
119 template <
typename GeometryT = Geometry>
121 m_geometryHasBeenSet =
true;
122 m_geometry = std::forward<GeometryT>(value);
124 template <
typename GeometryT = Geometry>
138 template <
typename RelationshipsT = Aws::Vector<RelationshipsListItem>>
140 m_relationshipsHasBeenSet =
true;
141 m_relationships = std::forward<RelationshipsT>(value);
143 template <
typename RelationshipsT = Aws::Vector<RelationshipsListItem>>
148 template <
typename RelationshipsT = RelationshipsListItem>
150 m_relationshipsHasBeenSet =
true;
151 m_relationships.emplace_back(std::forward<RelationshipsT>(value));
167 bool m_idHasBeenSet =
false;
168 bool m_blockTypeHasBeenSet =
false;
169 bool m_textHasBeenSet =
false;
170 bool m_pageHasBeenSet =
false;
171 bool m_geometryHasBeenSet =
false;
172 bool m_relationshipsHasBeenSet =
false;
AWS_COMPREHEND_API Block(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool PageHasBeenSet() const
void SetText(TextT &&value)
Block & WithPage(int64_t value)
BlockType GetBlockType() const
Block & WithText(TextT &&value)
void SetPage(int64_t value)
bool TextHasBeenSet() const
bool RelationshipsHasBeenSet() const
bool IdHasBeenSet() const
void SetGeometry(GeometryT &&value)
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetId() const
void SetRelationships(RelationshipsT &&value)
bool BlockTypeHasBeenSet() const
AWS_COMPREHEND_API Block()=default
Block & WithGeometry(GeometryT &&value)
const Aws::String & GetText() const
Block & WithRelationships(RelationshipsT &&value)
const Aws::Vector< RelationshipsListItem > & GetRelationships() const
bool GeometryHasBeenSet() const
const Geometry & GetGeometry() const
void SetBlockType(BlockType value)
Block & WithId(IdT &&value)
AWS_COMPREHEND_API Block & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Block & WithBlockType(BlockType value)
Block & AddRelationships(RelationshipsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector