AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartKeyPhrasesDetectionJobRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/comprehend/model/InputDataConfig.h>
10#include <aws/comprehend/model/OutputDataConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/comprehend/model/LanguageCode.h>
13#include <aws/comprehend/model/VpcConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/comprehend/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Comprehend
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_COMPREHEND_API StartKeyPhrasesDetectionJobRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartKeyPhrasesDetectionJob"; }
38
39 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
49 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
50 template<typename InputDataConfigT = InputDataConfig>
51 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
52 template<typename InputDataConfigT = InputDataConfig>
53 StartKeyPhrasesDetectionJobRequest& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
55
57
60 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
61 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
62 template<typename OutputDataConfigT = OutputDataConfig>
63 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
64 template<typename OutputDataConfigT = OutputDataConfig>
65 StartKeyPhrasesDetectionJobRequest& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
67
69
75 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
76 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
77 template<typename DataAccessRoleArnT = Aws::String>
78 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
79 template<typename DataAccessRoleArnT = Aws::String>
80 StartKeyPhrasesDetectionJobRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
82
84
87 inline const Aws::String& GetJobName() const { return m_jobName; }
88 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
89 template<typename JobNameT = Aws::String>
90 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
91 template<typename JobNameT = Aws::String>
92 StartKeyPhrasesDetectionJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
94
96
101 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
102 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
103 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
106
108
112 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
113 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
114 template<typename ClientRequestTokenT = Aws::String>
115 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
116 template<typename ClientRequestTokenT = Aws::String>
117 StartKeyPhrasesDetectionJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
119
121
131 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
132 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
133 template<typename VolumeKmsKeyIdT = Aws::String>
134 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value); }
135 template<typename VolumeKmsKeyIdT = Aws::String>
136 StartKeyPhrasesDetectionJobRequest& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value)); return *this;}
138
140
147 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
148 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
149 template<typename VpcConfigT = VpcConfig>
150 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
151 template<typename VpcConfigT = VpcConfig>
152 StartKeyPhrasesDetectionJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
154
156
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Vector<Tag>>
167 StartKeyPhrasesDetectionJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsT = Tag>
169 StartKeyPhrasesDetectionJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
171 private:
172
173 InputDataConfig m_inputDataConfig;
174 bool m_inputDataConfigHasBeenSet = false;
175
176 OutputDataConfig m_outputDataConfig;
177 bool m_outputDataConfigHasBeenSet = false;
178
179 Aws::String m_dataAccessRoleArn;
180 bool m_dataAccessRoleArnHasBeenSet = false;
181
182 Aws::String m_jobName;
183 bool m_jobNameHasBeenSet = false;
184
185 LanguageCode m_languageCode{LanguageCode::NOT_SET};
186 bool m_languageCodeHasBeenSet = false;
187
188 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
189 bool m_clientRequestTokenHasBeenSet = true;
190
191 Aws::String m_volumeKmsKeyId;
192 bool m_volumeKmsKeyIdHasBeenSet = false;
193
194 VpcConfig m_vpcConfig;
195 bool m_vpcConfigHasBeenSet = false;
196
197 Aws::Vector<Tag> m_tags;
198 bool m_tagsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Comprehend
203} // namespace Aws
StartKeyPhrasesDetectionJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
StartKeyPhrasesDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
AWS_COMPREHEND_API StartKeyPhrasesDetectionJobRequest()=default
StartKeyPhrasesDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartKeyPhrasesDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartKeyPhrasesDetectionJobRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartKeyPhrasesDetectionJobRequest & WithJobName(JobNameT &&value)
StartKeyPhrasesDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
StartKeyPhrasesDetectionJobRequest & WithVpcConfig(VpcConfigT &&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