AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AnalyzeDocumentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/textract/Textract_EXPORTS.h>
10#include <aws/textract/model/AdaptersConfig.h>
11#include <aws/textract/model/Document.h>
12#include <aws/textract/model/FeatureType.h>
13#include <aws/textract/model/HumanLoopConfig.h>
14#include <aws/textract/model/QueriesConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Textract {
20namespace Model {
21
25 public:
26 AWS_TEXTRACT_API AnalyzeDocumentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AnalyzeDocument"; }
33
34 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
35
37
39
46 inline const Document& GetDocument() const { return m_document; }
47 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
48 template <typename DocumentT = Document>
49 void SetDocument(DocumentT&& value) {
50 m_documentHasBeenSet = true;
51 m_document = std::forward<DocumentT>(value);
52 }
53 template <typename DocumentT = Document>
55 SetDocument(std::forward<DocumentT>(value));
56 return *this;
57 }
59
61
70 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
71 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
72 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
73 void SetFeatureTypes(FeatureTypesT&& value) {
74 m_featureTypesHasBeenSet = true;
75 m_featureTypes = std::forward<FeatureTypesT>(value);
76 }
77 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
78 AnalyzeDocumentRequest& WithFeatureTypes(FeatureTypesT&& value) {
79 SetFeatureTypes(std::forward<FeatureTypesT>(value));
80 return *this;
81 }
83 m_featureTypesHasBeenSet = true;
84 m_featureTypes.push_back(value);
85 return *this;
86 }
88
90
94 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
95 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
96 template <typename HumanLoopConfigT = HumanLoopConfig>
97 void SetHumanLoopConfig(HumanLoopConfigT&& value) {
98 m_humanLoopConfigHasBeenSet = true;
99 m_humanLoopConfig = std::forward<HumanLoopConfigT>(value);
100 }
101 template <typename HumanLoopConfigT = HumanLoopConfig>
102 AnalyzeDocumentRequest& WithHumanLoopConfig(HumanLoopConfigT&& value) {
103 SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value));
104 return *this;
105 }
107
109
113 inline const QueriesConfig& GetQueriesConfig() const { return m_queriesConfig; }
114 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
115 template <typename QueriesConfigT = QueriesConfig>
116 void SetQueriesConfig(QueriesConfigT&& value) {
117 m_queriesConfigHasBeenSet = true;
118 m_queriesConfig = std::forward<QueriesConfigT>(value);
119 }
120 template <typename QueriesConfigT = QueriesConfig>
121 AnalyzeDocumentRequest& WithQueriesConfig(QueriesConfigT&& value) {
122 SetQueriesConfig(std::forward<QueriesConfigT>(value));
123 return *this;
124 }
126
128
131 inline const AdaptersConfig& GetAdaptersConfig() const { return m_adaptersConfig; }
132 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
133 template <typename AdaptersConfigT = AdaptersConfig>
134 void SetAdaptersConfig(AdaptersConfigT&& value) {
135 m_adaptersConfigHasBeenSet = true;
136 m_adaptersConfig = std::forward<AdaptersConfigT>(value);
137 }
138 template <typename AdaptersConfigT = AdaptersConfig>
139 AnalyzeDocumentRequest& WithAdaptersConfig(AdaptersConfigT&& value) {
140 SetAdaptersConfig(std::forward<AdaptersConfigT>(value));
141 return *this;
142 }
144 private:
145 Document m_document;
146
147 Aws::Vector<FeatureType> m_featureTypes;
148
149 HumanLoopConfig m_humanLoopConfig;
150
151 QueriesConfig m_queriesConfig;
152
153 AdaptersConfig m_adaptersConfig;
154 bool m_documentHasBeenSet = false;
155 bool m_featureTypesHasBeenSet = false;
156 bool m_humanLoopConfigHasBeenSet = false;
157 bool m_queriesConfigHasBeenSet = false;
158 bool m_adaptersConfigHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Textract
163} // namespace Aws
AnalyzeDocumentRequest & WithFeatureTypes(FeatureTypesT &&value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
const HumanLoopConfig & GetHumanLoopConfig() const
AnalyzeDocumentRequest & WithQueriesConfig(QueriesConfigT &&value)
const Aws::Vector< FeatureType > & GetFeatureTypes() const
AnalyzeDocumentRequest & WithDocument(DocumentT &&value)
AnalyzeDocumentRequest & WithAdaptersConfig(AdaptersConfigT &&value)
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AnalyzeDocumentRequest & WithHumanLoopConfig(HumanLoopConfigT &&value)
virtual const char * GetServiceRequestName() const override
AnalyzeDocumentRequest & AddFeatureTypes(FeatureType value)
AWS_TEXTRACT_API AnalyzeDocumentRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector