AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartDocumentAnalysisRequest.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/textract/model/DocumentLocation.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/textract/model/NotificationChannel.h>
13#include <aws/textract/model/OutputConfig.h>
14#include <aws/textract/model/QueriesConfig.h>
15#include <aws/textract/model/AdaptersConfig.h>
16#include <aws/textract/model/FeatureType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Textract
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_TEXTRACT_API StartDocumentAnalysisRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartDocumentAnalysis"; }
38
39 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const DocumentLocation& GetDocumentLocation() const { return m_documentLocation; }
49 inline bool DocumentLocationHasBeenSet() const { return m_documentLocationHasBeenSet; }
50 template<typename DocumentLocationT = DocumentLocation>
51 void SetDocumentLocation(DocumentLocationT&& value) { m_documentLocationHasBeenSet = true; m_documentLocation = std::forward<DocumentLocationT>(value); }
52 template<typename DocumentLocationT = DocumentLocation>
53 StartDocumentAnalysisRequest& WithDocumentLocation(DocumentLocationT&& value) { SetDocumentLocation(std::forward<DocumentLocationT>(value)); return *this;}
55
57
65 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
66 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
67 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
68 void SetFeatureTypes(FeatureTypesT&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::forward<FeatureTypesT>(value); }
69 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
70 StartDocumentAnalysisRequest& WithFeatureTypes(FeatureTypesT&& value) { SetFeatureTypes(std::forward<FeatureTypesT>(value)); return *this;}
71 inline StartDocumentAnalysisRequest& AddFeatureTypes(FeatureType value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
73
75
84 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
85 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
86 template<typename ClientRequestTokenT = Aws::String>
87 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
88 template<typename ClientRequestTokenT = Aws::String>
89 StartDocumentAnalysisRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
91
93
99 inline const Aws::String& GetJobTag() const { return m_jobTag; }
100 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
101 template<typename JobTagT = Aws::String>
102 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
103 template<typename JobTagT = Aws::String>
104 StartDocumentAnalysisRequest& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
106
108
112 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
113 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
114 template<typename NotificationChannelT = NotificationChannel>
115 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
116 template<typename NotificationChannelT = NotificationChannel>
117 StartDocumentAnalysisRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
119
121
126 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
127 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
128 template<typename OutputConfigT = OutputConfig>
129 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
130 template<typename OutputConfigT = OutputConfig>
131 StartDocumentAnalysisRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
133
135
142 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
143 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
144 template<typename KMSKeyIdT = Aws::String>
145 void SetKMSKeyId(KMSKeyIdT&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::forward<KMSKeyIdT>(value); }
146 template<typename KMSKeyIdT = Aws::String>
147 StartDocumentAnalysisRequest& WithKMSKeyId(KMSKeyIdT&& value) { SetKMSKeyId(std::forward<KMSKeyIdT>(value)); return *this;}
149
151
152 inline const QueriesConfig& GetQueriesConfig() const { return m_queriesConfig; }
153 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
154 template<typename QueriesConfigT = QueriesConfig>
155 void SetQueriesConfig(QueriesConfigT&& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = std::forward<QueriesConfigT>(value); }
156 template<typename QueriesConfigT = QueriesConfig>
157 StartDocumentAnalysisRequest& WithQueriesConfig(QueriesConfigT&& value) { SetQueriesConfig(std::forward<QueriesConfigT>(value)); return *this;}
159
161
164 inline const AdaptersConfig& GetAdaptersConfig() const { return m_adaptersConfig; }
165 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
166 template<typename AdaptersConfigT = AdaptersConfig>
167 void SetAdaptersConfig(AdaptersConfigT&& value) { m_adaptersConfigHasBeenSet = true; m_adaptersConfig = std::forward<AdaptersConfigT>(value); }
168 template<typename AdaptersConfigT = AdaptersConfig>
169 StartDocumentAnalysisRequest& WithAdaptersConfig(AdaptersConfigT&& value) { SetAdaptersConfig(std::forward<AdaptersConfigT>(value)); return *this;}
171 private:
172
173 DocumentLocation m_documentLocation;
174 bool m_documentLocationHasBeenSet = false;
175
176 Aws::Vector<FeatureType> m_featureTypes;
177 bool m_featureTypesHasBeenSet = false;
178
179 Aws::String m_clientRequestToken;
180 bool m_clientRequestTokenHasBeenSet = false;
181
182 Aws::String m_jobTag;
183 bool m_jobTagHasBeenSet = false;
184
185 NotificationChannel m_notificationChannel;
186 bool m_notificationChannelHasBeenSet = false;
187
188 OutputConfig m_outputConfig;
189 bool m_outputConfigHasBeenSet = false;
190
191 Aws::String m_kMSKeyId;
192 bool m_kMSKeyIdHasBeenSet = false;
193
194 QueriesConfig m_queriesConfig;
195 bool m_queriesConfigHasBeenSet = false;
196
197 AdaptersConfig m_adaptersConfig;
198 bool m_adaptersConfigHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Textract
203} // 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