AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartTextTranslationJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/TranslateRequest.h>
11#include <aws/translate/Translate_EXPORTS.h>
12#include <aws/translate/model/InputDataConfig.h>
13#include <aws/translate/model/OutputDataConfig.h>
14#include <aws/translate/model/TranslationSettings.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Translate {
20namespace Model {
21
25 public:
26 AWS_TRANSLATE_API StartTextTranslationJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartTextTranslationJob"; }
33
34 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetJobName() const { return m_jobName; }
43 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
44 template <typename JobNameT = Aws::String>
45 void SetJobName(JobNameT&& value) {
46 m_jobNameHasBeenSet = true;
47 m_jobName = std::forward<JobNameT>(value);
48 }
49 template <typename JobNameT = Aws::String>
51 SetJobName(std::forward<JobNameT>(value));
52 return *this;
53 }
55
57
61 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
62 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
63 template <typename InputDataConfigT = InputDataConfig>
64 void SetInputDataConfig(InputDataConfigT&& value) {
65 m_inputDataConfigHasBeenSet = true;
66 m_inputDataConfig = std::forward<InputDataConfigT>(value);
67 }
68 template <typename InputDataConfigT = InputDataConfig>
70 SetInputDataConfig(std::forward<InputDataConfigT>(value));
71 return *this;
72 }
74
76
79 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
80 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
81 template <typename OutputDataConfigT = OutputDataConfig>
82 void SetOutputDataConfig(OutputDataConfigT&& value) {
83 m_outputDataConfigHasBeenSet = true;
84 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
85 }
86 template <typename OutputDataConfigT = OutputDataConfig>
88 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
102 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
103 template <typename DataAccessRoleArnT = Aws::String>
104 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
105 m_dataAccessRoleArnHasBeenSet = true;
106 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
107 }
108 template <typename DataAccessRoleArnT = Aws::String>
110 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
111 return *this;
112 }
114
116
125 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
126 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
127 template <typename SourceLanguageCodeT = Aws::String>
128 void SetSourceLanguageCode(SourceLanguageCodeT&& value) {
129 m_sourceLanguageCodeHasBeenSet = true;
130 m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value);
131 }
132 template <typename SourceLanguageCodeT = Aws::String>
134 SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value));
135 return *this;
136 }
138
140
147 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
148 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
149 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
150 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) {
151 m_targetLanguageCodesHasBeenSet = true;
152 m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value);
153 }
154 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
156 SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value));
157 return *this;
158 }
159 template <typename TargetLanguageCodesT = Aws::String>
161 m_targetLanguageCodesHasBeenSet = true;
162 m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value));
163 return *this;
164 }
166
168
180 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const { return m_terminologyNames; }
181 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
182 template <typename TerminologyNamesT = Aws::Vector<Aws::String>>
183 void SetTerminologyNames(TerminologyNamesT&& value) {
184 m_terminologyNamesHasBeenSet = true;
185 m_terminologyNames = std::forward<TerminologyNamesT>(value);
186 }
187 template <typename TerminologyNamesT = Aws::Vector<Aws::String>>
189 SetTerminologyNames(std::forward<TerminologyNamesT>(value));
190 return *this;
191 }
192 template <typename TerminologyNamesT = Aws::String>
194 m_terminologyNamesHasBeenSet = true;
195 m_terminologyNames.emplace_back(std::forward<TerminologyNamesT>(value));
196 return *this;
197 }
199
201
216 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const { return m_parallelDataNames; }
217 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
218 template <typename ParallelDataNamesT = Aws::Vector<Aws::String>>
219 void SetParallelDataNames(ParallelDataNamesT&& value) {
220 m_parallelDataNamesHasBeenSet = true;
221 m_parallelDataNames = std::forward<ParallelDataNamesT>(value);
222 }
223 template <typename ParallelDataNamesT = Aws::Vector<Aws::String>>
225 SetParallelDataNames(std::forward<ParallelDataNamesT>(value));
226 return *this;
227 }
228 template <typename ParallelDataNamesT = Aws::String>
230 m_parallelDataNamesHasBeenSet = true;
231 m_parallelDataNames.emplace_back(std::forward<ParallelDataNamesT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetClientToken() const { return m_clientToken; }
242 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
243 template <typename ClientTokenT = Aws::String>
244 void SetClientToken(ClientTokenT&& value) {
245 m_clientTokenHasBeenSet = true;
246 m_clientToken = std::forward<ClientTokenT>(value);
247 }
248 template <typename ClientTokenT = Aws::String>
250 SetClientToken(std::forward<ClientTokenT>(value));
251 return *this;
252 }
254
256
263 inline const TranslationSettings& GetSettings() const { return m_settings; }
264 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
265 template <typename SettingsT = TranslationSettings>
266 void SetSettings(SettingsT&& value) {
267 m_settingsHasBeenSet = true;
268 m_settings = std::forward<SettingsT>(value);
269 }
270 template <typename SettingsT = TranslationSettings>
272 SetSettings(std::forward<SettingsT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_jobName;
278
279 InputDataConfig m_inputDataConfig;
280
281 OutputDataConfig m_outputDataConfig;
282
283 Aws::String m_dataAccessRoleArn;
284
285 Aws::String m_sourceLanguageCode;
286
287 Aws::Vector<Aws::String> m_targetLanguageCodes;
288
289 Aws::Vector<Aws::String> m_terminologyNames;
290
291 Aws::Vector<Aws::String> m_parallelDataNames;
292
294
295 TranslationSettings m_settings;
296 bool m_jobNameHasBeenSet = false;
297 bool m_inputDataConfigHasBeenSet = false;
298 bool m_outputDataConfigHasBeenSet = false;
299 bool m_dataAccessRoleArnHasBeenSet = false;
300 bool m_sourceLanguageCodeHasBeenSet = false;
301 bool m_targetLanguageCodesHasBeenSet = false;
302 bool m_terminologyNamesHasBeenSet = false;
303 bool m_parallelDataNamesHasBeenSet = false;
304 bool m_clientTokenHasBeenSet = true;
305 bool m_settingsHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace Translate
310} // namespace Aws
StartTextTranslationJobRequest & AddTargetLanguageCodes(TargetLanguageCodesT &&value)
StartTextTranslationJobRequest & AddParallelDataNames(ParallelDataNamesT &&value)
StartTextTranslationJobRequest & WithParallelDataNames(ParallelDataNamesT &&value)
StartTextTranslationJobRequest & WithSettings(SettingsT &&value)
StartTextTranslationJobRequest & WithSourceLanguageCode(SourceLanguageCodeT &&value)
StartTextTranslationJobRequest & WithTerminologyNames(TerminologyNamesT &&value)
StartTextTranslationJobRequest & WithJobName(JobNameT &&value)
const Aws::Vector< Aws::String > & GetParallelDataNames() const
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
StartTextTranslationJobRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
StartTextTranslationJobRequest & WithOutputDataConfig(OutputDataConfigT &&value)
AWS_TRANSLATE_API Aws::String SerializePayload() const override
StartTextTranslationJobRequest & WithClientToken(ClientTokenT &&value)
StartTextTranslationJobRequest & WithInputDataConfig(InputDataConfigT &&value)
AWS_TRANSLATE_API StartTextTranslationJobRequest()=default
StartTextTranslationJobRequest & WithTargetLanguageCodes(TargetLanguageCodesT &&value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTextTranslationJobRequest & AddTerminologyNames(TerminologyNamesT &&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