AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PageClassification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/Prediction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
31 public:
32 AWS_TEXTRACT_API PageClassification() = default;
35 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Prediction>& GetPageType() const { return m_pageType; }
43 inline bool PageTypeHasBeenSet() const { return m_pageTypeHasBeenSet; }
44 template <typename PageTypeT = Aws::Vector<Prediction>>
45 void SetPageType(PageTypeT&& value) {
46 m_pageTypeHasBeenSet = true;
47 m_pageType = std::forward<PageTypeT>(value);
48 }
49 template <typename PageTypeT = Aws::Vector<Prediction>>
50 PageClassification& WithPageType(PageTypeT&& value) {
51 SetPageType(std::forward<PageTypeT>(value));
52 return *this;
53 }
54 template <typename PageTypeT = Prediction>
55 PageClassification& AddPageType(PageTypeT&& value) {
56 m_pageTypeHasBeenSet = true;
57 m_pageType.emplace_back(std::forward<PageTypeT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Prediction>& GetPageNumber() const { return m_pageNumber; }
68 inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; }
69 template <typename PageNumberT = Aws::Vector<Prediction>>
70 void SetPageNumber(PageNumberT&& value) {
71 m_pageNumberHasBeenSet = true;
72 m_pageNumber = std::forward<PageNumberT>(value);
73 }
74 template <typename PageNumberT = Aws::Vector<Prediction>>
75 PageClassification& WithPageNumber(PageNumberT&& value) {
76 SetPageNumber(std::forward<PageNumberT>(value));
77 return *this;
78 }
79 template <typename PageNumberT = Prediction>
80 PageClassification& AddPageNumber(PageNumberT&& value) {
81 m_pageNumberHasBeenSet = true;
82 m_pageNumber.emplace_back(std::forward<PageNumberT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Prediction> m_pageType;
88
89 Aws::Vector<Prediction> m_pageNumber;
90 bool m_pageTypeHasBeenSet = false;
91 bool m_pageNumberHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Textract
96} // namespace Aws
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
PageClassification & WithPageNumber(PageNumberT &&value)
PageClassification & AddPageType(PageTypeT &&value)
AWS_TEXTRACT_API PageClassification()=default
AWS_TEXTRACT_API PageClassification & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Prediction > & GetPageType() const
const Aws::Vector< Prediction > & GetPageNumber() const
PageClassification & AddPageNumber(PageNumberT &&value)
AWS_TEXTRACT_API PageClassification(Aws::Utils::Json::JsonView jsonValue)
PageClassification & WithPageType(PageTypeT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue