AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartDocumentClassificationJobRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/InputDataConfig.h>
10#include <aws/comprehend/model/OutputDataConfig.h>
11#include <aws/comprehend/model/Tag.h>
12#include <aws/comprehend/model/VpcConfig.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Comprehend {
21namespace Model {
22
26 public:
27 AWS_COMPREHEND_API StartDocumentClassificationJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartDocumentClassificationJob"; }
34
35 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetJobName() const { return m_jobName; }
44 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
45 template <typename JobNameT = Aws::String>
46 void SetJobName(JobNameT&& value) {
47 m_jobNameHasBeenSet = true;
48 m_jobName = std::forward<JobNameT>(value);
49 }
50 template <typename JobNameT = Aws::String>
52 SetJobName(std::forward<JobNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDocumentClassifierArn() const { return m_documentClassifierArn; }
63 inline bool DocumentClassifierArnHasBeenSet() const { return m_documentClassifierArnHasBeenSet; }
64 template <typename DocumentClassifierArnT = Aws::String>
65 void SetDocumentClassifierArn(DocumentClassifierArnT&& value) {
66 m_documentClassifierArnHasBeenSet = true;
67 m_documentClassifierArn = std::forward<DocumentClassifierArnT>(value);
68 }
69 template <typename DocumentClassifierArnT = Aws::String>
71 SetDocumentClassifierArn(std::forward<DocumentClassifierArnT>(value));
72 return *this;
73 }
75
77
80 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
81 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
82 template <typename InputDataConfigT = InputDataConfig>
83 void SetInputDataConfig(InputDataConfigT&& value) {
84 m_inputDataConfigHasBeenSet = true;
85 m_inputDataConfig = std::forward<InputDataConfigT>(value);
86 }
87 template <typename InputDataConfigT = InputDataConfig>
89 SetInputDataConfig(std::forward<InputDataConfigT>(value));
90 return *this;
91 }
93
95
98 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
99 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
100 template <typename OutputDataConfigT = OutputDataConfig>
101 void SetOutputDataConfig(OutputDataConfigT&& value) {
102 m_outputDataConfigHasBeenSet = true;
103 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
104 }
105 template <typename OutputDataConfigT = OutputDataConfig>
107 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
118 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
119 template <typename DataAccessRoleArnT = Aws::String>
120 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
121 m_dataAccessRoleArnHasBeenSet = true;
122 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
123 }
124 template <typename DataAccessRoleArnT = Aws::String>
126 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
137 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
138 template <typename ClientRequestTokenT = Aws::String>
139 void SetClientRequestToken(ClientRequestTokenT&& value) {
140 m_clientRequestTokenHasBeenSet = true;
141 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
142 }
143 template <typename ClientRequestTokenT = Aws::String>
145 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
146 return *this;
147 }
149
151
161 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
162 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
163 template <typename VolumeKmsKeyIdT = Aws::String>
164 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
165 m_volumeKmsKeyIdHasBeenSet = true;
166 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
167 }
168 template <typename VolumeKmsKeyIdT = Aws::String>
170 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
171 return *this;
172 }
174
176
183 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
184 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
185 template <typename VpcConfigT = VpcConfig>
186 void SetVpcConfig(VpcConfigT&& value) {
187 m_vpcConfigHasBeenSet = true;
188 m_vpcConfig = std::forward<VpcConfigT>(value);
189 }
190 template <typename VpcConfigT = VpcConfig>
192 SetVpcConfig(std::forward<VpcConfigT>(value));
193 return *this;
194 }
196
198
204 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template <typename TagsT = Aws::Vector<Tag>>
207 void SetTags(TagsT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags = std::forward<TagsT>(value);
210 }
211 template <typename TagsT = Aws::Vector<Tag>>
213 SetTags(std::forward<TagsT>(value));
214 return *this;
215 }
216 template <typename TagsT = Tag>
218 m_tagsHasBeenSet = true;
219 m_tags.emplace_back(std::forward<TagsT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetFlywheelArn() const { return m_flywheelArn; }
230 inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; }
231 template <typename FlywheelArnT = Aws::String>
232 void SetFlywheelArn(FlywheelArnT&& value) {
233 m_flywheelArnHasBeenSet = true;
234 m_flywheelArn = std::forward<FlywheelArnT>(value);
235 }
236 template <typename FlywheelArnT = Aws::String>
238 SetFlywheelArn(std::forward<FlywheelArnT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_jobName;
244
245 Aws::String m_documentClassifierArn;
246
247 InputDataConfig m_inputDataConfig;
248
249 OutputDataConfig m_outputDataConfig;
250
251 Aws::String m_dataAccessRoleArn;
252
253 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
254
255 Aws::String m_volumeKmsKeyId;
256
257 VpcConfig m_vpcConfig;
258
259 Aws::Vector<Tag> m_tags;
260
261 Aws::String m_flywheelArn;
262 bool m_jobNameHasBeenSet = false;
263 bool m_documentClassifierArnHasBeenSet = false;
264 bool m_inputDataConfigHasBeenSet = false;
265 bool m_outputDataConfigHasBeenSet = false;
266 bool m_dataAccessRoleArnHasBeenSet = false;
267 bool m_clientRequestTokenHasBeenSet = true;
268 bool m_volumeKmsKeyIdHasBeenSet = false;
269 bool m_vpcConfigHasBeenSet = false;
270 bool m_tagsHasBeenSet = false;
271 bool m_flywheelArnHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace Comprehend
276} // namespace Aws
StartDocumentClassificationJobRequest & WithDocumentClassifierArn(DocumentClassifierArnT &&value)
StartDocumentClassificationJobRequest & WithVpcConfig(VpcConfigT &&value)
StartDocumentClassificationJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
StartDocumentClassificationJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartDocumentClassificationJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartDocumentClassificationJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartDocumentClassificationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartDocumentClassificationJobRequest & WithJobName(JobNameT &&value)
StartDocumentClassificationJobRequest & WithFlywheelArn(FlywheelArnT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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