AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentMetadata.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/ExtractedCharactersListItem.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPREHEND_API DocumentMetadata();
37 AWS_COMPREHEND_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetPages() const{ return m_pages; }
47 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
48 inline void SetPages(int value) { m_pagesHasBeenSet = true; m_pages = value; }
49 inline DocumentMetadata& WithPages(int value) { SetPages(value); return *this;}
51
53
57 inline const Aws::Vector<ExtractedCharactersListItem>& GetExtractedCharacters() const{ return m_extractedCharacters; }
58 inline bool ExtractedCharactersHasBeenSet() const { return m_extractedCharactersHasBeenSet; }
59 inline void SetExtractedCharacters(const Aws::Vector<ExtractedCharactersListItem>& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters = value; }
60 inline void SetExtractedCharacters(Aws::Vector<ExtractedCharactersListItem>&& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters = std::move(value); }
63 inline DocumentMetadata& AddExtractedCharacters(const ExtractedCharactersListItem& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters.push_back(value); return *this; }
64 inline DocumentMetadata& AddExtractedCharacters(ExtractedCharactersListItem&& value) { m_extractedCharactersHasBeenSet = true; m_extractedCharacters.push_back(std::move(value)); return *this; }
66 private:
67
68 int m_pages;
69 bool m_pagesHasBeenSet = false;
70
71 Aws::Vector<ExtractedCharactersListItem> m_extractedCharacters;
72 bool m_extractedCharactersHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Comprehend
77} // namespace Aws
const Aws::Vector< ExtractedCharactersListItem > & GetExtractedCharacters() const
DocumentMetadata & AddExtractedCharacters(ExtractedCharactersListItem &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentMetadata & WithPages(int value)
DocumentMetadata & AddExtractedCharacters(const ExtractedCharactersListItem &value)
AWS_COMPREHEND_API DocumentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API DocumentMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetExtractedCharacters(const Aws::Vector< ExtractedCharactersListItem > &value)
DocumentMetadata & WithExtractedCharacters(Aws::Vector< ExtractedCharactersListItem > &&value)
void SetExtractedCharacters(Aws::Vector< ExtractedCharactersListItem > &&value)
DocumentMetadata & WithExtractedCharacters(const Aws::Vector< ExtractedCharactersListItem > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue