AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDocumentClassifierRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehend/model/DocumentClassifierInputDataConfig.h>
12#include <aws/comprehend/model/DocumentClassifierOutputDataConfig.h>
13#include <aws/comprehend/model/LanguageCode.h>
14#include <aws/comprehend/model/VpcConfig.h>
15#include <aws/comprehend/model/DocumentClassifierMode.h>
16#include <aws/comprehend/model/Tag.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace Comprehend
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_COMPREHEND_API CreateDocumentClassifierRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDocumentClassifier"; }
39
40 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetDocumentClassifierName() const{ return m_documentClassifierName; }
50 inline bool DocumentClassifierNameHasBeenSet() const { return m_documentClassifierNameHasBeenSet; }
51 inline void SetDocumentClassifierName(const Aws::String& value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName = value; }
52 inline void SetDocumentClassifierName(Aws::String&& value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName = std::move(value); }
53 inline void SetDocumentClassifierName(const char* value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName.assign(value); }
58
60
67 inline const Aws::String& GetVersionName() const{ return m_versionName; }
68 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
69 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
70 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
71 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
72 inline CreateDocumentClassifierRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
73 inline CreateDocumentClassifierRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
74 inline CreateDocumentClassifierRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
76
78
82 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
83 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
84 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
85 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
86 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
89 inline CreateDocumentClassifierRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
91
93
99 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline CreateDocumentClassifierRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 inline CreateDocumentClassifierRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
105 inline CreateDocumentClassifierRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
106 inline CreateDocumentClassifierRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
108
110
113 inline const DocumentClassifierInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
114 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
115 inline void SetInputDataConfig(const DocumentClassifierInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
116 inline void SetInputDataConfig(DocumentClassifierInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
120
122
127 inline const DocumentClassifierOutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
128 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
129 inline void SetOutputDataConfig(const DocumentClassifierOutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
130 inline void SetOutputDataConfig(DocumentClassifierOutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
134
136
140 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
141 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
142 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
143 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
144 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
147 inline CreateDocumentClassifierRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
149
151
155 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
156 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
157 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
158 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
160 inline CreateDocumentClassifierRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
162
164
174 inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
175 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
176 inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
177 inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
178 inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
180 inline CreateDocumentClassifierRequest& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
181 inline CreateDocumentClassifierRequest& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
183
185
192 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
193 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
194 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
195 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
196 inline CreateDocumentClassifierRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
197 inline CreateDocumentClassifierRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
199
201
209 inline const DocumentClassifierMode& GetMode() const{ return m_mode; }
210 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
211 inline void SetMode(const DocumentClassifierMode& value) { m_modeHasBeenSet = true; m_mode = value; }
212 inline void SetMode(DocumentClassifierMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
213 inline CreateDocumentClassifierRequest& WithMode(const DocumentClassifierMode& value) { SetMode(value); return *this;}
214 inline CreateDocumentClassifierRequest& WithMode(DocumentClassifierMode&& value) { SetMode(std::move(value)); return *this;}
216
218
226 inline const Aws::String& GetModelKmsKeyId() const{ return m_modelKmsKeyId; }
227 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
228 inline void SetModelKmsKeyId(const Aws::String& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = value; }
229 inline void SetModelKmsKeyId(Aws::String&& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = std::move(value); }
230 inline void SetModelKmsKeyId(const char* value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId.assign(value); }
232 inline CreateDocumentClassifierRequest& WithModelKmsKeyId(Aws::String&& value) { SetModelKmsKeyId(std::move(value)); return *this;}
233 inline CreateDocumentClassifierRequest& WithModelKmsKeyId(const char* value) { SetModelKmsKeyId(value); return *this;}
235
237
250 inline const Aws::String& GetModelPolicy() const{ return m_modelPolicy; }
251 inline bool ModelPolicyHasBeenSet() const { return m_modelPolicyHasBeenSet; }
252 inline void SetModelPolicy(const Aws::String& value) { m_modelPolicyHasBeenSet = true; m_modelPolicy = value; }
253 inline void SetModelPolicy(Aws::String&& value) { m_modelPolicyHasBeenSet = true; m_modelPolicy = std::move(value); }
254 inline void SetModelPolicy(const char* value) { m_modelPolicyHasBeenSet = true; m_modelPolicy.assign(value); }
255 inline CreateDocumentClassifierRequest& WithModelPolicy(const Aws::String& value) { SetModelPolicy(value); return *this;}
256 inline CreateDocumentClassifierRequest& WithModelPolicy(Aws::String&& value) { SetModelPolicy(std::move(value)); return *this;}
257 inline CreateDocumentClassifierRequest& WithModelPolicy(const char* value) { SetModelPolicy(value); return *this;}
259 private:
260
261 Aws::String m_documentClassifierName;
262 bool m_documentClassifierNameHasBeenSet = false;
263
264 Aws::String m_versionName;
265 bool m_versionNameHasBeenSet = false;
266
267 Aws::String m_dataAccessRoleArn;
268 bool m_dataAccessRoleArnHasBeenSet = false;
269
270 Aws::Vector<Tag> m_tags;
271 bool m_tagsHasBeenSet = false;
272
273 DocumentClassifierInputDataConfig m_inputDataConfig;
274 bool m_inputDataConfigHasBeenSet = false;
275
276 DocumentClassifierOutputDataConfig m_outputDataConfig;
277 bool m_outputDataConfigHasBeenSet = false;
278
279 Aws::String m_clientRequestToken;
280 bool m_clientRequestTokenHasBeenSet = false;
281
282 LanguageCode m_languageCode;
283 bool m_languageCodeHasBeenSet = false;
284
285 Aws::String m_volumeKmsKeyId;
286 bool m_volumeKmsKeyIdHasBeenSet = false;
287
288 VpcConfig m_vpcConfig;
289 bool m_vpcConfigHasBeenSet = false;
290
292 bool m_modeHasBeenSet = false;
293
294 Aws::String m_modelKmsKeyId;
295 bool m_modelKmsKeyIdHasBeenSet = false;
296
297 Aws::String m_modelPolicy;
298 bool m_modelPolicyHasBeenSet = false;
299 };
300
301} // namespace Model
302} // namespace Comprehend
303} // namespace Aws
CreateDocumentClassifierRequest & WithLanguageCode(LanguageCode &&value)
void SetInputDataConfig(const DocumentClassifierInputDataConfig &value)
void SetOutputDataConfig(const DocumentClassifierOutputDataConfig &value)
CreateDocumentClassifierRequest & AddTags(const Tag &value)
CreateDocumentClassifierRequest & WithDocumentClassifierName(Aws::String &&value)
CreateDocumentClassifierRequest & WithModelKmsKeyId(const Aws::String &value)
const DocumentClassifierInputDataConfig & GetInputDataConfig() const
CreateDocumentClassifierRequest & WithInputDataConfig(DocumentClassifierInputDataConfig &&value)
CreateDocumentClassifierRequest & WithVersionName(const Aws::String &value)
CreateDocumentClassifierRequest & WithVersionName(const char *value)
CreateDocumentClassifierRequest & WithModelPolicy(const char *value)
CreateDocumentClassifierRequest & WithClientRequestToken(Aws::String &&value)
CreateDocumentClassifierRequest & WithVersionName(Aws::String &&value)
CreateDocumentClassifierRequest & WithModelKmsKeyId(const char *value)
CreateDocumentClassifierRequest & WithClientRequestToken(const char *value)
CreateDocumentClassifierRequest & WithInputDataConfig(const DocumentClassifierInputDataConfig &value)
CreateDocumentClassifierRequest & WithModelPolicy(const Aws::String &value)
CreateDocumentClassifierRequest & WithDocumentClassifierName(const char *value)
CreateDocumentClassifierRequest & WithVolumeKmsKeyId(const char *value)
CreateDocumentClassifierRequest & WithModelKmsKeyId(Aws::String &&value)
CreateDocumentClassifierRequest & WithDocumentClassifierName(const Aws::String &value)
CreateDocumentClassifierRequest & WithVpcConfig(const VpcConfig &value)
CreateDocumentClassifierRequest & WithVolumeKmsKeyId(const Aws::String &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDocumentClassifierRequest & WithLanguageCode(const LanguageCode &value)
CreateDocumentClassifierRequest & WithOutputDataConfig(const DocumentClassifierOutputDataConfig &value)
CreateDocumentClassifierRequest & WithDataAccessRoleArn(Aws::String &&value)
CreateDocumentClassifierRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDocumentClassifierRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetOutputDataConfig(DocumentClassifierOutputDataConfig &&value)
CreateDocumentClassifierRequest & WithOutputDataConfig(DocumentClassifierOutputDataConfig &&value)
CreateDocumentClassifierRequest & WithVolumeKmsKeyId(Aws::String &&value)
CreateDocumentClassifierRequest & WithDataAccessRoleArn(const char *value)
CreateDocumentClassifierRequest & WithModelPolicy(Aws::String &&value)
CreateDocumentClassifierRequest & WithMode(const DocumentClassifierMode &value)
CreateDocumentClassifierRequest & WithClientRequestToken(const Aws::String &value)
CreateDocumentClassifierRequest & WithDataAccessRoleArn(const Aws::String &value)
const DocumentClassifierOutputDataConfig & GetOutputDataConfig() const
void SetInputDataConfig(DocumentClassifierInputDataConfig &&value)
CreateDocumentClassifierRequest & WithMode(DocumentClassifierMode &&value)
CreateDocumentClassifierRequest & WithVpcConfig(VpcConfig &&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