AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
101 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
102 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
103 template <typename HumanLoopConfigT = HumanLoopConfig>
104 void SetHumanLoopConfig(HumanLoopConfigT&& value) {
105 m_humanLoopConfigHasBeenSet = true;
106 m_humanLoopConfig = std::forward<HumanLoopConfigT>(value);
107 }
108 template <typename HumanLoopConfigT = HumanLoopConfig>
109 AnalyzeDocumentRequest& WithHumanLoopConfig(HumanLoopConfigT&& value) {
110 SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value));
111 return *this;
112 }
114
116
120 inline const QueriesConfig& GetQueriesConfig() const { return m_queriesConfig; }
121 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
122 template <typename QueriesConfigT = QueriesConfig>
123 void SetQueriesConfig(QueriesConfigT&& value) {
124 m_queriesConfigHasBeenSet = true;
125 m_queriesConfig = std::forward<QueriesConfigT>(value);
126 }
127 template <typename QueriesConfigT = QueriesConfig>
128 AnalyzeDocumentRequest& WithQueriesConfig(QueriesConfigT&& value) {
129 SetQueriesConfig(std::forward<QueriesConfigT>(value));
130 return *this;
131 }
133
135
138 inline const AdaptersConfig& GetAdaptersConfig() const { return m_adaptersConfig; }
139 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
140 template <typename AdaptersConfigT = AdaptersConfig>
141 void SetAdaptersConfig(AdaptersConfigT&& value) {
142 m_adaptersConfigHasBeenSet = true;
143 m_adaptersConfig = std::forward<AdaptersConfigT>(value);
144 }
145 template <typename AdaptersConfigT = AdaptersConfig>
146 AnalyzeDocumentRequest& WithAdaptersConfig(AdaptersConfigT&& value) {
147 SetAdaptersConfig(std::forward<AdaptersConfigT>(value));
148 return *this;
149 }
151 private:
152 Document m_document;
153
154 Aws::Vector<FeatureType> m_featureTypes;
155
156 HumanLoopConfig m_humanLoopConfig;
157
158 QueriesConfig m_queriesConfig;
159
160 AdaptersConfig m_adaptersConfig;
161 bool m_documentHasBeenSet = false;
162 bool m_featureTypesHasBeenSet = false;
163 bool m_humanLoopConfigHasBeenSet = false;
164 bool m_queriesConfigHasBeenSet = false;
165 bool m_adaptersConfigHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Textract
170} // namespace Aws
AnalyzeDocumentRequest & WithFeatureTypes(FeatureTypesT &&value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
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