AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TextTranslationJobProperties.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/Translate_EXPORTS.h>
11#include <aws/translate/model/InputDataConfig.h>
12#include <aws/translate/model/JobDetails.h>
13#include <aws/translate/model/JobStatus.h>
14#include <aws/translate/model/OutputDataConfig.h>
15#include <aws/translate/model/TranslationSettings.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Translate {
27namespace Model {
28
35 public:
36 AWS_TRANSLATE_API TextTranslationJobProperties() = default;
39 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 template <typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) {
49 m_jobIdHasBeenSet = true;
50 m_jobId = std::forward<JobIdT>(value);
51 }
52 template <typename JobIdT = Aws::String>
54 SetJobId(std::forward<JobIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetJobName() const { return m_jobName; }
64 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
65 template <typename JobNameT = Aws::String>
66 void SetJobName(JobNameT&& value) {
67 m_jobNameHasBeenSet = true;
68 m_jobName = std::forward<JobNameT>(value);
69 }
70 template <typename JobNameT = Aws::String>
72 SetJobName(std::forward<JobNameT>(value));
73 return *this;
74 }
76
78
81 inline JobStatus GetJobStatus() const { return m_jobStatus; }
82 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
83 inline void SetJobStatus(JobStatus value) {
84 m_jobStatusHasBeenSet = true;
85 m_jobStatus = value;
86 }
88 SetJobStatus(value);
89 return *this;
90 }
92
94
98 inline const JobDetails& GetJobDetails() const { return m_jobDetails; }
99 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
100 template <typename JobDetailsT = JobDetails>
101 void SetJobDetails(JobDetailsT&& value) {
102 m_jobDetailsHasBeenSet = true;
103 m_jobDetails = std::forward<JobDetailsT>(value);
104 }
105 template <typename JobDetailsT = JobDetails>
107 SetJobDetails(std::forward<JobDetailsT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
118 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
119 template <typename SourceLanguageCodeT = Aws::String>
120 void SetSourceLanguageCode(SourceLanguageCodeT&& value) {
121 m_sourceLanguageCodeHasBeenSet = true;
122 m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value);
123 }
124 template <typename SourceLanguageCodeT = Aws::String>
126 SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
137 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
138 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
139 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) {
140 m_targetLanguageCodesHasBeenSet = true;
141 m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value);
142 }
143 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
145 SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value));
146 return *this;
147 }
148 template <typename TargetLanguageCodesT = Aws::String>
150 m_targetLanguageCodesHasBeenSet = true;
151 m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const { return m_terminologyNames; }
163 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
164 template <typename TerminologyNamesT = Aws::Vector<Aws::String>>
165 void SetTerminologyNames(TerminologyNamesT&& value) {
166 m_terminologyNamesHasBeenSet = true;
167 m_terminologyNames = std::forward<TerminologyNamesT>(value);
168 }
169 template <typename TerminologyNamesT = Aws::Vector<Aws::String>>
171 SetTerminologyNames(std::forward<TerminologyNamesT>(value));
172 return *this;
173 }
174 template <typename TerminologyNamesT = Aws::String>
176 m_terminologyNamesHasBeenSet = true;
177 m_terminologyNames.emplace_back(std::forward<TerminologyNamesT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const { return m_parallelDataNames; }
188 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
189 template <typename ParallelDataNamesT = Aws::Vector<Aws::String>>
190 void SetParallelDataNames(ParallelDataNamesT&& value) {
191 m_parallelDataNamesHasBeenSet = true;
192 m_parallelDataNames = std::forward<ParallelDataNamesT>(value);
193 }
194 template <typename ParallelDataNamesT = Aws::Vector<Aws::String>>
196 SetParallelDataNames(std::forward<ParallelDataNamesT>(value));
197 return *this;
198 }
199 template <typename ParallelDataNamesT = Aws::String>
201 m_parallelDataNamesHasBeenSet = true;
202 m_parallelDataNames.emplace_back(std::forward<ParallelDataNamesT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::String& GetMessage() const { return m_message; }
213 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
214 template <typename MessageT = Aws::String>
215 void SetMessage(MessageT&& value) {
216 m_messageHasBeenSet = true;
217 m_message = std::forward<MessageT>(value);
218 }
219 template <typename MessageT = Aws::String>
221 SetMessage(std::forward<MessageT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Utils::DateTime& GetSubmittedTime() const { return m_submittedTime; }
231 inline bool SubmittedTimeHasBeenSet() const { return m_submittedTimeHasBeenSet; }
232 template <typename SubmittedTimeT = Aws::Utils::DateTime>
233 void SetSubmittedTime(SubmittedTimeT&& value) {
234 m_submittedTimeHasBeenSet = true;
235 m_submittedTime = std::forward<SubmittedTimeT>(value);
236 }
237 template <typename SubmittedTimeT = Aws::Utils::DateTime>
239 SetSubmittedTime(std::forward<SubmittedTimeT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
249 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
250 template <typename EndTimeT = Aws::Utils::DateTime>
251 void SetEndTime(EndTimeT&& value) {
252 m_endTimeHasBeenSet = true;
253 m_endTime = std::forward<EndTimeT>(value);
254 }
255 template <typename EndTimeT = Aws::Utils::DateTime>
257 SetEndTime(std::forward<EndTimeT>(value));
258 return *this;
259 }
261
263
267 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
268 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
269 template <typename InputDataConfigT = InputDataConfig>
270 void SetInputDataConfig(InputDataConfigT&& value) {
271 m_inputDataConfigHasBeenSet = true;
272 m_inputDataConfig = std::forward<InputDataConfigT>(value);
273 }
274 template <typename InputDataConfigT = InputDataConfig>
276 SetInputDataConfig(std::forward<InputDataConfigT>(value));
277 return *this;
278 }
280
282
286 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
287 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
288 template <typename OutputDataConfigT = OutputDataConfig>
289 void SetOutputDataConfig(OutputDataConfigT&& value) {
290 m_outputDataConfigHasBeenSet = true;
291 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
292 }
293 template <typename OutputDataConfigT = OutputDataConfig>
295 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
306 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
307 template <typename DataAccessRoleArnT = Aws::String>
308 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
309 m_dataAccessRoleArnHasBeenSet = true;
310 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
311 }
312 template <typename DataAccessRoleArnT = Aws::String>
314 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
315 return *this;
316 }
318
320
323 inline const TranslationSettings& GetSettings() const { return m_settings; }
324 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
325 template <typename SettingsT = TranslationSettings>
326 void SetSettings(SettingsT&& value) {
327 m_settingsHasBeenSet = true;
328 m_settings = std::forward<SettingsT>(value);
329 }
330 template <typename SettingsT = TranslationSettings>
332 SetSettings(std::forward<SettingsT>(value));
333 return *this;
334 }
336 private:
337 Aws::String m_jobId;
338
339 Aws::String m_jobName;
340
341 JobStatus m_jobStatus{JobStatus::NOT_SET};
342
343 JobDetails m_jobDetails;
344
345 Aws::String m_sourceLanguageCode;
346
347 Aws::Vector<Aws::String> m_targetLanguageCodes;
348
349 Aws::Vector<Aws::String> m_terminologyNames;
350
351 Aws::Vector<Aws::String> m_parallelDataNames;
352
353 Aws::String m_message;
354
355 Aws::Utils::DateTime m_submittedTime{};
356
357 Aws::Utils::DateTime m_endTime{};
358
359 InputDataConfig m_inputDataConfig;
360
361 OutputDataConfig m_outputDataConfig;
362
363 Aws::String m_dataAccessRoleArn;
364
365 TranslationSettings m_settings;
366 bool m_jobIdHasBeenSet = false;
367 bool m_jobNameHasBeenSet = false;
368 bool m_jobStatusHasBeenSet = false;
369 bool m_jobDetailsHasBeenSet = false;
370 bool m_sourceLanguageCodeHasBeenSet = false;
371 bool m_targetLanguageCodesHasBeenSet = false;
372 bool m_terminologyNamesHasBeenSet = false;
373 bool m_parallelDataNamesHasBeenSet = false;
374 bool m_messageHasBeenSet = false;
375 bool m_submittedTimeHasBeenSet = false;
376 bool m_endTimeHasBeenSet = false;
377 bool m_inputDataConfigHasBeenSet = false;
378 bool m_outputDataConfigHasBeenSet = false;
379 bool m_dataAccessRoleArnHasBeenSet = false;
380 bool m_settingsHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace Translate
385} // namespace Aws
TextTranslationJobProperties & WithJobId(JobIdT &&value)
TextTranslationJobProperties & WithJobDetails(JobDetailsT &&value)
TextTranslationJobProperties & WithParallelDataNames(ParallelDataNamesT &&value)
TextTranslationJobProperties & WithSubmittedTime(SubmittedTimeT &&value)
TextTranslationJobProperties & WithOutputDataConfig(OutputDataConfigT &&value)
TextTranslationJobProperties & WithSourceLanguageCode(SourceLanguageCodeT &&value)
TextTranslationJobProperties & WithJobName(JobNameT &&value)
TextTranslationJobProperties & AddTargetLanguageCodes(TargetLanguageCodesT &&value)
AWS_TRANSLATE_API TextTranslationJobProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
TextTranslationJobProperties & WithSettings(SettingsT &&value)
TextTranslationJobProperties & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
AWS_TRANSLATE_API TextTranslationJobProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
TextTranslationJobProperties & WithEndTime(EndTimeT &&value)
const Aws::Vector< Aws::String > & GetTerminologyNames() const
TextTranslationJobProperties & AddTerminologyNames(TerminologyNamesT &&value)
const Aws::Vector< Aws::String > & GetParallelDataNames() const
TextTranslationJobProperties & WithTargetLanguageCodes(TargetLanguageCodesT &&value)
TextTranslationJobProperties & WithJobStatus(JobStatus value)
AWS_TRANSLATE_API TextTranslationJobProperties()=default
TextTranslationJobProperties & WithMessage(MessageT &&value)
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
TextTranslationJobProperties & WithInputDataConfig(InputDataConfigT &&value)
TextTranslationJobProperties & AddParallelDataNames(ParallelDataNamesT &&value)
TextTranslationJobProperties & WithTerminologyNames(TerminologyNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue