AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TableStatistics.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DatabaseMigrationService {
21namespace Model {
22
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API TableStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
41 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
42 template <typename SchemaNameT = Aws::String>
43 void SetSchemaName(SchemaNameT&& value) {
44 m_schemaNameHasBeenSet = true;
45 m_schemaName = std::forward<SchemaNameT>(value);
46 }
47 template <typename SchemaNameT = Aws::String>
48 TableStatistics& WithSchemaName(SchemaNameT&& value) {
49 SetSchemaName(std::forward<SchemaNameT>(value));
50 return *this;
51 }
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) {
62 m_tableNameHasBeenSet = true;
63 m_tableName = std::forward<TableNameT>(value);
64 }
65 template <typename TableNameT = Aws::String>
66 TableStatistics& WithTableName(TableNameT&& value) {
67 SetTableName(std::forward<TableNameT>(value));
68 return *this;
69 }
71
73
76 inline long long GetInserts() const { return m_inserts; }
77 inline bool InsertsHasBeenSet() const { return m_insertsHasBeenSet; }
78 inline void SetInserts(long long value) {
79 m_insertsHasBeenSet = true;
80 m_inserts = value;
81 }
82 inline TableStatistics& WithInserts(long long value) {
83 SetInserts(value);
84 return *this;
85 }
87
89
92 inline long long GetDeletes() const { return m_deletes; }
93 inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
94 inline void SetDeletes(long long value) {
95 m_deletesHasBeenSet = true;
96 m_deletes = value;
97 }
98 inline TableStatistics& WithDeletes(long long value) {
99 SetDeletes(value);
100 return *this;
101 }
103
105
108 inline long long GetUpdates() const { return m_updates; }
109 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
110 inline void SetUpdates(long long value) {
111 m_updatesHasBeenSet = true;
112 m_updates = value;
113 }
114 inline TableStatistics& WithUpdates(long long value) {
115 SetUpdates(value);
116 return *this;
117 }
119
121
125 inline long long GetDdls() const { return m_ddls; }
126 inline bool DdlsHasBeenSet() const { return m_ddlsHasBeenSet; }
127 inline void SetDdls(long long value) {
128 m_ddlsHasBeenSet = true;
129 m_ddls = value;
130 }
131 inline TableStatistics& WithDdls(long long value) {
132 SetDdls(value);
133 return *this;
134 }
136
138
141 inline long long GetAppliedInserts() const { return m_appliedInserts; }
142 inline bool AppliedInsertsHasBeenSet() const { return m_appliedInsertsHasBeenSet; }
143 inline void SetAppliedInserts(long long value) {
144 m_appliedInsertsHasBeenSet = true;
145 m_appliedInserts = value;
146 }
147 inline TableStatistics& WithAppliedInserts(long long value) {
148 SetAppliedInserts(value);
149 return *this;
150 }
152
154
157 inline long long GetAppliedDeletes() const { return m_appliedDeletes; }
158 inline bool AppliedDeletesHasBeenSet() const { return m_appliedDeletesHasBeenSet; }
159 inline void SetAppliedDeletes(long long value) {
160 m_appliedDeletesHasBeenSet = true;
161 m_appliedDeletes = value;
162 }
163 inline TableStatistics& WithAppliedDeletes(long long value) {
164 SetAppliedDeletes(value);
165 return *this;
166 }
168
170
173 inline long long GetAppliedUpdates() const { return m_appliedUpdates; }
174 inline bool AppliedUpdatesHasBeenSet() const { return m_appliedUpdatesHasBeenSet; }
175 inline void SetAppliedUpdates(long long value) {
176 m_appliedUpdatesHasBeenSet = true;
177 m_appliedUpdates = value;
178 }
179 inline TableStatistics& WithAppliedUpdates(long long value) {
180 SetAppliedUpdates(value);
181 return *this;
182 }
184
186
190 inline long long GetAppliedDdls() const { return m_appliedDdls; }
191 inline bool AppliedDdlsHasBeenSet() const { return m_appliedDdlsHasBeenSet; }
192 inline void SetAppliedDdls(long long value) {
193 m_appliedDdlsHasBeenSet = true;
194 m_appliedDdls = value;
195 }
196 inline TableStatistics& WithAppliedDdls(long long value) {
197 SetAppliedDdls(value);
198 return *this;
199 }
201
203
206 inline long long GetFullLoadRows() const { return m_fullLoadRows; }
207 inline bool FullLoadRowsHasBeenSet() const { return m_fullLoadRowsHasBeenSet; }
208 inline void SetFullLoadRows(long long value) {
209 m_fullLoadRowsHasBeenSet = true;
210 m_fullLoadRows = value;
211 }
212 inline TableStatistics& WithFullLoadRows(long long value) {
213 SetFullLoadRows(value);
214 return *this;
215 }
217
219
223 inline long long GetFullLoadCondtnlChkFailedRows() const { return m_fullLoadCondtnlChkFailedRows; }
224 inline bool FullLoadCondtnlChkFailedRowsHasBeenSet() const { return m_fullLoadCondtnlChkFailedRowsHasBeenSet; }
225 inline void SetFullLoadCondtnlChkFailedRows(long long value) {
226 m_fullLoadCondtnlChkFailedRowsHasBeenSet = true;
227 m_fullLoadCondtnlChkFailedRows = value;
228 }
231 return *this;
232 }
234
236
240 inline long long GetFullLoadErrorRows() const { return m_fullLoadErrorRows; }
241 inline bool FullLoadErrorRowsHasBeenSet() const { return m_fullLoadErrorRowsHasBeenSet; }
242 inline void SetFullLoadErrorRows(long long value) {
243 m_fullLoadErrorRowsHasBeenSet = true;
244 m_fullLoadErrorRows = value;
245 }
246 inline TableStatistics& WithFullLoadErrorRows(long long value) {
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetFullLoadStartTime() const { return m_fullLoadStartTime; }
257 inline bool FullLoadStartTimeHasBeenSet() const { return m_fullLoadStartTimeHasBeenSet; }
258 template <typename FullLoadStartTimeT = Aws::Utils::DateTime>
259 void SetFullLoadStartTime(FullLoadStartTimeT&& value) {
260 m_fullLoadStartTimeHasBeenSet = true;
261 m_fullLoadStartTime = std::forward<FullLoadStartTimeT>(value);
262 }
263 template <typename FullLoadStartTimeT = Aws::Utils::DateTime>
264 TableStatistics& WithFullLoadStartTime(FullLoadStartTimeT&& value) {
265 SetFullLoadStartTime(std::forward<FullLoadStartTimeT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Utils::DateTime& GetFullLoadEndTime() const { return m_fullLoadEndTime; }
275 inline bool FullLoadEndTimeHasBeenSet() const { return m_fullLoadEndTimeHasBeenSet; }
276 template <typename FullLoadEndTimeT = Aws::Utils::DateTime>
277 void SetFullLoadEndTime(FullLoadEndTimeT&& value) {
278 m_fullLoadEndTimeHasBeenSet = true;
279 m_fullLoadEndTime = std::forward<FullLoadEndTimeT>(value);
280 }
281 template <typename FullLoadEndTimeT = Aws::Utils::DateTime>
282 TableStatistics& WithFullLoadEndTime(FullLoadEndTimeT&& value) {
283 SetFullLoadEndTime(std::forward<FullLoadEndTimeT>(value));
284 return *this;
285 }
287
289
293 inline bool GetFullLoadReloaded() const { return m_fullLoadReloaded; }
294 inline bool FullLoadReloadedHasBeenSet() const { return m_fullLoadReloadedHasBeenSet; }
295 inline void SetFullLoadReloaded(bool value) {
296 m_fullLoadReloadedHasBeenSet = true;
297 m_fullLoadReloaded = value;
298 }
300 SetFullLoadReloaded(value);
301 return *this;
302 }
304
306
309 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
310 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
311 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
312 void SetLastUpdateTime(LastUpdateTimeT&& value) {
313 m_lastUpdateTimeHasBeenSet = true;
314 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
315 }
316 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
317 TableStatistics& WithLastUpdateTime(LastUpdateTimeT&& value) {
318 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
319 return *this;
320 }
322
324
329 inline const Aws::String& GetTableState() const { return m_tableState; }
330 inline bool TableStateHasBeenSet() const { return m_tableStateHasBeenSet; }
331 template <typename TableStateT = Aws::String>
332 void SetTableState(TableStateT&& value) {
333 m_tableStateHasBeenSet = true;
334 m_tableState = std::forward<TableStateT>(value);
335 }
336 template <typename TableStateT = Aws::String>
337 TableStatistics& WithTableState(TableStateT&& value) {
338 SetTableState(std::forward<TableStateT>(value));
339 return *this;
340 }
342
344
347 inline long long GetValidationPendingRecords() const { return m_validationPendingRecords; }
348 inline bool ValidationPendingRecordsHasBeenSet() const { return m_validationPendingRecordsHasBeenSet; }
349 inline void SetValidationPendingRecords(long long value) {
350 m_validationPendingRecordsHasBeenSet = true;
351 m_validationPendingRecords = value;
352 }
355 return *this;
356 }
358
360
363 inline long long GetValidationFailedRecords() const { return m_validationFailedRecords; }
364 inline bool ValidationFailedRecordsHasBeenSet() const { return m_validationFailedRecordsHasBeenSet; }
365 inline void SetValidationFailedRecords(long long value) {
366 m_validationFailedRecordsHasBeenSet = true;
367 m_validationFailedRecords = value;
368 }
371 return *this;
372 }
374
376
379 inline long long GetValidationSuspendedRecords() const { return m_validationSuspendedRecords; }
380 inline bool ValidationSuspendedRecordsHasBeenSet() const { return m_validationSuspendedRecordsHasBeenSet; }
381 inline void SetValidationSuspendedRecords(long long value) {
382 m_validationSuspendedRecordsHasBeenSet = true;
383 m_validationSuspendedRecords = value;
384 }
387 return *this;
388 }
390
392
410 inline const Aws::String& GetValidationState() const { return m_validationState; }
411 inline bool ValidationStateHasBeenSet() const { return m_validationStateHasBeenSet; }
412 template <typename ValidationStateT = Aws::String>
413 void SetValidationState(ValidationStateT&& value) {
414 m_validationStateHasBeenSet = true;
415 m_validationState = std::forward<ValidationStateT>(value);
416 }
417 template <typename ValidationStateT = Aws::String>
418 TableStatistics& WithValidationState(ValidationStateT&& value) {
419 SetValidationState(std::forward<ValidationStateT>(value));
420 return *this;
421 }
423
425
428 inline const Aws::String& GetValidationStateDetails() const { return m_validationStateDetails; }
429 inline bool ValidationStateDetailsHasBeenSet() const { return m_validationStateDetailsHasBeenSet; }
430 template <typename ValidationStateDetailsT = Aws::String>
431 void SetValidationStateDetails(ValidationStateDetailsT&& value) {
432 m_validationStateDetailsHasBeenSet = true;
433 m_validationStateDetails = std::forward<ValidationStateDetailsT>(value);
434 }
435 template <typename ValidationStateDetailsT = Aws::String>
436 TableStatistics& WithValidationStateDetails(ValidationStateDetailsT&& value) {
437 SetValidationStateDetails(std::forward<ValidationStateDetailsT>(value));
438 return *this;
439 }
441
443
453 inline const Aws::String& GetResyncState() const { return m_resyncState; }
454 inline bool ResyncStateHasBeenSet() const { return m_resyncStateHasBeenSet; }
455 template <typename ResyncStateT = Aws::String>
456 void SetResyncState(ResyncStateT&& value) {
457 m_resyncStateHasBeenSet = true;
458 m_resyncState = std::forward<ResyncStateT>(value);
459 }
460 template <typename ResyncStateT = Aws::String>
461 TableStatistics& WithResyncState(ResyncStateT&& value) {
462 SetResyncState(std::forward<ResyncStateT>(value));
463 return *this;
464 }
466
468
472 inline long long GetResyncRowsAttempted() const { return m_resyncRowsAttempted; }
473 inline bool ResyncRowsAttemptedHasBeenSet() const { return m_resyncRowsAttemptedHasBeenSet; }
474 inline void SetResyncRowsAttempted(long long value) {
475 m_resyncRowsAttemptedHasBeenSet = true;
476 m_resyncRowsAttempted = value;
477 }
478 inline TableStatistics& WithResyncRowsAttempted(long long value) {
480 return *this;
481 }
483
485
489 inline long long GetResyncRowsSucceeded() const { return m_resyncRowsSucceeded; }
490 inline bool ResyncRowsSucceededHasBeenSet() const { return m_resyncRowsSucceededHasBeenSet; }
491 inline void SetResyncRowsSucceeded(long long value) {
492 m_resyncRowsSucceededHasBeenSet = true;
493 m_resyncRowsSucceeded = value;
494 }
495 inline TableStatistics& WithResyncRowsSucceeded(long long value) {
497 return *this;
498 }
500
502
506 inline long long GetResyncRowsFailed() const { return m_resyncRowsFailed; }
507 inline bool ResyncRowsFailedHasBeenSet() const { return m_resyncRowsFailedHasBeenSet; }
508 inline void SetResyncRowsFailed(long long value) {
509 m_resyncRowsFailedHasBeenSet = true;
510 m_resyncRowsFailed = value;
511 }
512 inline TableStatistics& WithResyncRowsFailed(long long value) {
513 SetResyncRowsFailed(value);
514 return *this;
515 }
517
519
523 inline double GetResyncProgress() const { return m_resyncProgress; }
524 inline bool ResyncProgressHasBeenSet() const { return m_resyncProgressHasBeenSet; }
525 inline void SetResyncProgress(double value) {
526 m_resyncProgressHasBeenSet = true;
527 m_resyncProgress = value;
528 }
529 inline TableStatistics& WithResyncProgress(double value) {
530 SetResyncProgress(value);
531 return *this;
532 }
534 private:
535 Aws::String m_schemaName;
536
537 Aws::String m_tableName;
538
539 long long m_inserts{0};
540
541 long long m_deletes{0};
542
543 long long m_updates{0};
544
545 long long m_ddls{0};
546
547 long long m_appliedInserts{0};
548
549 long long m_appliedDeletes{0};
550
551 long long m_appliedUpdates{0};
552
553 long long m_appliedDdls{0};
554
555 long long m_fullLoadRows{0};
556
557 long long m_fullLoadCondtnlChkFailedRows{0};
558
559 long long m_fullLoadErrorRows{0};
560
561 Aws::Utils::DateTime m_fullLoadStartTime{};
562
563 Aws::Utils::DateTime m_fullLoadEndTime{};
564
565 bool m_fullLoadReloaded{false};
566
567 Aws::Utils::DateTime m_lastUpdateTime{};
568
569 Aws::String m_tableState;
570
571 long long m_validationPendingRecords{0};
572
573 long long m_validationFailedRecords{0};
574
575 long long m_validationSuspendedRecords{0};
576
577 Aws::String m_validationState;
578
579 Aws::String m_validationStateDetails;
580
581 Aws::String m_resyncState;
582
583 long long m_resyncRowsAttempted{0};
584
585 long long m_resyncRowsSucceeded{0};
586
587 long long m_resyncRowsFailed{0};
588
589 double m_resyncProgress{0.0};
590 bool m_schemaNameHasBeenSet = false;
591 bool m_tableNameHasBeenSet = false;
592 bool m_insertsHasBeenSet = false;
593 bool m_deletesHasBeenSet = false;
594 bool m_updatesHasBeenSet = false;
595 bool m_ddlsHasBeenSet = false;
596 bool m_appliedInsertsHasBeenSet = false;
597 bool m_appliedDeletesHasBeenSet = false;
598 bool m_appliedUpdatesHasBeenSet = false;
599 bool m_appliedDdlsHasBeenSet = false;
600 bool m_fullLoadRowsHasBeenSet = false;
601 bool m_fullLoadCondtnlChkFailedRowsHasBeenSet = false;
602 bool m_fullLoadErrorRowsHasBeenSet = false;
603 bool m_fullLoadStartTimeHasBeenSet = false;
604 bool m_fullLoadEndTimeHasBeenSet = false;
605 bool m_fullLoadReloadedHasBeenSet = false;
606 bool m_lastUpdateTimeHasBeenSet = false;
607 bool m_tableStateHasBeenSet = false;
608 bool m_validationPendingRecordsHasBeenSet = false;
609 bool m_validationFailedRecordsHasBeenSet = false;
610 bool m_validationSuspendedRecordsHasBeenSet = false;
611 bool m_validationStateHasBeenSet = false;
612 bool m_validationStateDetailsHasBeenSet = false;
613 bool m_resyncStateHasBeenSet = false;
614 bool m_resyncRowsAttemptedHasBeenSet = false;
615 bool m_resyncRowsSucceededHasBeenSet = false;
616 bool m_resyncRowsFailedHasBeenSet = false;
617 bool m_resyncProgressHasBeenSet = false;
618};
619
620} // namespace Model
621} // namespace DatabaseMigrationService
622} // 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