AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SplitDocument.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Textract
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_TEXTRACT_API SplitDocument() = default;
36 AWS_TEXTRACT_API SplitDocument(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetIndex() const { return m_index; }
46 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
47 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
48 inline SplitDocument& WithIndex(int value) { SetIndex(value); return *this;}
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) { m_pagesHasBeenSet = true; m_pages = std::forward<PagesT>(value); }
60 template<typename PagesT = Aws::Vector<int>>
61 SplitDocument& WithPages(PagesT&& value) { SetPages(std::forward<PagesT>(value)); return *this;}
62 inline SplitDocument& AddPages(int value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; }
64 private:
65
66 int m_index{0};
67 bool m_indexHasBeenSet = false;
68
69 Aws::Vector<int> m_pages;
70 bool m_pagesHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Textract
75} // 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