AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename JobIdT = Aws::String>
54 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
55 template<typename JobIdT = Aws::String>
56 TextTranslationJobProperties& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
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) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
67 template<typename JobNameT = Aws::String>
68 TextTranslationJobProperties& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
70
72
75 inline JobStatus GetJobStatus() const { return m_jobStatus; }
76 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
77 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
78 inline TextTranslationJobProperties& WithJobStatus(JobStatus value) { SetJobStatus(value); return *this;}
80
82
86 inline const JobDetails& GetJobDetails() const { return m_jobDetails; }
87 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
88 template<typename JobDetailsT = JobDetails>
89 void SetJobDetails(JobDetailsT&& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = std::forward<JobDetailsT>(value); }
90 template<typename JobDetailsT = JobDetails>
91 TextTranslationJobProperties& WithJobDetails(JobDetailsT&& value) { SetJobDetails(std::forward<JobDetailsT>(value)); return *this;}
93
95
99 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
100 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
101 template<typename SourceLanguageCodeT = Aws::String>
102 void SetSourceLanguageCode(SourceLanguageCodeT&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value); }
103 template<typename SourceLanguageCodeT = Aws::String>
104 TextTranslationJobProperties& WithSourceLanguageCode(SourceLanguageCodeT&& value) { SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value)); return *this;}
106
108
112 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
113 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
114 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
115 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value); }
116 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
117 TextTranslationJobProperties& WithTargetLanguageCodes(TargetLanguageCodesT&& value) { SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value)); return *this;}
118 template<typename TargetLanguageCodesT = Aws::String>
119 TextTranslationJobProperties& AddTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value)); return *this; }
121
123
128 inline const Aws::Vector<Aws::String>& GetTerminologyNames() const { return m_terminologyNames; }
129 inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; }
130 template<typename TerminologyNamesT = Aws::Vector<Aws::String>>
131 void SetTerminologyNames(TerminologyNamesT&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::forward<TerminologyNamesT>(value); }
132 template<typename TerminologyNamesT = Aws::Vector<Aws::String>>
133 TextTranslationJobProperties& WithTerminologyNames(TerminologyNamesT&& value) { SetTerminologyNames(std::forward<TerminologyNamesT>(value)); return *this;}
134 template<typename TerminologyNamesT = Aws::String>
135 TextTranslationJobProperties& AddTerminologyNames(TerminologyNamesT&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.emplace_back(std::forward<TerminologyNamesT>(value)); return *this; }
137
139
143 inline const Aws::Vector<Aws::String>& GetParallelDataNames() const { return m_parallelDataNames; }
144 inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; }
145 template<typename ParallelDataNamesT = Aws::Vector<Aws::String>>
146 void SetParallelDataNames(ParallelDataNamesT&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames = std::forward<ParallelDataNamesT>(value); }
147 template<typename ParallelDataNamesT = Aws::Vector<Aws::String>>
148 TextTranslationJobProperties& WithParallelDataNames(ParallelDataNamesT&& value) { SetParallelDataNames(std::forward<ParallelDataNamesT>(value)); return *this;}
149 template<typename ParallelDataNamesT = Aws::String>
150 TextTranslationJobProperties& AddParallelDataNames(ParallelDataNamesT&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.emplace_back(std::forward<ParallelDataNamesT>(value)); return *this; }
152
154
158 inline const Aws::String& GetMessage() const { return m_message; }
159 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
160 template<typename MessageT = Aws::String>
161 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
162 template<typename MessageT = Aws::String>
163 TextTranslationJobProperties& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetSubmittedTime() const { return m_submittedTime; }
171 inline bool SubmittedTimeHasBeenSet() const { return m_submittedTimeHasBeenSet; }
172 template<typename SubmittedTimeT = Aws::Utils::DateTime>
173 void SetSubmittedTime(SubmittedTimeT&& value) { m_submittedTimeHasBeenSet = true; m_submittedTime = std::forward<SubmittedTimeT>(value); }
174 template<typename SubmittedTimeT = Aws::Utils::DateTime>
175 TextTranslationJobProperties& WithSubmittedTime(SubmittedTimeT&& value) { SetSubmittedTime(std::forward<SubmittedTimeT>(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
183 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
184 template<typename EndTimeT = Aws::Utils::DateTime>
185 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
186 template<typename EndTimeT = Aws::Utils::DateTime>
187 TextTranslationJobProperties& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
189
191
195 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
196 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
197 template<typename InputDataConfigT = InputDataConfig>
198 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
199 template<typename InputDataConfigT = InputDataConfig>
200 TextTranslationJobProperties& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
202
204
208 inline const OutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
209 inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
210 template<typename OutputDataConfigT = OutputDataConfig>
211 void SetOutputDataConfig(OutputDataConfigT&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::forward<OutputDataConfigT>(value); }
212 template<typename OutputDataConfigT = OutputDataConfig>
213 TextTranslationJobProperties& WithOutputDataConfig(OutputDataConfigT&& value) { SetOutputDataConfig(std::forward<OutputDataConfigT>(value)); return *this;}
215
217
221 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
222 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
223 template<typename DataAccessRoleArnT = Aws::String>
224 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
225 template<typename DataAccessRoleArnT = Aws::String>
226 TextTranslationJobProperties& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
228
230
233 inline const TranslationSettings& GetSettings() const { return m_settings; }
234 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
235 template<typename SettingsT = TranslationSettings>
236 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
237 template<typename SettingsT = TranslationSettings>
238 TextTranslationJobProperties& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
240 private:
241
242 Aws::String m_jobId;
243 bool m_jobIdHasBeenSet = false;
244
245 Aws::String m_jobName;
246 bool m_jobNameHasBeenSet = false;
247
248 JobStatus m_jobStatus{JobStatus::NOT_SET};
249 bool m_jobStatusHasBeenSet = false;
250
251 JobDetails m_jobDetails;
252 bool m_jobDetailsHasBeenSet = false;
253
254 Aws::String m_sourceLanguageCode;
255 bool m_sourceLanguageCodeHasBeenSet = false;
256
257 Aws::Vector<Aws::String> m_targetLanguageCodes;
258 bool m_targetLanguageCodesHasBeenSet = false;
259
260 Aws::Vector<Aws::String> m_terminologyNames;
261 bool m_terminologyNamesHasBeenSet = false;
262
263 Aws::Vector<Aws::String> m_parallelDataNames;
264 bool m_parallelDataNamesHasBeenSet = false;
265
266 Aws::String m_message;
267 bool m_messageHasBeenSet = false;
268
269 Aws::Utils::DateTime m_submittedTime{};
270 bool m_submittedTimeHasBeenSet = false;
271
272 Aws::Utils::DateTime m_endTime{};
273 bool m_endTimeHasBeenSet = false;
274
275 InputDataConfig m_inputDataConfig;
276 bool m_inputDataConfigHasBeenSet = false;
277
278 OutputDataConfig m_outputDataConfig;
279 bool m_outputDataConfigHasBeenSet = false;
280
281 Aws::String m_dataAccessRoleArn;
282 bool m_dataAccessRoleArnHasBeenSet = false;
283
284 TranslationSettings m_settings;
285 bool m_settingsHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace Translate
290} // 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