AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TextTranslationJobProperties.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/translate/model/JobStatus.h>
10#include <aws/translate/model/JobDetails.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/translate/model/InputDataConfig.h>
14#include <aws/translate/model/OutputDataConfig.h>
15#include <aws/translate/model/TranslationSettings.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Translate
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_TRANSLATE_API TextTranslationJobProperties();
44 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetJobId() const{ return m_jobId; }
52 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
54 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
55 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
56 inline TextTranslationJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
57 inline TextTranslationJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
58 inline TextTranslationJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;}
60
62
65 inline const Aws::String& GetJobName() const{ return m_jobName; }
66 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
67 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
68 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
69 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
70 inline TextTranslationJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
71 inline TextTranslationJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
72 inline TextTranslationJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;}
74
76
79 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
80 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
81 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
82 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
83 inline TextTranslationJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
84 inline TextTranslationJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
86
88
92 inline const JobDetails& GetJobDetails() const{ return m_jobDetails; }
93 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
94 inline void SetJobDetails(const JobDetails& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = value; }
95 inline void SetJobDetails(JobDetails&& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = std::move(value); }
96 inline TextTranslationJobProperties& WithJobDetails(const JobDetails& value) { SetJobDetails(value); return *this;}
97 inline TextTranslationJobProperties& WithJobDetails(JobDetails&& value) { SetJobDetails(std::move(value)); return *this;}
99
101
105 inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; }
106 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
107 inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; }
108 inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); }
109 inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); }
112 inline TextTranslationJobProperties& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;}
114
116
120 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const{ return m_targetLanguageCodes; }
121 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
122 inline void SetTargetLanguageCodes(const Aws::Vector<Aws::String>& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = value; }
123 inline void SetTargetLanguageCodes(Aws::Vector<Aws::String>&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::move(value); }
126 inline TextTranslationJobProperties& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
127 inline TextTranslationJobProperties& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; }
128 inline TextTranslationJobProperties& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; }
130
132
137 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const{ return m_terminologyNames; }
138 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
139 inline void SetTerminologyNames(const Aws::Vector<Aws::String>& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; }
140 inline void SetTerminologyNames(Aws::Vector<Aws::String>&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); }
143 inline TextTranslationJobProperties& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
144 inline TextTranslationJobProperties& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; }
145 inline TextTranslationJobProperties& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; }
147
149
153 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const{ return m_parallelDataNames; }
154 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
155 inline void SetParallelDataNames(const Aws::Vector<Aws::String>& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = value; }
156 inline void SetParallelDataNames(Aws::Vector<Aws::String>&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = std::move(value); }
159 inline TextTranslationJobProperties& AddParallelDataNames(const Aws::String& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; }
160 inline TextTranslationJobProperties& AddParallelDataNames(Aws::String&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(std::move(value)); return *this; }
161 inline TextTranslationJobProperties& AddParallelDataNames(const char* value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; }
163
165
169 inline const Aws::String& GetMessage() const{ return m_message; }
170 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
171 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
172 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
173 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
174 inline TextTranslationJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
175 inline TextTranslationJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
176 inline TextTranslationJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
178
180
183 inline const Aws::Utils::DateTime& GetSubmittedTime() const{ return m_submittedTime; }
184 inline bool SubmittedTimeHasBeenSet() const { return m_submittedTimeHasBeenSet; }
185 inline void SetSubmittedTime(const Aws::Utils::DateTime& value) { m_submittedTimeHasBeenSet = true; m_submittedTime = value; }
186 inline void SetSubmittedTime(Aws::Utils::DateTime&& value) { m_submittedTimeHasBeenSet = true; m_submittedTime = std::move(value); }
188 inline TextTranslationJobProperties& WithSubmittedTime(Aws::Utils::DateTime&& value) { SetSubmittedTime(std::move(value)); return *this;}
190
192
195 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
196 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
197 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
198 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
199 inline TextTranslationJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
200 inline TextTranslationJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
202
204
208 inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
209 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
210 inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
211 inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
213 inline TextTranslationJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
215
217
221 inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
222 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
223 inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
224 inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
228
230
234 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
235 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
236 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
237 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
238 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
240 inline TextTranslationJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
241 inline TextTranslationJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
243
245
248 inline const TranslationSettings& GetSettings() const{ return m_settings; }
249 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
250 inline void SetSettings(const TranslationSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
251 inline void SetSettings(TranslationSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
252 inline TextTranslationJobProperties& WithSettings(const TranslationSettings& value) { SetSettings(value); return *this;}
253 inline TextTranslationJobProperties& WithSettings(TranslationSettings&& value) { SetSettings(std::move(value)); return *this;}
255 private:
256
257 Aws::String m_jobId;
258 bool m_jobIdHasBeenSet = false;
259
260 Aws::String m_jobName;
261 bool m_jobNameHasBeenSet = false;
262
263 JobStatus m_jobStatus;
264 bool m_jobStatusHasBeenSet = false;
265
266 JobDetails m_jobDetails;
267 bool m_jobDetailsHasBeenSet = false;
268
269 Aws::String m_sourceLanguageCode;
270 bool m_sourceLanguageCodeHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_targetLanguageCodes;
273 bool m_targetLanguageCodesHasBeenSet = false;
274
275 Aws::Vector<Aws::String> m_terminologyNames;
276 bool m_terminologyNamesHasBeenSet = false;
277
278 Aws::Vector<Aws::String> m_parallelDataNames;
279 bool m_parallelDataNamesHasBeenSet = false;
280
281 Aws::String m_message;
282 bool m_messageHasBeenSet = false;
283
284 Aws::Utils::DateTime m_submittedTime;
285 bool m_submittedTimeHasBeenSet = false;
286
287 Aws::Utils::DateTime m_endTime;
288 bool m_endTimeHasBeenSet = false;
289
290 InputDataConfig m_inputDataConfig;
291 bool m_inputDataConfigHasBeenSet = false;
292
293 OutputDataConfig m_outputDataConfig;
294 bool m_outputDataConfigHasBeenSet = false;
295
296 Aws::String m_dataAccessRoleArn;
297 bool m_dataAccessRoleArnHasBeenSet = false;
298
299 TranslationSettings m_settings;
300 bool m_settingsHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace Translate
305} // namespace Aws
TextTranslationJobProperties & WithTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
void SetTargetLanguageCodes(const Aws::Vector< Aws::String > &value)
TextTranslationJobProperties & WithTargetLanguageCodes(Aws::Vector< Aws::String > &&value)
TextTranslationJobProperties & WithSourceLanguageCode(const Aws::String &value)
TextTranslationJobProperties & WithJobId(Aws::String &&value)
TextTranslationJobProperties & AddTerminologyNames(const char *value)
TextTranslationJobProperties & WithParallelDataNames(Aws::Vector< Aws::String > &&value)
TextTranslationJobProperties & WithJobId(const char *value)
TextTranslationJobProperties & WithJobStatus(const JobStatus &value)
TextTranslationJobProperties & WithJobName(Aws::String &&value)
TextTranslationJobProperties & WithMessage(const char *value)
TextTranslationJobProperties & WithEndTime(const Aws::Utils::DateTime &value)
TextTranslationJobProperties & WithOutputDataConfig(const OutputDataConfig &value)
TextTranslationJobProperties & WithSettings(const TranslationSettings &value)
TextTranslationJobProperties & WithDataAccessRoleArn(const Aws::String &value)
TextTranslationJobProperties & WithJobDetails(const JobDetails &value)
TextTranslationJobProperties & WithParallelDataNames(const Aws::Vector< Aws::String > &value)
TextTranslationJobProperties & WithTerminologyNames(Aws::Vector< Aws::String > &&value)
TextTranslationJobProperties & WithSubmittedTime(const Aws::Utils::DateTime &value)
TextTranslationJobProperties & WithSourceLanguageCode(const char *value)
TextTranslationJobProperties & WithInputDataConfig(InputDataConfig &&value)
TextTranslationJobProperties & WithDataAccessRoleArn(const char *value)
TextTranslationJobProperties & WithDataAccessRoleArn(Aws::String &&value)
AWS_TRANSLATE_API TextTranslationJobProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
TextTranslationJobProperties & WithEndTime(Aws::Utils::DateTime &&value)
TextTranslationJobProperties & AddParallelDataNames(const char *value)
TextTranslationJobProperties & WithJobName(const Aws::String &value)
TextTranslationJobProperties & WithJobId(const Aws::String &value)
TextTranslationJobProperties & WithOutputDataConfig(OutputDataConfig &&value)
TextTranslationJobProperties & WithSettings(TranslationSettings &&value)
TextTranslationJobProperties & AddTerminologyNames(Aws::String &&value)
TextTranslationJobProperties & WithSourceLanguageCode(Aws::String &&value)
void SetParallelDataNames(const Aws::Vector< Aws::String > &value)
void SetTerminologyNames(Aws::Vector< Aws::String > &&value)
AWS_TRANSLATE_API TextTranslationJobProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
TextTranslationJobProperties & AddTerminologyNames(const Aws::String &value)
const Aws::Vector< Aws::String > & GetTerminologyNames() const
TextTranslationJobProperties & AddParallelDataNames(const Aws::String &value)
const Aws::Vector< Aws::String > & GetParallelDataNames() const
void SetParallelDataNames(Aws::Vector< Aws::String > &&value)
TextTranslationJobProperties & WithJobStatus(JobStatus &&value)
TextTranslationJobProperties & WithJobDetails(JobDetails &&value)
TextTranslationJobProperties & AddParallelDataNames(Aws::String &&value)
void SetTerminologyNames(const Aws::Vector< Aws::String > &value)
TextTranslationJobProperties & WithTerminologyNames(const Aws::Vector< Aws::String > &value)
TextTranslationJobProperties & AddTargetLanguageCodes(const char *value)
TextTranslationJobProperties & WithSubmittedTime(Aws::Utils::DateTime &&value)
TextTranslationJobProperties & AddTargetLanguageCodes(Aws::String &&value)
TextTranslationJobProperties & WithInputDataConfig(const InputDataConfig &value)
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
TextTranslationJobProperties & AddTargetLanguageCodes(const Aws::String &value)
TextTranslationJobProperties & WithMessage(Aws::String &&value)
TextTranslationJobProperties & WithJobName(const char *value)
TextTranslationJobProperties & WithMessage(const Aws::String &value)
void SetTargetLanguageCodes(Aws::Vector< Aws::String > &&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