AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartDocumentAnalysisRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/TextractRequest.h>
10#include <aws/textract/Textract_EXPORTS.h>
11#include <aws/textract/model/AdaptersConfig.h>
12#include <aws/textract/model/DocumentLocation.h>
13#include <aws/textract/model/FeatureType.h>
14#include <aws/textract/model/NotificationChannel.h>
15#include <aws/textract/model/OutputConfig.h>
16#include <aws/textract/model/QueriesConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Textract {
22namespace Model {
23
27 public:
28 AWS_TEXTRACT_API StartDocumentAnalysisRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartDocumentAnalysis"; }
35
36 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
37
39
41
44 inline const DocumentLocation& GetDocumentLocation() const { return m_documentLocation; }
45 inline bool DocumentLocationHasBeenSet() const { return m_documentLocationHasBeenSet; }
46 template <typename DocumentLocationT = DocumentLocation>
47 void SetDocumentLocation(DocumentLocationT&& value) {
48 m_documentLocationHasBeenSet = true;
49 m_documentLocation = std::forward<DocumentLocationT>(value);
50 }
51 template <typename DocumentLocationT = DocumentLocation>
53 SetDocumentLocation(std::forward<DocumentLocationT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
68 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
69 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
70 void SetFeatureTypes(FeatureTypesT&& value) {
71 m_featureTypesHasBeenSet = true;
72 m_featureTypes = std::forward<FeatureTypesT>(value);
73 }
74 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
76 SetFeatureTypes(std::forward<FeatureTypesT>(value));
77 return *this;
78 }
80 m_featureTypesHasBeenSet = true;
81 m_featureTypes.push_back(value);
82 return *this;
83 }
85
87
96 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
97 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
98 template <typename ClientRequestTokenT = Aws::String>
99 void SetClientRequestToken(ClientRequestTokenT&& value) {
100 m_clientRequestTokenHasBeenSet = true;
101 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
102 }
103 template <typename ClientRequestTokenT = Aws::String>
105 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::String& GetJobTag() const { return m_jobTag; }
118 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
119 template <typename JobTagT = Aws::String>
120 void SetJobTag(JobTagT&& value) {
121 m_jobTagHasBeenSet = true;
122 m_jobTag = std::forward<JobTagT>(value);
123 }
124 template <typename JobTagT = Aws::String>
126 SetJobTag(std::forward<JobTagT>(value));
127 return *this;
128 }
130
132
136 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
137 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
138 template <typename NotificationChannelT = NotificationChannel>
139 void SetNotificationChannel(NotificationChannelT&& value) {
140 m_notificationChannelHasBeenSet = true;
141 m_notificationChannel = std::forward<NotificationChannelT>(value);
142 }
143 template <typename NotificationChannelT = NotificationChannel>
145 SetNotificationChannel(std::forward<NotificationChannelT>(value));
146 return *this;
147 }
149
151
156 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
157 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
158 template <typename OutputConfigT = OutputConfig>
159 void SetOutputConfig(OutputConfigT&& value) {
160 m_outputConfigHasBeenSet = true;
161 m_outputConfig = std::forward<OutputConfigT>(value);
162 }
163 template <typename OutputConfigT = OutputConfig>
165 SetOutputConfig(std::forward<OutputConfigT>(value));
166 return *this;
167 }
169
171
178 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
179 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
180 template <typename KMSKeyIdT = Aws::String>
181 void SetKMSKeyId(KMSKeyIdT&& value) {
182 m_kMSKeyIdHasBeenSet = true;
183 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
184 }
185 template <typename KMSKeyIdT = Aws::String>
187 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
188 return *this;
189 }
191
193
194 inline const QueriesConfig& GetQueriesConfig() const { return m_queriesConfig; }
195 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
196 template <typename QueriesConfigT = QueriesConfig>
197 void SetQueriesConfig(QueriesConfigT&& value) {
198 m_queriesConfigHasBeenSet = true;
199 m_queriesConfig = std::forward<QueriesConfigT>(value);
200 }
201 template <typename QueriesConfigT = QueriesConfig>
203 SetQueriesConfig(std::forward<QueriesConfigT>(value));
204 return *this;
205 }
207
209
212 inline const AdaptersConfig& GetAdaptersConfig() const { return m_adaptersConfig; }
213 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
214 template <typename AdaptersConfigT = AdaptersConfig>
215 void SetAdaptersConfig(AdaptersConfigT&& value) {
216 m_adaptersConfigHasBeenSet = true;
217 m_adaptersConfig = std::forward<AdaptersConfigT>(value);
218 }
219 template <typename AdaptersConfigT = AdaptersConfig>
221 SetAdaptersConfig(std::forward<AdaptersConfigT>(value));
222 return *this;
223 }
225 private:
226 DocumentLocation m_documentLocation;
227
228 Aws::Vector<FeatureType> m_featureTypes;
229
230 Aws::String m_clientRequestToken;
231
232 Aws::String m_jobTag;
233
234 NotificationChannel m_notificationChannel;
235
236 OutputConfig m_outputConfig;
237
238 Aws::String m_kMSKeyId;
239
240 QueriesConfig m_queriesConfig;
241
242 AdaptersConfig m_adaptersConfig;
243 bool m_documentLocationHasBeenSet = false;
244 bool m_featureTypesHasBeenSet = false;
245 bool m_clientRequestTokenHasBeenSet = false;
246 bool m_jobTagHasBeenSet = false;
247 bool m_notificationChannelHasBeenSet = false;
248 bool m_outputConfigHasBeenSet = false;
249 bool m_kMSKeyIdHasBeenSet = false;
250 bool m_queriesConfigHasBeenSet = false;
251 bool m_adaptersConfigHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace Textract
256} // namespace Aws
StartDocumentAnalysisRequest & AddFeatureTypes(FeatureType value)
StartDocumentAnalysisRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_TEXTRACT_API StartDocumentAnalysisRequest()=default
StartDocumentAnalysisRequest & WithAdaptersConfig(AdaptersConfigT &&value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
const Aws::Vector< FeatureType > & GetFeatureTypes() const
StartDocumentAnalysisRequest & WithJobTag(JobTagT &&value)
StartDocumentAnalysisRequest & WithKMSKeyId(KMSKeyIdT &&value)
StartDocumentAnalysisRequest & WithOutputConfig(OutputConfigT &&value)
StartDocumentAnalysisRequest & WithNotificationChannel(NotificationChannelT &&value)
StartDocumentAnalysisRequest & WithFeatureTypes(FeatureTypesT &&value)
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartDocumentAnalysisRequest & WithQueriesConfig(QueriesConfigT &&value)
StartDocumentAnalysisRequest & WithDocumentLocation(DocumentLocationT &&value)
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