AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
StartSentimentDetectionJobRequest.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 StartSentimentDetectionJobRequest() = 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 "StartSentimentDetectionJob"; }
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 LanguageCode GetLanguageCode() const { return m_languageCode; }
122 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
123 inline void SetLanguageCode(LanguageCode value) {
124 m_languageCodeHasBeenSet = true;
125 m_languageCode = value;
126 }
128 SetLanguageCode(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 LanguageCode m_languageCode{LanguageCode::NOT_SET};
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_languageCodeHasBeenSet = 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
StartSentimentDetectionJobRequest & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
StartSentimentDetectionJobRequest & WithJobName(JobNameT &&value)
StartSentimentDetectionJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
StartSentimentDetectionJobRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartSentimentDetectionJobRequest & WithInputDataConfig(InputDataConfigT &&value)
StartSentimentDetectionJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartSentimentDetectionJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
StartSentimentDetectionJobRequest & WithVpcConfig(VpcConfigT &&value)
AWS_COMPREHEND_API StartSentimentDetectionJobRequest()=default
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