AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateDocumentClassifierRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/DocumentClassifierInputDataConfig.h>
10#include <aws/comprehend/model/DocumentClassifierMode.h>
11#include <aws/comprehend/model/DocumentClassifierOutputDataConfig.h>
12#include <aws/comprehend/model/LanguageCode.h>
13#include <aws/comprehend/model/Tag.h>
14#include <aws/comprehend/model/VpcConfig.h>
15#include <aws/core/utils/UUID.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Comprehend {
23namespace Model {
24
28 public:
29 AWS_COMPREHEND_API CreateDocumentClassifierRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDocumentClassifier"; }
36
37 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetDocumentClassifierName() const { return m_documentClassifierName; }
46 inline bool DocumentClassifierNameHasBeenSet() const { return m_documentClassifierNameHasBeenSet; }
47 template <typename DocumentClassifierNameT = Aws::String>
48 void SetDocumentClassifierName(DocumentClassifierNameT&& value) {
49 m_documentClassifierNameHasBeenSet = true;
50 m_documentClassifierName = std::forward<DocumentClassifierNameT>(value);
51 }
52 template <typename DocumentClassifierNameT = Aws::String>
54 SetDocumentClassifierName(std::forward<DocumentClassifierNameT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::String& GetVersionName() const { return m_versionName; }
68 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
69 template <typename VersionNameT = Aws::String>
70 void SetVersionName(VersionNameT&& value) {
71 m_versionNameHasBeenSet = true;
72 m_versionName = std::forward<VersionNameT>(value);
73 }
74 template <typename VersionNameT = Aws::String>
76 SetVersionName(std::forward<VersionNameT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
87 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
88 template <typename DataAccessRoleArnT = Aws::String>
89 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
90 m_dataAccessRoleArnHasBeenSet = true;
91 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
92 }
93 template <typename DataAccessRoleArnT = Aws::String>
95 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
96 return *this;
97 }
99
101
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Vector<Tag>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsT = Tag>
121 m_tagsHasBeenSet = true;
122 m_tags.emplace_back(std::forward<TagsT>(value));
123 return *this;
124 }
126
128
131 inline const DocumentClassifierInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
132 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
133 template <typename InputDataConfigT = DocumentClassifierInputDataConfig>
134 void SetInputDataConfig(InputDataConfigT&& value) {
135 m_inputDataConfigHasBeenSet = true;
136 m_inputDataConfig = std::forward<InputDataConfigT>(value);
137 }
138 template <typename InputDataConfigT = DocumentClassifierInputDataConfig>
140 SetInputDataConfig(std::forward<InputDataConfigT>(value));
141 return *this;
142 }
144
146
151 inline const DocumentClassifierOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
152 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
153 template <typename OutputDataConfigT = DocumentClassifierOutputDataConfig>
154 void SetOutputDataConfig(OutputDataConfigT&& value) {
155 m_outputDataConfigHasBeenSet = true;
156 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
157 }
158 template <typename OutputDataConfigT = DocumentClassifierOutputDataConfig>
160 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
171 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
172 template <typename ClientRequestTokenT = Aws::String>
173 void SetClientRequestToken(ClientRequestTokenT&& value) {
174 m_clientRequestTokenHasBeenSet = true;
175 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
176 }
177 template <typename ClientRequestTokenT = Aws::String>
179 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
180 return *this;
181 }
183
185
189 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
190 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
191 inline void SetLanguageCode(LanguageCode value) {
192 m_languageCodeHasBeenSet = true;
193 m_languageCode = value;
194 }
196 SetLanguageCode(value);
197 return *this;
198 }
200
202
212 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
213 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
214 template <typename VolumeKmsKeyIdT = Aws::String>
215 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
216 m_volumeKmsKeyIdHasBeenSet = true;
217 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
218 }
219 template <typename VolumeKmsKeyIdT = Aws::String>
221 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
222 return *this;
223 }
225
227
234 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
235 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
236 template <typename VpcConfigT = VpcConfig>
237 void SetVpcConfig(VpcConfigT&& value) {
238 m_vpcConfigHasBeenSet = true;
239 m_vpcConfig = std::forward<VpcConfigT>(value);
240 }
241 template <typename VpcConfigT = VpcConfig>
243 SetVpcConfig(std::forward<VpcConfigT>(value));
244 return *this;
245 }
247
249
257 inline DocumentClassifierMode GetMode() const { return m_mode; }
258 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
259 inline void SetMode(DocumentClassifierMode value) {
260 m_modeHasBeenSet = true;
261 m_mode = value;
262 }
264 SetMode(value);
265 return *this;
266 }
268
270
278 inline const Aws::String& GetModelKmsKeyId() const { return m_modelKmsKeyId; }
279 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
280 template <typename ModelKmsKeyIdT = Aws::String>
281 void SetModelKmsKeyId(ModelKmsKeyIdT&& value) {
282 m_modelKmsKeyIdHasBeenSet = true;
283 m_modelKmsKeyId = std::forward<ModelKmsKeyIdT>(value);
284 }
285 template <typename ModelKmsKeyIdT = Aws::String>
287 SetModelKmsKeyId(std::forward<ModelKmsKeyIdT>(value));
288 return *this;
289 }
291
293
306 inline const Aws::String& GetModelPolicy() const { return m_modelPolicy; }
307 inline bool ModelPolicyHasBeenSet() const { return m_modelPolicyHasBeenSet; }
308 template <typename ModelPolicyT = Aws::String>
309 void SetModelPolicy(ModelPolicyT&& value) {
310 m_modelPolicyHasBeenSet = true;
311 m_modelPolicy = std::forward<ModelPolicyT>(value);
312 }
313 template <typename ModelPolicyT = Aws::String>
315 SetModelPolicy(std::forward<ModelPolicyT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_documentClassifierName;
321
322 Aws::String m_versionName;
323
324 Aws::String m_dataAccessRoleArn;
325
326 Aws::Vector<Tag> m_tags;
327
328 DocumentClassifierInputDataConfig m_inputDataConfig;
329
330 DocumentClassifierOutputDataConfig m_outputDataConfig;
331
332 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
333
334 LanguageCode m_languageCode{LanguageCode::NOT_SET};
335
336 Aws::String m_volumeKmsKeyId;
337
338 VpcConfig m_vpcConfig;
339
341
342 Aws::String m_modelKmsKeyId;
343
344 Aws::String m_modelPolicy;
345 bool m_documentClassifierNameHasBeenSet = false;
346 bool m_versionNameHasBeenSet = false;
347 bool m_dataAccessRoleArnHasBeenSet = false;
348 bool m_tagsHasBeenSet = false;
349 bool m_inputDataConfigHasBeenSet = false;
350 bool m_outputDataConfigHasBeenSet = false;
351 bool m_clientRequestTokenHasBeenSet = true;
352 bool m_languageCodeHasBeenSet = false;
353 bool m_volumeKmsKeyIdHasBeenSet = false;
354 bool m_vpcConfigHasBeenSet = false;
355 bool m_modeHasBeenSet = false;
356 bool m_modelKmsKeyIdHasBeenSet = false;
357 bool m_modelPolicyHasBeenSet = false;
358};
359
360} // namespace Model
361} // namespace Comprehend
362} // namespace Aws
const DocumentClassifierInputDataConfig & GetInputDataConfig() const
CreateDocumentClassifierRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
CreateDocumentClassifierRequest & WithModelKmsKeyId(ModelKmsKeyIdT &&value)
CreateDocumentClassifierRequest & WithVersionName(VersionNameT &&value)
CreateDocumentClassifierRequest & WithVpcConfig(VpcConfigT &&value)
CreateDocumentClassifierRequest & WithTags(TagsT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPREHEND_API CreateDocumentClassifierRequest()=default
CreateDocumentClassifierRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
CreateDocumentClassifierRequest & WithModelPolicy(ModelPolicyT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
CreateDocumentClassifierRequest & WithLanguageCode(LanguageCode value)
CreateDocumentClassifierRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateDocumentClassifierRequest & WithDocumentClassifierName(DocumentClassifierNameT &&value)
CreateDocumentClassifierRequest & WithInputDataConfig(InputDataConfigT &&value)
CreateDocumentClassifierRequest & WithMode(DocumentClassifierMode value)
const DocumentClassifierOutputDataConfig & GetOutputDataConfig() const
CreateDocumentClassifierRequest & WithOutputDataConfig(OutputDataConfigT &&value)
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