AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TableStatistics.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics() = default;
37 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
47 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
48 template<typename SchemaNameT = Aws::String>
49 void SetSchemaName(SchemaNameT&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::forward<SchemaNameT>(value); }
50 template<typename SchemaNameT = Aws::String>
51 TableStatistics& WithSchemaName(SchemaNameT&& value) { SetSchemaName(std::forward<SchemaNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTableName() const { return m_tableName; }
59 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
60 template<typename TableNameT = Aws::String>
61 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
62 template<typename TableNameT = Aws::String>
63 TableStatistics& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
65
67
70 inline long long GetInserts() const { return m_inserts; }
71 inline bool InsertsHasBeenSet() const { return m_insertsHasBeenSet; }
72 inline void SetInserts(long long value) { m_insertsHasBeenSet = true; m_inserts = value; }
73 inline TableStatistics& WithInserts(long long value) { SetInserts(value); return *this;}
75
77
80 inline long long GetDeletes() const { return m_deletes; }
81 inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
82 inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
83 inline TableStatistics& WithDeletes(long long value) { SetDeletes(value); return *this;}
85
87
90 inline long long GetUpdates() const { return m_updates; }
91 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
92 inline void SetUpdates(long long value) { m_updatesHasBeenSet = true; m_updates = value; }
93 inline TableStatistics& WithUpdates(long long value) { SetUpdates(value); return *this;}
95
97
101 inline long long GetDdls() const { return m_ddls; }
102 inline bool DdlsHasBeenSet() const { return m_ddlsHasBeenSet; }
103 inline void SetDdls(long long value) { m_ddlsHasBeenSet = true; m_ddls = value; }
104 inline TableStatistics& WithDdls(long long value) { SetDdls(value); return *this;}
106
108
111 inline long long GetAppliedInserts() const { return m_appliedInserts; }
112 inline bool AppliedInsertsHasBeenSet() const { return m_appliedInsertsHasBeenSet; }
113 inline void SetAppliedInserts(long long value) { m_appliedInsertsHasBeenSet = true; m_appliedInserts = value; }
114 inline TableStatistics& WithAppliedInserts(long long value) { SetAppliedInserts(value); return *this;}
116
118
121 inline long long GetAppliedDeletes() const { return m_appliedDeletes; }
122 inline bool AppliedDeletesHasBeenSet() const { return m_appliedDeletesHasBeenSet; }
123 inline void SetAppliedDeletes(long long value) { m_appliedDeletesHasBeenSet = true; m_appliedDeletes = value; }
124 inline TableStatistics& WithAppliedDeletes(long long value) { SetAppliedDeletes(value); return *this;}
126
128
131 inline long long GetAppliedUpdates() const { return m_appliedUpdates; }
132 inline bool AppliedUpdatesHasBeenSet() const { return m_appliedUpdatesHasBeenSet; }
133 inline void SetAppliedUpdates(long long value) { m_appliedUpdatesHasBeenSet = true; m_appliedUpdates = value; }
134 inline TableStatistics& WithAppliedUpdates(long long value) { SetAppliedUpdates(value); return *this;}
136
138
142 inline long long GetAppliedDdls() const { return m_appliedDdls; }
143 inline bool AppliedDdlsHasBeenSet() const { return m_appliedDdlsHasBeenSet; }
144 inline void SetAppliedDdls(long long value) { m_appliedDdlsHasBeenSet = true; m_appliedDdls = value; }
145 inline TableStatistics& WithAppliedDdls(long long value) { SetAppliedDdls(value); return *this;}
147
149
152 inline long long GetFullLoadRows() const { return m_fullLoadRows; }
153 inline bool FullLoadRowsHasBeenSet() const { return m_fullLoadRowsHasBeenSet; }
154 inline void SetFullLoadRows(long long value) { m_fullLoadRowsHasBeenSet = true; m_fullLoadRows = value; }
155 inline TableStatistics& WithFullLoadRows(long long value) { SetFullLoadRows(value); return *this;}
157
159
163 inline long long GetFullLoadCondtnlChkFailedRows() const { return m_fullLoadCondtnlChkFailedRows; }
164 inline bool FullLoadCondtnlChkFailedRowsHasBeenSet() const { return m_fullLoadCondtnlChkFailedRowsHasBeenSet; }
165 inline void SetFullLoadCondtnlChkFailedRows(long long value) { m_fullLoadCondtnlChkFailedRowsHasBeenSet = true; m_fullLoadCondtnlChkFailedRows = value; }
168
170
174 inline long long GetFullLoadErrorRows() const { return m_fullLoadErrorRows; }
175 inline bool FullLoadErrorRowsHasBeenSet() const { return m_fullLoadErrorRowsHasBeenSet; }
176 inline void SetFullLoadErrorRows(long long value) { m_fullLoadErrorRowsHasBeenSet = true; m_fullLoadErrorRows = value; }
177 inline TableStatistics& WithFullLoadErrorRows(long long value) { SetFullLoadErrorRows(value); return *this;}
179
181
184 inline const Aws::Utils::DateTime& GetFullLoadStartTime() const { return m_fullLoadStartTime; }
185 inline bool FullLoadStartTimeHasBeenSet() const { return m_fullLoadStartTimeHasBeenSet; }
186 template<typename FullLoadStartTimeT = Aws::Utils::DateTime>
187 void SetFullLoadStartTime(FullLoadStartTimeT&& value) { m_fullLoadStartTimeHasBeenSet = true; m_fullLoadStartTime = std::forward<FullLoadStartTimeT>(value); }
188 template<typename FullLoadStartTimeT = Aws::Utils::DateTime>
189 TableStatistics& WithFullLoadStartTime(FullLoadStartTimeT&& value) { SetFullLoadStartTime(std::forward<FullLoadStartTimeT>(value)); return *this;}
191
193
196 inline const Aws::Utils::DateTime& GetFullLoadEndTime() const { return m_fullLoadEndTime; }
197 inline bool FullLoadEndTimeHasBeenSet() const { return m_fullLoadEndTimeHasBeenSet; }
198 template<typename FullLoadEndTimeT = Aws::Utils::DateTime>
199 void SetFullLoadEndTime(FullLoadEndTimeT&& value) { m_fullLoadEndTimeHasBeenSet = true; m_fullLoadEndTime = std::forward<FullLoadEndTimeT>(value); }
200 template<typename FullLoadEndTimeT = Aws::Utils::DateTime>
201 TableStatistics& WithFullLoadEndTime(FullLoadEndTimeT&& value) { SetFullLoadEndTime(std::forward<FullLoadEndTimeT>(value)); return *this;}
203
205
209 inline bool GetFullLoadReloaded() const { return m_fullLoadReloaded; }
210 inline bool FullLoadReloadedHasBeenSet() const { return m_fullLoadReloadedHasBeenSet; }
211 inline void SetFullLoadReloaded(bool value) { m_fullLoadReloadedHasBeenSet = true; m_fullLoadReloaded = value; }
212 inline TableStatistics& WithFullLoadReloaded(bool value) { SetFullLoadReloaded(value); return *this;}
214
216
219 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
220 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
221 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
222 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
223 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
224 TableStatistics& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
226
228
233 inline const Aws::String& GetTableState() const { return m_tableState; }
234 inline bool TableStateHasBeenSet() const { return m_tableStateHasBeenSet; }
235 template<typename TableStateT = Aws::String>
236 void SetTableState(TableStateT&& value) { m_tableStateHasBeenSet = true; m_tableState = std::forward<TableStateT>(value); }
237 template<typename TableStateT = Aws::String>
238 TableStatistics& WithTableState(TableStateT&& value) { SetTableState(std::forward<TableStateT>(value)); return *this;}
240
242
245 inline long long GetValidationPendingRecords() const { return m_validationPendingRecords; }
246 inline bool ValidationPendingRecordsHasBeenSet() const { return m_validationPendingRecordsHasBeenSet; }
247 inline void SetValidationPendingRecords(long long value) { m_validationPendingRecordsHasBeenSet = true; m_validationPendingRecords = value; }
248 inline TableStatistics& WithValidationPendingRecords(long long value) { SetValidationPendingRecords(value); return *this;}
250
252
255 inline long long GetValidationFailedRecords() const { return m_validationFailedRecords; }
256 inline bool ValidationFailedRecordsHasBeenSet() const { return m_validationFailedRecordsHasBeenSet; }
257 inline void SetValidationFailedRecords(long long value) { m_validationFailedRecordsHasBeenSet = true; m_validationFailedRecords = value; }
258 inline TableStatistics& WithValidationFailedRecords(long long value) { SetValidationFailedRecords(value); return *this;}
260
262
265 inline long long GetValidationSuspendedRecords() const { return m_validationSuspendedRecords; }
266 inline bool ValidationSuspendedRecordsHasBeenSet() const { return m_validationSuspendedRecordsHasBeenSet; }
267 inline void SetValidationSuspendedRecords(long long value) { m_validationSuspendedRecordsHasBeenSet = true; m_validationSuspendedRecords = value; }
268 inline TableStatistics& WithValidationSuspendedRecords(long long value) { SetValidationSuspendedRecords(value); return *this;}
270
272
290 inline const Aws::String& GetValidationState() const { return m_validationState; }
291 inline bool ValidationStateHasBeenSet() const { return m_validationStateHasBeenSet; }
292 template<typename ValidationStateT = Aws::String>
293 void SetValidationState(ValidationStateT&& value) { m_validationStateHasBeenSet = true; m_validationState = std::forward<ValidationStateT>(value); }
294 template<typename ValidationStateT = Aws::String>
295 TableStatistics& WithValidationState(ValidationStateT&& value) { SetValidationState(std::forward<ValidationStateT>(value)); return *this;}
297
299
302 inline const Aws::String& GetValidationStateDetails() const { return m_validationStateDetails; }
303 inline bool ValidationStateDetailsHasBeenSet() const { return m_validationStateDetailsHasBeenSet; }
304 template<typename ValidationStateDetailsT = Aws::String>
305 void SetValidationStateDetails(ValidationStateDetailsT&& value) { m_validationStateDetailsHasBeenSet = true; m_validationStateDetails = std::forward<ValidationStateDetailsT>(value); }
306 template<typename ValidationStateDetailsT = Aws::String>
307 TableStatistics& WithValidationStateDetails(ValidationStateDetailsT&& value) { SetValidationStateDetails(std::forward<ValidationStateDetailsT>(value)); return *this;}
309
311
321 inline const Aws::String& GetResyncState() const { return m_resyncState; }
322 inline bool ResyncStateHasBeenSet() const { return m_resyncStateHasBeenSet; }
323 template<typename ResyncStateT = Aws::String>
324 void SetResyncState(ResyncStateT&& value) { m_resyncStateHasBeenSet = true; m_resyncState = std::forward<ResyncStateT>(value); }
325 template<typename ResyncStateT = Aws::String>
326 TableStatistics& WithResyncState(ResyncStateT&& value) { SetResyncState(std::forward<ResyncStateT>(value)); return *this;}
328
330
334 inline long long GetResyncRowsAttempted() const { return m_resyncRowsAttempted; }
335 inline bool ResyncRowsAttemptedHasBeenSet() const { return m_resyncRowsAttemptedHasBeenSet; }
336 inline void SetResyncRowsAttempted(long long value) { m_resyncRowsAttemptedHasBeenSet = true; m_resyncRowsAttempted = value; }
337 inline TableStatistics& WithResyncRowsAttempted(long long value) { SetResyncRowsAttempted(value); return *this;}
339
341
345 inline long long GetResyncRowsSucceeded() const { return m_resyncRowsSucceeded; }
346 inline bool ResyncRowsSucceededHasBeenSet() const { return m_resyncRowsSucceededHasBeenSet; }
347 inline void SetResyncRowsSucceeded(long long value) { m_resyncRowsSucceededHasBeenSet = true; m_resyncRowsSucceeded = value; }
348 inline TableStatistics& WithResyncRowsSucceeded(long long value) { SetResyncRowsSucceeded(value); return *this;}
350
352
356 inline long long GetResyncRowsFailed() const { return m_resyncRowsFailed; }
357 inline bool ResyncRowsFailedHasBeenSet() const { return m_resyncRowsFailedHasBeenSet; }
358 inline void SetResyncRowsFailed(long long value) { m_resyncRowsFailedHasBeenSet = true; m_resyncRowsFailed = value; }
359 inline TableStatistics& WithResyncRowsFailed(long long value) { SetResyncRowsFailed(value); return *this;}
361
363
367 inline double GetResyncProgress() const { return m_resyncProgress; }
368 inline bool ResyncProgressHasBeenSet() const { return m_resyncProgressHasBeenSet; }
369 inline void SetResyncProgress(double value) { m_resyncProgressHasBeenSet = true; m_resyncProgress = value; }
370 inline TableStatistics& WithResyncProgress(double value) { SetResyncProgress(value); return *this;}
372 private:
373
374 Aws::String m_schemaName;
375 bool m_schemaNameHasBeenSet = false;
376
377 Aws::String m_tableName;
378 bool m_tableNameHasBeenSet = false;
379
380 long long m_inserts{0};
381 bool m_insertsHasBeenSet = false;
382
383 long long m_deletes{0};
384 bool m_deletesHasBeenSet = false;
385
386 long long m_updates{0};
387 bool m_updatesHasBeenSet = false;
388
389 long long m_ddls{0};
390 bool m_ddlsHasBeenSet = false;
391
392 long long m_appliedInserts{0};
393 bool m_appliedInsertsHasBeenSet = false;
394
395 long long m_appliedDeletes{0};
396 bool m_appliedDeletesHasBeenSet = false;
397
398 long long m_appliedUpdates{0};
399 bool m_appliedUpdatesHasBeenSet = false;
400
401 long long m_appliedDdls{0};
402 bool m_appliedDdlsHasBeenSet = false;
403
404 long long m_fullLoadRows{0};
405 bool m_fullLoadRowsHasBeenSet = false;
406
407 long long m_fullLoadCondtnlChkFailedRows{0};
408 bool m_fullLoadCondtnlChkFailedRowsHasBeenSet = false;
409
410 long long m_fullLoadErrorRows{0};
411 bool m_fullLoadErrorRowsHasBeenSet = false;
412
413 Aws::Utils::DateTime m_fullLoadStartTime{};
414 bool m_fullLoadStartTimeHasBeenSet = false;
415
416 Aws::Utils::DateTime m_fullLoadEndTime{};
417 bool m_fullLoadEndTimeHasBeenSet = false;
418
419 bool m_fullLoadReloaded{false};
420 bool m_fullLoadReloadedHasBeenSet = false;
421
422 Aws::Utils::DateTime m_lastUpdateTime{};
423 bool m_lastUpdateTimeHasBeenSet = false;
424
425 Aws::String m_tableState;
426 bool m_tableStateHasBeenSet = false;
427
428 long long m_validationPendingRecords{0};
429 bool m_validationPendingRecordsHasBeenSet = false;
430
431 long long m_validationFailedRecords{0};
432 bool m_validationFailedRecordsHasBeenSet = false;
433
434 long long m_validationSuspendedRecords{0};
435 bool m_validationSuspendedRecordsHasBeenSet = false;
436
437 Aws::String m_validationState;
438 bool m_validationStateHasBeenSet = false;
439
440 Aws::String m_validationStateDetails;
441 bool m_validationStateDetailsHasBeenSet = false;
442
443 Aws::String m_resyncState;
444 bool m_resyncStateHasBeenSet = false;
445
446 long long m_resyncRowsAttempted{0};
447 bool m_resyncRowsAttemptedHasBeenSet = false;
448
449 long long m_resyncRowsSucceeded{0};
450 bool m_resyncRowsSucceededHasBeenSet = false;
451
452 long long m_resyncRowsFailed{0};
453 bool m_resyncRowsFailedHasBeenSet = false;
454
455 double m_resyncProgress{0.0};
456 bool m_resyncProgressHasBeenSet = false;
457 };
458
459} // namespace Model
460} // namespace DatabaseMigrationService
461} // namespace Aws
TableStatistics & WithTableState(TableStateT &&value)
TableStatistics & WithResyncRowsSucceeded(long long value)
TableStatistics & WithValidationState(ValidationStateT &&value)
void SetValidationStateDetails(ValidationStateDetailsT &&value)
TableStatistics & WithLastUpdateTime(LastUpdateTimeT &&value)
TableStatistics & WithFullLoadRows(long long value)
TableStatistics & WithFullLoadCondtnlChkFailedRows(long long value)
AWS_DATABASEMIGRATIONSERVICE_API TableStatistics()=default
TableStatistics & WithResyncState(ResyncStateT &&value)
TableStatistics & WithFullLoadEndTime(FullLoadEndTimeT &&value)
TableStatistics & WithFullLoadStartTime(FullLoadStartTimeT &&value)
TableStatistics & WithAppliedDeletes(long long value)
TableStatistics & WithResyncRowsAttempted(long long value)
TableStatistics & WithAppliedInserts(long long value)
TableStatistics & WithValidationFailedRecords(long long value)
TableStatistics & WithResyncRowsFailed(long long value)
TableStatistics & WithValidationSuspendedRecords(long long value)
TableStatistics & WithAppliedUpdates(long long value)
void SetFullLoadStartTime(FullLoadStartTimeT &&value)
TableStatistics & WithValidationStateDetails(ValidationStateDetailsT &&value)
TableStatistics & WithTableName(TableNameT &&value)
TableStatistics & WithValidationPendingRecords(long long value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TableStatistics & WithAppliedDdls(long long value)
const Aws::Utils::DateTime & GetFullLoadStartTime() const
TableStatistics & WithSchemaName(SchemaNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API TableStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFullLoadEndTime() const
AWS_DATABASEMIGRATIONSERVICE_API TableStatistics(Aws::Utils::Json::JsonView jsonValue)
TableStatistics & WithFullLoadErrorRows(long long value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue