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>
41 AWS_COMPREHEND_API
Block() =
default;
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>
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>
89 inline int GetPage()
const {
return m_page; }
91 inline void SetPage(
int value) { m_pageHasBeenSet =
true; m_page = value; }
101 template<
typename GeometryT = Geometry>
102 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet =
true; m_geometry = std::forward<GeometryT>(value); }
103 template<
typename GeometryT = Geometry>
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>>
118 template<
typename RelationshipsT = RelationshipsListItem>
119 Block&
AddRelationships(RelationshipsT&& value) { m_relationshipsHasBeenSet =
true; m_relationships.emplace_back(std::forward<RelationshipsT>(value));
return *
this; }
124 bool m_idHasBeenSet =
false;
127 bool m_blockTypeHasBeenSet =
false;
130 bool m_textHasBeenSet =
false;
133 bool m_pageHasBeenSet =
false;
136 bool m_geometryHasBeenSet =
false;
139 bool m_relationshipsHasBeenSet =
false;
bool PageHasBeenSet() const
void SetText(TextT &&value)
BlockType GetBlockType() const
Block & WithText(TextT &&value)
bool TextHasBeenSet() const
bool RelationshipsHasBeenSet() const
bool IdHasBeenSet() const
AWS_COMPREHEND_API Block & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGeometry(GeometryT &&value)
const Aws::String & GetId() const
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() 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
AWS_COMPREHEND_API Block(Aws::Utils::Json::JsonView jsonValue)
const Geometry & GetGeometry() const
void SetBlockType(BlockType value)
Block & WithPage(int value)
Block & WithId(IdT &&value)
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
Aws::Utils::Json::JsonValue JsonValue