AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartEntitiesDetectionJobRequest.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/LanguageCode.h>
11#include <aws/comprehend/model/OutputDataConfig.h>
12#include <aws/comprehend/model/Tag.h>
13#include <aws/comprehend/model/VpcConfig.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Comprehend {
22namespace Model {
23
27 public:
28 AWS_COMPREHEND_API StartEntitiesDetectionJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartEntitiesDetectionJob"; }
35
36 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
37
39
41
44 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
45 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
46 template <typename InputDataConfigT = InputDataConfig>
47 void SetInputDataConfig(InputDataConfigT&& value) {
48 m_inputDataConfigHasBeenSet = true;
49 m_inputDataConfig = std::forward<InputDataConfigT>(value);
50 }
51 template <typename InputDataConfigT = InputDataConfig>
53 SetInputDataConfig(std::forward<InputDataConfigT>(value));
54 return *this;
55 }
57
59
62 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
63 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
64 template <typename OutputDataConfigT = OutputDataConfig>
65 void SetOutputDataConfig(OutputDataConfigT&& value) {
66 m_outputDataConfigHasBeenSet = true;
67 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
68 }
69 template <typename OutputDataConfigT = OutputDataConfig>
71 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
84 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
85 template <typename DataAccessRoleArnT = Aws::String>
86 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
87 m_dataAccessRoleArnHasBeenSet = true;
88 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
89 }
90 template <typename DataAccessRoleArnT = Aws::String>
92 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetJobName() const { return m_jobName; }
102 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
103 template <typename JobNameT = Aws::String>
104 void SetJobName(JobNameT&& value) {
105 m_jobNameHasBeenSet = true;
106 m_jobName = std::forward<JobNameT>(value);
107 }
108 template <typename JobNameT = Aws::String>
110 SetJobName(std::forward<JobNameT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetEntityRecognizerArn() const { return m_entityRecognizerArn; }
122 inline bool EntityRecognizerArnHasBeenSet() const { return m_entityRecognizerArnHasBeenSet; }
123 template <typename EntityRecognizerArnT = Aws::String>
124 void SetEntityRecognizerArn(EntityRecognizerArnT&& value) {
125 m_entityRecognizerArnHasBeenSet = true;
126 m_entityRecognizerArn = std::forward<EntityRecognizerArnT>(value);
127 }
128 template <typename EntityRecognizerArnT = Aws::String>
130 SetEntityRecognizerArn(std::forward<EntityRecognizerArnT>(value));
131 return *this;
132 }
134
136
142 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
143 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
144 inline void SetLanguageCode(LanguageCode value) {
145 m_languageCodeHasBeenSet = true;
146 m_languageCode = value;
147 }
149 SetLanguageCode(value);
150 return *this;
151 }
153
155
159 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
160 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
161 template <typename ClientRequestTokenT = Aws::String>
162 void SetClientRequestToken(ClientRequestTokenT&& value) {
163 m_clientRequestTokenHasBeenSet = true;
164 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
165 }
166 template <typename ClientRequestTokenT = Aws::String>
168 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
169 return *this;
170 }
172
174
184 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
185 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
186 template <typename VolumeKmsKeyIdT = Aws::String>
187 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
188 m_volumeKmsKeyIdHasBeenSet = true;
189 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
190 }
191 template <typename VolumeKmsKeyIdT = Aws::String>
193 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
194 return *this;
195 }
197
199
206 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
207 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
208 template <typename VpcConfigT = VpcConfig>
209 void SetVpcConfig(VpcConfigT&& value) {
210 m_vpcConfigHasBeenSet = true;
211 m_vpcConfig = std::forward<VpcConfigT>(value);
212 }
213 template <typename VpcConfigT = VpcConfig>
215 SetVpcConfig(std::forward<VpcConfigT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
228 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 template <typename TagsT = Aws::Vector<Tag>>
230 void SetTags(TagsT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags = std::forward<TagsT>(value);
233 }
234 template <typename TagsT = Aws::Vector<Tag>>
236 SetTags(std::forward<TagsT>(value));
237 return *this;
238 }
239 template <typename TagsT = Tag>
241 m_tagsHasBeenSet = true;
242 m_tags.emplace_back(std::forward<TagsT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::String& GetFlywheelArn() const { return m_flywheelArn; }
253 inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; }
254 template <typename FlywheelArnT = Aws::String>
255 void SetFlywheelArn(FlywheelArnT&& value) {
256 m_flywheelArnHasBeenSet = true;
257 m_flywheelArn = std::forward<FlywheelArnT>(value);
258 }
259 template <typename FlywheelArnT = Aws::String>
261 SetFlywheelArn(std::forward<FlywheelArnT>(value));
262 return *this;
263 }
265 private:
266 InputDataConfig m_inputDataConfig;
267
268 OutputDataConfig m_outputDataConfig;
269
270 Aws::String m_dataAccessRoleArn;
271
272 Aws::String m_jobName;
273
274 Aws::String m_entityRecognizerArn;
275
276 LanguageCode m_languageCode{LanguageCode::NOT_SET};
277
278 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
279
280 Aws::String m_volumeKmsKeyId;
281
282 VpcConfig m_vpcConfig;
283
284 Aws::Vector<Tag> m_tags;
285
286 Aws::String m_flywheelArn;
287 bool m_inputDataConfigHasBeenSet = false;
288 bool m_outputDataConfigHasBeenSet = false;
289 bool m_dataAccessRoleArnHasBeenSet = false;
290 bool m_jobNameHasBeenSet = false;
291 bool m_entityRecognizerArnHasBeenSet = false;
292 bool m_languageCodeHasBeenSet = false;
293 bool m_clientRequestTokenHasBeenSet = true;
294 bool m_volumeKmsKeyIdHasBeenSet = false;
295 bool m_vpcConfigHasBeenSet = false;
296 bool m_tagsHasBeenSet = false;
297 bool m_flywheelArnHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace Comprehend
302} // namespace Aws
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartEntitiesDetectionJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
StartEntitiesDetectionJobRequest & WithFlywheelArn(FlywheelArnT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
StartEntitiesDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartEntitiesDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartEntitiesDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
AWS_COMPREHEND_API StartEntitiesDetectionJobRequest()=default
StartEntitiesDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartEntitiesDetectionJobRequest & WithEntityRecognizerArn(EntityRecognizerArnT &&value)
StartEntitiesDetectionJobRequest & WithVpcConfig(VpcConfigT &&value)
StartEntitiesDetectionJobRequest & WithJobName(JobNameT &&value)
StartEntitiesDetectionJobRequest & WithLanguageCode(LanguageCode 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