AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParallelDataProperties.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/ParallelDataStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/translate/model/ParallelDataConfig.h>
12#include <aws/translate/model/EncryptionKey.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Translate
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_TRANSLATE_API ParallelDataProperties() = default;
42 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 ParallelDataProperties& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 ParallelDataProperties& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 ParallelDataProperties& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline ParallelDataStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(ParallelDataStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline ParallelDataProperties& WithStatus(ParallelDataStatus value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::String& GetSourceLanguageCode() const { return m_sourceLanguageCode; }
97 inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; }
98 template<typename SourceLanguageCodeT = Aws::String>
99 void SetSourceLanguageCode(SourceLanguageCodeT&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::forward<SourceLanguageCodeT>(value); }
100 template<typename SourceLanguageCodeT = Aws::String>
101 ParallelDataProperties& WithSourceLanguageCode(SourceLanguageCodeT&& value) { SetSourceLanguageCode(std::forward<SourceLanguageCodeT>(value)); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetTargetLanguageCodes() const { return m_targetLanguageCodes; }
110 inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; }
111 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
112 void SetTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::forward<TargetLanguageCodesT>(value); }
113 template<typename TargetLanguageCodesT = Aws::Vector<Aws::String>>
114 ParallelDataProperties& WithTargetLanguageCodes(TargetLanguageCodesT&& value) { SetTargetLanguageCodes(std::forward<TargetLanguageCodesT>(value)); return *this;}
115 template<typename TargetLanguageCodesT = Aws::String>
116 ParallelDataProperties& AddTargetLanguageCodes(TargetLanguageCodesT&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.emplace_back(std::forward<TargetLanguageCodesT>(value)); return *this; }
118
120
123 inline const ParallelDataConfig& GetParallelDataConfig() const { return m_parallelDataConfig; }
124 inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; }
125 template<typename ParallelDataConfigT = ParallelDataConfig>
126 void SetParallelDataConfig(ParallelDataConfigT&& value) { m_parallelDataConfigHasBeenSet = true; m_parallelDataConfig = std::forward<ParallelDataConfigT>(value); }
127 template<typename ParallelDataConfigT = ParallelDataConfig>
128 ParallelDataProperties& WithParallelDataConfig(ParallelDataConfigT&& value) { SetParallelDataConfig(std::forward<ParallelDataConfigT>(value)); return *this;}
130
132
136 inline const Aws::String& GetMessage() const { return m_message; }
137 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
138 template<typename MessageT = Aws::String>
139 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
140 template<typename MessageT = Aws::String>
141 ParallelDataProperties& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
143
145
152 inline long long GetImportedDataSize() const { return m_importedDataSize; }
153 inline bool ImportedDataSizeHasBeenSet() const { return m_importedDataSizeHasBeenSet; }
154 inline void SetImportedDataSize(long long value) { m_importedDataSizeHasBeenSet = true; m_importedDataSize = value; }
155 inline ParallelDataProperties& WithImportedDataSize(long long value) { SetImportedDataSize(value); return *this;}
157
159
163 inline long long GetImportedRecordCount() const { return m_importedRecordCount; }
164 inline bool ImportedRecordCountHasBeenSet() const { return m_importedRecordCountHasBeenSet; }
165 inline void SetImportedRecordCount(long long value) { m_importedRecordCountHasBeenSet = true; m_importedRecordCount = value; }
166 inline ParallelDataProperties& WithImportedRecordCount(long long value) { SetImportedRecordCount(value); return *this;}
168
170
174 inline long long GetFailedRecordCount() const { return m_failedRecordCount; }
175 inline bool FailedRecordCountHasBeenSet() const { return m_failedRecordCountHasBeenSet; }
176 inline void SetFailedRecordCount(long long value) { m_failedRecordCountHasBeenSet = true; m_failedRecordCount = value; }
177 inline ParallelDataProperties& WithFailedRecordCount(long long value) { SetFailedRecordCount(value); return *this;}
179
181
186 inline long long GetSkippedRecordCount() const { return m_skippedRecordCount; }
187 inline bool SkippedRecordCountHasBeenSet() const { return m_skippedRecordCountHasBeenSet; }
188 inline void SetSkippedRecordCount(long long value) { m_skippedRecordCountHasBeenSet = true; m_skippedRecordCount = value; }
189 inline ParallelDataProperties& WithSkippedRecordCount(long long value) { SetSkippedRecordCount(value); return *this;}
191
193
194 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
195 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
196 template<typename EncryptionKeyT = EncryptionKey>
197 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
198 template<typename EncryptionKeyT = EncryptionKey>
199 ParallelDataProperties& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
201
203
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
208 template<typename CreatedAtT = Aws::Utils::DateTime>
209 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
210 template<typename CreatedAtT = Aws::Utils::DateTime>
211 ParallelDataProperties& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
213
215
218 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
219 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
220 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
221 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
222 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
223 ParallelDataProperties& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
225
227
231 inline ParallelDataStatus GetLatestUpdateAttemptStatus() const { return m_latestUpdateAttemptStatus; }
232 inline bool LatestUpdateAttemptStatusHasBeenSet() const { return m_latestUpdateAttemptStatusHasBeenSet; }
233 inline void SetLatestUpdateAttemptStatus(ParallelDataStatus value) { m_latestUpdateAttemptStatusHasBeenSet = true; m_latestUpdateAttemptStatus = value; }
236
238
241 inline const Aws::Utils::DateTime& GetLatestUpdateAttemptAt() const { return m_latestUpdateAttemptAt; }
242 inline bool LatestUpdateAttemptAtHasBeenSet() const { return m_latestUpdateAttemptAtHasBeenSet; }
243 template<typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
244 void SetLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) { m_latestUpdateAttemptAtHasBeenSet = true; m_latestUpdateAttemptAt = std::forward<LatestUpdateAttemptAtT>(value); }
245 template<typename LatestUpdateAttemptAtT = Aws::Utils::DateTime>
246 ParallelDataProperties& WithLatestUpdateAttemptAt(LatestUpdateAttemptAtT&& value) { SetLatestUpdateAttemptAt(std::forward<LatestUpdateAttemptAtT>(value)); return *this;}
248 private:
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = false;
252
253 Aws::String m_arn;
254 bool m_arnHasBeenSet = false;
255
256 Aws::String m_description;
257 bool m_descriptionHasBeenSet = false;
258
260 bool m_statusHasBeenSet = false;
261
262 Aws::String m_sourceLanguageCode;
263 bool m_sourceLanguageCodeHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_targetLanguageCodes;
266 bool m_targetLanguageCodesHasBeenSet = false;
267
268 ParallelDataConfig m_parallelDataConfig;
269 bool m_parallelDataConfigHasBeenSet = false;
270
271 Aws::String m_message;
272 bool m_messageHasBeenSet = false;
273
274 long long m_importedDataSize{0};
275 bool m_importedDataSizeHasBeenSet = false;
276
277 long long m_importedRecordCount{0};
278 bool m_importedRecordCountHasBeenSet = false;
279
280 long long m_failedRecordCount{0};
281 bool m_failedRecordCountHasBeenSet = false;
282
283 long long m_skippedRecordCount{0};
284 bool m_skippedRecordCountHasBeenSet = false;
285
286 EncryptionKey m_encryptionKey;
287 bool m_encryptionKeyHasBeenSet = false;
288
289 Aws::Utils::DateTime m_createdAt{};
290 bool m_createdAtHasBeenSet = false;
291
292 Aws::Utils::DateTime m_lastUpdatedAt{};
293 bool m_lastUpdatedAtHasBeenSet = false;
294
295 ParallelDataStatus m_latestUpdateAttemptStatus{ParallelDataStatus::NOT_SET};
296 bool m_latestUpdateAttemptStatusHasBeenSet = false;
297
298 Aws::Utils::DateTime m_latestUpdateAttemptAt{};
299 bool m_latestUpdateAttemptAtHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace Translate
304} // 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