AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplicationStats.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DatabaseMigrationService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats() = default;
36 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetFullLoadProgressPercent() const { return m_fullLoadProgressPercent; }
46 inline bool FullLoadProgressPercentHasBeenSet() const { return m_fullLoadProgressPercentHasBeenSet; }
47 inline void SetFullLoadProgressPercent(int value) { m_fullLoadProgressPercentHasBeenSet = true; m_fullLoadProgressPercent = value; }
50
52
55 inline long long GetElapsedTimeMillis() const { return m_elapsedTimeMillis; }
56 inline bool ElapsedTimeMillisHasBeenSet() const { return m_elapsedTimeMillisHasBeenSet; }
57 inline void SetElapsedTimeMillis(long long value) { m_elapsedTimeMillisHasBeenSet = true; m_elapsedTimeMillis = value; }
58 inline ReplicationStats& WithElapsedTimeMillis(long long value) { SetElapsedTimeMillis(value); return *this;}
60
62
65 inline int GetTablesLoaded() const { return m_tablesLoaded; }
66 inline bool TablesLoadedHasBeenSet() const { return m_tablesLoadedHasBeenSet; }
67 inline void SetTablesLoaded(int value) { m_tablesLoadedHasBeenSet = true; m_tablesLoaded = value; }
68 inline ReplicationStats& WithTablesLoaded(int value) { SetTablesLoaded(value); return *this;}
70
72
75 inline int GetTablesLoading() const { return m_tablesLoading; }
76 inline bool TablesLoadingHasBeenSet() const { return m_tablesLoadingHasBeenSet; }
77 inline void SetTablesLoading(int value) { m_tablesLoadingHasBeenSet = true; m_tablesLoading = value; }
78 inline ReplicationStats& WithTablesLoading(int value) { SetTablesLoading(value); return *this;}
80
82
85 inline int GetTablesQueued() const { return m_tablesQueued; }
86 inline bool TablesQueuedHasBeenSet() const { return m_tablesQueuedHasBeenSet; }
87 inline void SetTablesQueued(int value) { m_tablesQueuedHasBeenSet = true; m_tablesQueued = value; }
88 inline ReplicationStats& WithTablesQueued(int value) { SetTablesQueued(value); return *this;}
90
92
95 inline int GetTablesErrored() const { return m_tablesErrored; }
96 inline bool TablesErroredHasBeenSet() const { return m_tablesErroredHasBeenSet; }
97 inline void SetTablesErrored(int value) { m_tablesErroredHasBeenSet = true; m_tablesErrored = value; }
98 inline ReplicationStats& WithTablesErrored(int value) { SetTablesErrored(value); return *this;}
100
102
106 inline const Aws::Utils::DateTime& GetFreshStartDate() const { return m_freshStartDate; }
107 inline bool FreshStartDateHasBeenSet() const { return m_freshStartDateHasBeenSet; }
108 template<typename FreshStartDateT = Aws::Utils::DateTime>
109 void SetFreshStartDate(FreshStartDateT&& value) { m_freshStartDateHasBeenSet = true; m_freshStartDate = std::forward<FreshStartDateT>(value); }
110 template<typename FreshStartDateT = Aws::Utils::DateTime>
111 ReplicationStats& WithFreshStartDate(FreshStartDateT&& value) { SetFreshStartDate(std::forward<FreshStartDateT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
119 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
120 template<typename StartDateT = Aws::Utils::DateTime>
121 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
122 template<typename StartDateT = Aws::Utils::DateTime>
123 ReplicationStats& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetStopDate() const { return m_stopDate; }
131 inline bool StopDateHasBeenSet() const { return m_stopDateHasBeenSet; }
132 template<typename StopDateT = Aws::Utils::DateTime>
133 void SetStopDate(StopDateT&& value) { m_stopDateHasBeenSet = true; m_stopDate = std::forward<StopDateT>(value); }
134 template<typename StopDateT = Aws::Utils::DateTime>
135 ReplicationStats& WithStopDate(StopDateT&& value) { SetStopDate(std::forward<StopDateT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetFullLoadStartDate() const { return m_fullLoadStartDate; }
143 inline bool FullLoadStartDateHasBeenSet() const { return m_fullLoadStartDateHasBeenSet; }
144 template<typename FullLoadStartDateT = Aws::Utils::DateTime>
145 void SetFullLoadStartDate(FullLoadStartDateT&& value) { m_fullLoadStartDateHasBeenSet = true; m_fullLoadStartDate = std::forward<FullLoadStartDateT>(value); }
146 template<typename FullLoadStartDateT = Aws::Utils::DateTime>
147 ReplicationStats& WithFullLoadStartDate(FullLoadStartDateT&& value) { SetFullLoadStartDate(std::forward<FullLoadStartDateT>(value)); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetFullLoadFinishDate() const { return m_fullLoadFinishDate; }
155 inline bool FullLoadFinishDateHasBeenSet() const { return m_fullLoadFinishDateHasBeenSet; }
156 template<typename FullLoadFinishDateT = Aws::Utils::DateTime>
157 void SetFullLoadFinishDate(FullLoadFinishDateT&& value) { m_fullLoadFinishDateHasBeenSet = true; m_fullLoadFinishDate = std::forward<FullLoadFinishDateT>(value); }
158 template<typename FullLoadFinishDateT = Aws::Utils::DateTime>
159 ReplicationStats& WithFullLoadFinishDate(FullLoadFinishDateT&& value) { SetFullLoadFinishDate(std::forward<FullLoadFinishDateT>(value)); return *this;}
161 private:
162
163 int m_fullLoadProgressPercent{0};
164 bool m_fullLoadProgressPercentHasBeenSet = false;
165
166 long long m_elapsedTimeMillis{0};
167 bool m_elapsedTimeMillisHasBeenSet = false;
168
169 int m_tablesLoaded{0};
170 bool m_tablesLoadedHasBeenSet = false;
171
172 int m_tablesLoading{0};
173 bool m_tablesLoadingHasBeenSet = false;
174
175 int m_tablesQueued{0};
176 bool m_tablesQueuedHasBeenSet = false;
177
178 int m_tablesErrored{0};
179 bool m_tablesErroredHasBeenSet = false;
180
181 Aws::Utils::DateTime m_freshStartDate{};
182 bool m_freshStartDateHasBeenSet = false;
183
184 Aws::Utils::DateTime m_startDate{};
185 bool m_startDateHasBeenSet = false;
186
187 Aws::Utils::DateTime m_stopDate{};
188 bool m_stopDateHasBeenSet = false;
189
190 Aws::Utils::DateTime m_fullLoadStartDate{};
191 bool m_fullLoadStartDateHasBeenSet = false;
192
193 Aws::Utils::DateTime m_fullLoadFinishDate{};
194 bool m_fullLoadFinishDateHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace DatabaseMigrationService
199} // namespace Aws
ReplicationStats & WithFullLoadStartDate(FullLoadStartDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats()=default
ReplicationStats & WithFreshStartDate(FreshStartDateT &&value)
ReplicationStats & WithFullLoadFinishDate(FullLoadFinishDateT &&value)
void SetFullLoadFinishDate(FullLoadFinishDateT &&value)
ReplicationStats & WithElapsedTimeMillis(long long value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartDate() const
ReplicationStats & WithStartDate(StartDateT &&value)
ReplicationStats & WithStopDate(StopDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetFreshStartDate() const
const Aws::Utils::DateTime & GetFullLoadFinishDate() const
const Aws::Utils::DateTime & GetFullLoadStartDate() const
AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue