AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEntityRecognizerRequest.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/EntityRecognizerInputDataConfig.h>
12#include <aws/comprehend/model/LanguageCode.h>
13#include <aws/comprehend/model/VpcConfig.h>
14#include <aws/comprehend/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Comprehend
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COMPREHEND_API CreateEntityRecognizerRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateEntityRecognizer"; }
37
38 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::String& GetRecognizerName() const{ return m_recognizerName; }
50 inline bool RecognizerNameHasBeenSet() const { return m_recognizerNameHasBeenSet; }
51 inline void SetRecognizerName(const Aws::String& value) { m_recognizerNameHasBeenSet = true; m_recognizerName = value; }
52 inline void SetRecognizerName(Aws::String&& value) { m_recognizerNameHasBeenSet = true; m_recognizerName = std::move(value); }
53 inline void SetRecognizerName(const char* value) { m_recognizerNameHasBeenSet = true; m_recognizerName.assign(value); }
55 inline CreateEntityRecognizerRequest& WithRecognizerName(Aws::String&& value) { SetRecognizerName(std::move(value)); return *this;}
56 inline CreateEntityRecognizerRequest& WithRecognizerName(const char* value) { SetRecognizerName(value); return *this;}
58
60
66 inline const Aws::String& GetVersionName() const{ return m_versionName; }
67 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
68 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
69 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
70 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
71 inline CreateEntityRecognizerRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
72 inline CreateEntityRecognizerRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
73 inline CreateEntityRecognizerRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
75
77
81 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
82 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
83 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
84 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
85 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
87 inline CreateEntityRecognizerRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
88 inline CreateEntityRecognizerRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
90
92
98 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateEntityRecognizerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
103 inline CreateEntityRecognizerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
104 inline CreateEntityRecognizerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
105 inline CreateEntityRecognizerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
107
109
114 inline const EntityRecognizerInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
115 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
116 inline void SetInputDataConfig(const EntityRecognizerInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
117 inline void SetInputDataConfig(EntityRecognizerInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
121
123
127 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
128 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
129 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
130 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
131 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
134 inline CreateEntityRecognizerRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
136
138
145 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
146 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
147 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
148 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
149 inline CreateEntityRecognizerRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
150 inline CreateEntityRecognizerRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
152
154
164 inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
165 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
166 inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
167 inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
168 inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
170 inline CreateEntityRecognizerRequest& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
171 inline CreateEntityRecognizerRequest& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
173
175
182 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
183 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
184 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
185 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
186 inline CreateEntityRecognizerRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
187 inline CreateEntityRecognizerRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
189
191
199 inline const Aws::String& GetModelKmsKeyId() const{ return m_modelKmsKeyId; }
200 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
201 inline void SetModelKmsKeyId(const Aws::String& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = value; }
202 inline void SetModelKmsKeyId(Aws::String&& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = std::move(value); }
203 inline void SetModelKmsKeyId(const char* value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId.assign(value); }
205 inline CreateEntityRecognizerRequest& WithModelKmsKeyId(Aws::String&& value) { SetModelKmsKeyId(std::move(value)); return *this;}
206 inline CreateEntityRecognizerRequest& WithModelKmsKeyId(const char* value) { SetModelKmsKeyId(value); return *this;}
208
210
223 inline const Aws::String& GetModelPolicy() const{ return m_modelPolicy; }
224 inline bool ModelPolicyHasBeenSet() const { return m_modelPolicyHasBeenSet; }
225 inline void SetModelPolicy(const Aws::String& value) { m_modelPolicyHasBeenSet = true; m_modelPolicy = value; }
226 inline void SetModelPolicy(Aws::String&& value) { m_modelPolicyHasBeenSet = true; m_modelPolicy = std::move(value); }
227 inline void SetModelPolicy(const char* value) { m_modelPolicyHasBeenSet = true; m_modelPolicy.assign(value); }
228 inline CreateEntityRecognizerRequest& WithModelPolicy(const Aws::String& value) { SetModelPolicy(value); return *this;}
229 inline CreateEntityRecognizerRequest& WithModelPolicy(Aws::String&& value) { SetModelPolicy(std::move(value)); return *this;}
230 inline CreateEntityRecognizerRequest& WithModelPolicy(const char* value) { SetModelPolicy(value); return *this;}
232 private:
233
234 Aws::String m_recognizerName;
235 bool m_recognizerNameHasBeenSet = false;
236
237 Aws::String m_versionName;
238 bool m_versionNameHasBeenSet = false;
239
240 Aws::String m_dataAccessRoleArn;
241 bool m_dataAccessRoleArnHasBeenSet = false;
242
243 Aws::Vector<Tag> m_tags;
244 bool m_tagsHasBeenSet = false;
245
246 EntityRecognizerInputDataConfig m_inputDataConfig;
247 bool m_inputDataConfigHasBeenSet = false;
248
249 Aws::String m_clientRequestToken;
250 bool m_clientRequestTokenHasBeenSet = false;
251
252 LanguageCode m_languageCode;
253 bool m_languageCodeHasBeenSet = false;
254
255 Aws::String m_volumeKmsKeyId;
256 bool m_volumeKmsKeyIdHasBeenSet = false;
257
258 VpcConfig m_vpcConfig;
259 bool m_vpcConfigHasBeenSet = false;
260
261 Aws::String m_modelKmsKeyId;
262 bool m_modelKmsKeyIdHasBeenSet = false;
263
264 Aws::String m_modelPolicy;
265 bool m_modelPolicyHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace Comprehend
270} // namespace Aws
CreateEntityRecognizerRequest & WithModelKmsKeyId(const Aws::String &value)
CreateEntityRecognizerRequest & WithModelPolicy(const char *value)
CreateEntityRecognizerRequest & AddTags(const Tag &value)
CreateEntityRecognizerRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEntityRecognizerRequest & WithClientRequestToken(const Aws::String &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
CreateEntityRecognizerRequest & WithClientRequestToken(Aws::String &&value)
CreateEntityRecognizerRequest & WithClientRequestToken(const char *value)
CreateEntityRecognizerRequest & WithModelPolicy(Aws::String &&value)
CreateEntityRecognizerRequest & WithVpcConfig(VpcConfig &&value)
CreateEntityRecognizerRequest & WithTags(Aws::Vector< Tag > &&value)
const EntityRecognizerInputDataConfig & GetInputDataConfig() const
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEntityRecognizerRequest & WithModelKmsKeyId(const char *value)
CreateEntityRecognizerRequest & WithInputDataConfig(EntityRecognizerInputDataConfig &&value)
CreateEntityRecognizerRequest & WithDataAccessRoleArn(Aws::String &&value)
CreateEntityRecognizerRequest & WithModelPolicy(const Aws::String &value)
CreateEntityRecognizerRequest & WithVersionName(const char *value)
CreateEntityRecognizerRequest & WithDataAccessRoleArn(const char *value)
void SetInputDataConfig(const EntityRecognizerInputDataConfig &value)
CreateEntityRecognizerRequest & WithVolumeKmsKeyId(const Aws::String &value)
void SetInputDataConfig(EntityRecognizerInputDataConfig &&value)
CreateEntityRecognizerRequest & WithVersionName(Aws::String &&value)
CreateEntityRecognizerRequest & WithInputDataConfig(const EntityRecognizerInputDataConfig &value)
CreateEntityRecognizerRequest & WithRecognizerName(const char *value)
CreateEntityRecognizerRequest & WithVolumeKmsKeyId(Aws::String &&value)
CreateEntityRecognizerRequest & WithRecognizerName(const Aws::String &value)
CreateEntityRecognizerRequest & WithVersionName(const Aws::String &value)
CreateEntityRecognizerRequest & WithRecognizerName(Aws::String &&value)
CreateEntityRecognizerRequest & WithVolumeKmsKeyId(const char *value)
CreateEntityRecognizerRequest & WithVpcConfig(const VpcConfig &value)
CreateEntityRecognizerRequest & WithLanguageCode(LanguageCode &&value)
CreateEntityRecognizerRequest & WithLanguageCode(const LanguageCode &value)
CreateEntityRecognizerRequest & WithModelKmsKeyId(Aws::String &&value)
CreateEntityRecognizerRequest & WithDataAccessRoleArn(const Aws::String &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