AWS SDK for C++  1.8.71
AWS SDK for C++
StartSentimentDetectionJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace Comprehend
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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 "StartSentimentDetectionJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
46 
50  inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
51 
55  inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
56 
60  inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
61 
65  inline StartSentimentDetectionJobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
66 
70  inline StartSentimentDetectionJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
71 
72 
76  inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
77 
81  inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
82 
86  inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
87 
91  inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
92 
96  inline StartSentimentDetectionJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
97 
101  inline StartSentimentDetectionJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
102 
103 
110  inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
111 
118  inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
119 
126  inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
127 
134  inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
135 
142  inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
143 
150  inline StartSentimentDetectionJobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
151 
158  inline StartSentimentDetectionJobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
159 
166  inline StartSentimentDetectionJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
167 
168 
172  inline const Aws::String& GetJobName() const{ return m_jobName; }
173 
177  inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
178 
182  inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
183 
187  inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
188 
192  inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
193 
197  inline StartSentimentDetectionJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
198 
202  inline StartSentimentDetectionJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
203 
207  inline StartSentimentDetectionJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
208 
209 
215  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
216 
222  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
223 
229  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
230 
236  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
237 
243  inline StartSentimentDetectionJobRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
244 
250  inline StartSentimentDetectionJobRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
251 
252 
257  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
258 
263  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
264 
269  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
270 
275  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
276 
281  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
282 
287  inline StartSentimentDetectionJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
288 
293  inline StartSentimentDetectionJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
294 
299  inline StartSentimentDetectionJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
300 
301 
312  inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
313 
324  inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
325 
336  inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
337 
348  inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
349 
360  inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
361 
372  inline StartSentimentDetectionJobRequest& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
373 
384  inline StartSentimentDetectionJobRequest& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
385 
396  inline StartSentimentDetectionJobRequest& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
397 
398 
406  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
407 
415  inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
416 
424  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
425 
433  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
434 
442  inline StartSentimentDetectionJobRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
443 
451  inline StartSentimentDetectionJobRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
452 
453  private:
454 
455  InputDataConfig m_inputDataConfig;
456  bool m_inputDataConfigHasBeenSet;
457 
458  OutputDataConfig m_outputDataConfig;
459  bool m_outputDataConfigHasBeenSet;
460 
461  Aws::String m_dataAccessRoleArn;
462  bool m_dataAccessRoleArnHasBeenSet;
463 
464  Aws::String m_jobName;
465  bool m_jobNameHasBeenSet;
466 
467  LanguageCode m_languageCode;
468  bool m_languageCodeHasBeenSet;
469 
470  Aws::String m_clientRequestToken;
471  bool m_clientRequestTokenHasBeenSet;
472 
473  Aws::String m_volumeKmsKeyId;
474  bool m_volumeKmsKeyIdHasBeenSet;
475 
476  VpcConfig m_vpcConfig;
477  bool m_vpcConfigHasBeenSet;
478  };
479 
480 } // namespace Model
481 } // namespace Comprehend
482 } // namespace Aws
StartSentimentDetectionJobRequest & WithLanguageCode(const LanguageCode &value)
StartSentimentDetectionJobRequest & WithDataAccessRoleArn(const char *value)
StartSentimentDetectionJobRequest & WithJobName(Aws::String &&value)
StartSentimentDetectionJobRequest & WithClientRequestToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartSentimentDetectionJobRequest & WithClientRequestToken(Aws::String &&value)
StartSentimentDetectionJobRequest & WithOutputDataConfig(const OutputDataConfig &value)
StartSentimentDetectionJobRequest & WithOutputDataConfig(OutputDataConfig &&value)
StartSentimentDetectionJobRequest & WithInputDataConfig(const InputDataConfig &value)
#define AWS_COMPREHEND_API
StartSentimentDetectionJobRequest & WithVolumeKmsKeyId(const char *value)
StartSentimentDetectionJobRequest & WithJobName(const char *value)
StartSentimentDetectionJobRequest & WithVolumeKmsKeyId(const Aws::String &value)
StartSentimentDetectionJobRequest & WithDataAccessRoleArn(Aws::String &&value)
StartSentimentDetectionJobRequest & WithVpcConfig(VpcConfig &&value)
StartSentimentDetectionJobRequest & WithJobName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartSentimentDetectionJobRequest & WithVpcConfig(const VpcConfig &value)
StartSentimentDetectionJobRequest & WithClientRequestToken(const char *value)
StartSentimentDetectionJobRequest & WithInputDataConfig(InputDataConfig &&value)
StartSentimentDetectionJobRequest & WithLanguageCode(LanguageCode &&value)
StartSentimentDetectionJobRequest & WithVolumeKmsKeyId(Aws::String &&value)
StartSentimentDetectionJobRequest & WithDataAccessRoleArn(const Aws::String &value)