AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ParallelDataProperties.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/EncryptionKey.h>
12#include <aws/translate/model/ParallelDataConfig.h>
13#include <aws/translate/model/ParallelDataStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Translate {
25namespace Model {
26
33 public:
34 AWS_TRANSLATE_API ParallelDataProperties() = default;
37 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 ParallelDataProperties& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
98 inline ParallelDataStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(ParallelDataStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
115 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
116 template <typename SourceLanguageCodeT = Aws::String>
117 void SetSourceLanguageCode(SourceLanguageCodeT&& value) {
118 m_sourceLanguageCodeHasBeenSet = true;
119 m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value);
120 }
121 template <typename SourceLanguageCodeT = Aws::String>
122 ParallelDataProperties& WithSourceLanguageCode(SourceLanguageCodeT&& value) {
123 SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
134 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
135 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
136 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) {
137 m_targetLanguageCodesHasBeenSet = true;
138 m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value);
139 }
140 template <typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
141 ParallelDataProperties& WithTargetLanguageCodes(TargetLanguageCodesT&& value) {
142 SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value));
143 return *this;
144 }
145 template <typename TargetLanguageCodesT = Aws::String>
146 ParallelDataProperties& AddTargetLanguageCodes(TargetLanguageCodesT&& value) {
147 m_targetLanguageCodesHasBeenSet = true;
148 m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value));
149 return *this;
150 }
152
154
157 inline const ParallelDataConfig& GetParallelDataConfig() const { return m_parallelDataConfig; }
158 inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; }
159 template <typename ParallelDataConfigT = ParallelDataConfig>
160 void SetParallelDataConfig(ParallelDataConfigT&& value) {
161 m_parallelDataConfigHasBeenSet = true;
162 m_parallelDataConfig = std::forward<ParallelDataConfigT>(value);
163 }
164 template <typename ParallelDataConfigT = ParallelDataConfig>
165 ParallelDataProperties& WithParallelDataConfig(ParallelDataConfigT&& value) {
166 SetParallelDataConfig(std::forward<ParallelDataConfigT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetMessage() const { return m_message; }
177 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
178 template <typename MessageT = Aws::String>
179 void SetMessage(MessageT&& value) {
180 m_messageHasBeenSet = true;
181 m_message = std::forward<MessageT>(value);
182 }
183 template <typename MessageT = Aws::String>
185 SetMessage(std::forward<MessageT>(value));
186 return *this;
187 }
189
191
198 inline long long GetImportedDataSize() const { return m_importedDataSize; }
199 inline bool ImportedDataSizeHasBeenSet() const { return m_importedDataSizeHasBeenSet; }
200 inline void SetImportedDataSize(long long value) {
201 m_importedDataSizeHasBeenSet = true;
202 m_importedDataSize = value;
203 }
205 SetImportedDataSize(value);
206 return *this;
207 }
209
211
215 inline long long GetImportedRecordCount() const { return m_importedRecordCount; }
216 inline bool ImportedRecordCountHasBeenSet() const { return m_importedRecordCountHasBeenSet; }
217 inline void SetImportedRecordCount(long long value) {
218 m_importedRecordCountHasBeenSet = true;
219 m_importedRecordCount = value;
220 }
223 return *this;
224 }
226
228
232 inline long long GetFailedRecordCount() const { return m_failedRecordCount; }
233 inline bool FailedRecordCountHasBeenSet() const { return m_failedRecordCountHasBeenSet; }
234 inline void SetFailedRecordCount(long long value) {
235 m_failedRecordCountHasBeenSet = true;
236 m_failedRecordCount = value;
237 }
240 return *this;
241 }
243
245
250 inline long long GetSkippedRecordCount() const { return m_skippedRecordCount; }
251 inline bool SkippedRecordCountHasBeenSet() const { return m_skippedRecordCountHasBeenSet; }
252 inline void SetSkippedRecordCount(long long value) {
253 m_skippedRecordCountHasBeenSet = true;
254 m_skippedRecordCount = value;
255 }
258 return *this;
259 }
261
263
264 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
265 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
266 template <typename EncryptionKeyT = EncryptionKey>
267 void SetEncryptionKey(EncryptionKeyT&& value) {
268 m_encryptionKeyHasBeenSet = true;
269 m_encryptionKey = std::forward<EncryptionKeyT>(value);
270 }
271 template <typename EncryptionKeyT = EncryptionKey>
272 ParallelDataProperties& WithEncryptionKey(EncryptionKeyT&& value) {
273 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
283 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
284 template <typename CreatedAtT = Aws::Utils::DateTime>
285 void SetCreatedAt(CreatedAtT&& value) {
286 m_createdAtHasBeenSet = true;
287 m_createdAt = std::forward<CreatedAtT>(value);
288 }
289 template <typename CreatedAtT = Aws::Utils::DateTime>
291 SetCreatedAt(std::forward<CreatedAtT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
301 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
302 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
303 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
304 m_lastUpdatedAtHasBeenSet = true;
305 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
306 }
307 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
308 ParallelDataProperties& WithLastUpdatedAt(LastUpdatedAtT&& value) {
309 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
310 return *this;
311 }
313
315
319 inline ParallelDataStatus GetLatestUpdateAttemptStatus() const { return m_latestUpdateAttemptStatus; }
320 inline bool LatestUpdateAttemptStatusHasBeenSet() const { return m_latestUpdateAttemptStatusHasBeenSet; }
322 m_latestUpdateAttemptStatusHasBeenSet = true;
323 m_latestUpdateAttemptStatus = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::Utils::DateTime& GetLatestUpdateAttemptAt() const { return m_latestUpdateAttemptAt; }
336 inline bool LatestUpdateAttemptAtHasBeenSet() const { return m_latestUpdateAttemptAtHasBeenSet; }
337 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
338 void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
339 m_latestUpdateAttemptAtHasBeenSet = true;
340 m_latestUpdateAttemptAt = std::forward<LatestUpdateAttemptAtT>(value);
341 }
342 template <typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
343 ParallelDataProperties& WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) {
344 SetLatestUpdateAttemptAt(std::forward<LatestUpdateAttemptAtT>(value));
345 return *this;
346 }
348 private:
349 Aws::String m_name;
350
351 Aws::String m_arn;
352
353 Aws::String m_description;
354
356
357 Aws::String m_sourceLanguageCode;
358
359 Aws::Vector<Aws::String> m_targetLanguageCodes;
360
361 ParallelDataConfig m_parallelDataConfig;
362
363 Aws::String m_message;
364
365 long long m_importedDataSize{0};
366
367 long long m_importedRecordCount{0};
368
369 long long m_failedRecordCount{0};
370
371 long long m_skippedRecordCount{0};
372
373 EncryptionKey m_encryptionKey;
374
375 Aws::Utils::DateTime m_createdAt{};
376
377 Aws::Utils::DateTime m_lastUpdatedAt{};
378
379 ParallelDataStatus m_latestUpdateAttemptStatus{ParallelDataStatus::NOT_SET};
380
381 Aws::Utils::DateTime m_latestUpdateAttemptAt{};
382 bool m_nameHasBeenSet = false;
383 bool m_arnHasBeenSet = false;
384 bool m_descriptionHasBeenSet = false;
385 bool m_statusHasBeenSet = false;
386 bool m_sourceLanguageCodeHasBeenSet = false;
387 bool m_targetLanguageCodesHasBeenSet = false;
388 bool m_parallelDataConfigHasBeenSet = false;
389 bool m_messageHasBeenSet = false;
390 bool m_importedDataSizeHasBeenSet = false;
391 bool m_importedRecordCountHasBeenSet = false;
392 bool m_failedRecordCountHasBeenSet = false;
393 bool m_skippedRecordCountHasBeenSet = false;
394 bool m_encryptionKeyHasBeenSet = false;
395 bool m_createdAtHasBeenSet = false;
396 bool m_lastUpdatedAtHasBeenSet = false;
397 bool m_latestUpdateAttemptStatusHasBeenSet = false;
398 bool m_latestUpdateAttemptAtHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace Translate
403} // namespace Aws
void SetSourceLanguageCode(SourceLanguageCodeT &&value)
void SetParallelDataConfig(ParallelDataConfigT &&value)
ParallelDataProperties & WithFailedRecordCount(long long value)
ParallelDataProperties & WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT &&value)
ParallelDataProperties & WithCreatedAt(CreatedAtT &&value)
ParallelDataProperties & WithParallelDataConfig(ParallelDataConfigT &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
ParallelDataProperties & WithEncryptionKey(EncryptionKeyT &&value)
ParallelDataProperties & WithDescription(DescriptionT &&value)
AWS_TRANSLATE_API ParallelDataProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLatestUpdateAttemptAt() const
ParallelDataProperties & WithStatus(ParallelDataStatus value)
ParallelDataProperties & WithMessage(MessageT &&value)
ParallelDataProperties & WithTargetLanguageCodes(TargetLanguageCodesT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT &&value)
ParallelDataProperties & WithLatestUpdateAttemptStatus(ParallelDataStatus value)
void SetTargetLanguageCodes(TargetLanguageCodesT &&value)
const ParallelDataConfig & GetParallelDataConfig() const
ParallelDataProperties & WithArn(ArnT &&value)
AWS_TRANSLATE_API ParallelDataProperties(Aws::Utils::Json::JsonView jsonValue)
void SetLatestUpdateAttemptStatus(ParallelDataStatus value)
AWS_TRANSLATE_API ParallelDataProperties()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Vector< Aws::String > & GetTargetLanguageCodes() const
ParallelDataProperties & WithImportedRecordCount(long long value)
ParallelDataProperties & WithImportedDataSize(long long value)
ParallelDataProperties & WithLastUpdatedAt(LastUpdatedAtT &&value)
ParallelDataProperties & WithName(NameT &&value)
ParallelDataProperties & WithSkippedRecordCount(long long value)
ParallelDataProperties & AddTargetLanguageCodes(TargetLanguageCodesT &&value)
ParallelDataProperties & WithSourceLanguageCode(SourceLanguageCodeT &&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