AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartTopicsDetectionJobRequest.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/OutputDataConfig.h>
11#include <aws/comprehend/model/Tag.h>
12#include <aws/comprehend/model/VpcConfig.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Comprehend {
21namespace Model {
22
26 public:
27 AWS_COMPREHEND_API StartTopicsDetectionJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartTopicsDetectionJob"; }
34
35 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
40
43 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
44 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
45 template <typename InputDataConfigT = InputDataConfig>
46 void SetInputDataConfig(InputDataConfigT&& value) {
47 m_inputDataConfigHasBeenSet = true;
48 m_inputDataConfig = std::forward<InputDataConfigT>(value);
49 }
50 template <typename InputDataConfigT = InputDataConfig>
52 SetInputDataConfig(std::forward<InputDataConfigT>(value));
53 return *this;
54 }
56
58
64 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
65 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
66 template <typename OutputDataConfigT = OutputDataConfig>
67 void SetOutputDataConfig(OutputDataConfigT&& value) {
68 m_outputDataConfigHasBeenSet = true;
69 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
70 }
71 template <typename OutputDataConfigT = OutputDataConfig>
73 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
86 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
87 template <typename DataAccessRoleArnT = Aws::String>
88 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
89 m_dataAccessRoleArnHasBeenSet = true;
90 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
91 }
92 template <typename DataAccessRoleArnT = Aws::String>
94 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetJobName() const { return m_jobName; }
104 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
105 template <typename JobNameT = Aws::String>
106 void SetJobName(JobNameT&& value) {
107 m_jobNameHasBeenSet = true;
108 m_jobName = std::forward<JobNameT>(value);
109 }
110 template <typename JobNameT = Aws::String>
112 SetJobName(std::forward<JobNameT>(value));
113 return *this;
114 }
116
118
121 inline int GetNumberOfTopics() const { return m_numberOfTopics; }
122 inline bool NumberOfTopicsHasBeenSet() const { return m_numberOfTopicsHasBeenSet; }
123 inline void SetNumberOfTopics(int value) {
124 m_numberOfTopicsHasBeenSet = true;
125 m_numberOfTopics = value;
126 }
128 SetNumberOfTopics(value);
129 return *this;
130 }
132
134
138 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
139 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
140 template <typename ClientRequestTokenT = Aws::String>
141 void SetClientRequestToken(ClientRequestTokenT&& value) {
142 m_clientRequestTokenHasBeenSet = true;
143 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
144 }
145 template <typename ClientRequestTokenT = Aws::String>
147 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
148 return *this;
149 }
151
153
163 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
164 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
165 template <typename VolumeKmsKeyIdT = Aws::String>
166 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
167 m_volumeKmsKeyIdHasBeenSet = true;
168 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
169 }
170 template <typename VolumeKmsKeyIdT = Aws::String>
172 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
173 return *this;
174 }
176
178
185 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
186 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
187 template <typename VpcConfigT = VpcConfig>
188 void SetVpcConfig(VpcConfigT&& value) {
189 m_vpcConfigHasBeenSet = true;
190 m_vpcConfig = std::forward<VpcConfigT>(value);
191 }
192 template <typename VpcConfigT = VpcConfig>
194 SetVpcConfig(std::forward<VpcConfigT>(value));
195 return *this;
196 }
198
200
206 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template <typename TagsT = Aws::Vector<Tag>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Vector<Tag>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsT = Tag>
220 m_tagsHasBeenSet = true;
221 m_tags.emplace_back(std::forward<TagsT>(value));
222 return *this;
223 }
225 private:
226 InputDataConfig m_inputDataConfig;
227
228 OutputDataConfig m_outputDataConfig;
229
230 Aws::String m_dataAccessRoleArn;
231
232 Aws::String m_jobName;
233
234 int m_numberOfTopics{0};
235
236 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
237
238 Aws::String m_volumeKmsKeyId;
239
240 VpcConfig m_vpcConfig;
241
242 Aws::Vector<Tag> m_tags;
243 bool m_inputDataConfigHasBeenSet = false;
244 bool m_outputDataConfigHasBeenSet = false;
245 bool m_dataAccessRoleArnHasBeenSet = false;
246 bool m_jobNameHasBeenSet = false;
247 bool m_numberOfTopicsHasBeenSet = false;
248 bool m_clientRequestTokenHasBeenSet = true;
249 bool m_volumeKmsKeyIdHasBeenSet = false;
250 bool m_vpcConfigHasBeenSet = false;
251 bool m_tagsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace Comprehend
256} // namespace Aws
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTopicsDetectionJobRequest & WithVpcConfig(VpcConfigT &&value)
StartTopicsDetectionJobRequest & WithJobName(JobNameT &&value)
StartTopicsDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartTopicsDetectionJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
AWS_COMPREHEND_API StartTopicsDetectionJobRequest()=default
StartTopicsDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartTopicsDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartTopicsDetectionJobRequest & WithTags(TagsT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
StartTopicsDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartTopicsDetectionJobRequest & AddTags(TagsT &&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