AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SplitDocument.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/textract/Textract_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Textract {
20namespace Model {
21
29 public:
30 AWS_TEXTRACT_API SplitDocument() = default;
31 AWS_TEXTRACT_API SplitDocument(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetIndex() const { return m_index; }
40 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
41 inline void SetIndex(int value) {
42 m_indexHasBeenSet = true;
43 m_index = value;
44 }
45 inline SplitDocument& WithIndex(int value) {
46 SetIndex(value);
47 return *this;
48 }
50
52
56 inline const Aws::Vector<int>& GetPages() const { return m_pages; }
57 inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; }
58 template <typename PagesT = Aws::Vector<int>>
59 void SetPages(PagesT&& value) {
60 m_pagesHasBeenSet = true;
61 m_pages = std::forward<PagesT>(value);
62 }
63 template <typename PagesT = Aws::Vector<int>>
64 SplitDocument& WithPages(PagesT&& value) {
65 SetPages(std::forward<PagesT>(value));
66 return *this;
67 }
68 inline SplitDocument& AddPages(int value) {
69 m_pagesHasBeenSet = true;
70 m_pages.push_back(value);
71 return *this;
72 }
74 private:
75 int m_index{0};
76
77 Aws::Vector<int> m_pages;
78 bool m_indexHasBeenSet = false;
79 bool m_pagesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Textract
84} // namespace Aws
const Aws::Vector< int > & GetPages() const
SplitDocument & AddPages(int value)
AWS_TEXTRACT_API SplitDocument()=default
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
SplitDocument & WithIndex(int value)
AWS_TEXTRACT_API SplitDocument(Aws::Utils::Json::JsonView jsonValue)
SplitDocument & WithPages(PagesT &&value)
AWS_TEXTRACT_API SplitDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue