AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ReplicationStats.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DatabaseMigrationService {
20namespace Model {
21
29 public:
30 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats() = default;
31 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATABASEMIGRATIONSERVICE_API ReplicationStats& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetFullLoadProgressPercent() const { return m_fullLoadProgressPercent; }
40 inline bool FullLoadProgressPercentHasBeenSet() const { return m_fullLoadProgressPercentHasBeenSet; }
41 inline void SetFullLoadProgressPercent(int value) {
42 m_fullLoadProgressPercentHasBeenSet = true;
43 m_fullLoadProgressPercent = value;
44 }
47 return *this;
48 }
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) {
58 m_elapsedTimeMillisHasBeenSet = true;
59 m_elapsedTimeMillis = value;
60 }
61 inline ReplicationStats& WithElapsedTimeMillis(long long value) {
63 return *this;
64 }
66
68
71 inline int GetTablesLoaded() const { return m_tablesLoaded; }
72 inline bool TablesLoadedHasBeenSet() const { return m_tablesLoadedHasBeenSet; }
73 inline void SetTablesLoaded(int value) {
74 m_tablesLoadedHasBeenSet = true;
75 m_tablesLoaded = value;
76 }
78 SetTablesLoaded(value);
79 return *this;
80 }
82
84
87 inline int GetTablesLoading() const { return m_tablesLoading; }
88 inline bool TablesLoadingHasBeenSet() const { return m_tablesLoadingHasBeenSet; }
89 inline void SetTablesLoading(int value) {
90 m_tablesLoadingHasBeenSet = true;
91 m_tablesLoading = value;
92 }
94 SetTablesLoading(value);
95 return *this;
96 }
98
100
103 inline int GetTablesQueued() const { return m_tablesQueued; }
104 inline bool TablesQueuedHasBeenSet() const { return m_tablesQueuedHasBeenSet; }
105 inline void SetTablesQueued(int value) {
106 m_tablesQueuedHasBeenSet = true;
107 m_tablesQueued = value;
108 }
110 SetTablesQueued(value);
111 return *this;
112 }
114
116
119 inline int GetTablesErrored() const { return m_tablesErrored; }
120 inline bool TablesErroredHasBeenSet() const { return m_tablesErroredHasBeenSet; }
121 inline void SetTablesErrored(int value) {
122 m_tablesErroredHasBeenSet = true;
123 m_tablesErrored = value;
124 }
126 SetTablesErrored(value);
127 return *this;
128 }
130
132
136 inline const Aws::Utils::DateTime& GetFreshStartDate() const { return m_freshStartDate; }
137 inline bool FreshStartDateHasBeenSet() const { return m_freshStartDateHasBeenSet; }
138 template <typename FreshStartDateT = Aws::Utils::DateTime>
139 void SetFreshStartDate(FreshStartDateT&& value) {
140 m_freshStartDateHasBeenSet = true;
141 m_freshStartDate = std::forward<FreshStartDateT>(value);
142 }
143 template <typename FreshStartDateT = Aws::Utils::DateTime>
144 ReplicationStats& WithFreshStartDate(FreshStartDateT&& value) {
145 SetFreshStartDate(std::forward<FreshStartDateT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
155 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
156 template <typename StartDateT = Aws::Utils::DateTime>
157 void SetStartDate(StartDateT&& value) {
158 m_startDateHasBeenSet = true;
159 m_startDate = std::forward<StartDateT>(value);
160 }
161 template <typename StartDateT = Aws::Utils::DateTime>
162 ReplicationStats& WithStartDate(StartDateT&& value) {
163 SetStartDate(std::forward<StartDateT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetStopDate() const { return m_stopDate; }
173 inline bool StopDateHasBeenSet() const { return m_stopDateHasBeenSet; }
174 template <typename StopDateT = Aws::Utils::DateTime>
175 void SetStopDate(StopDateT&& value) {
176 m_stopDateHasBeenSet = true;
177 m_stopDate = std::forward<StopDateT>(value);
178 }
179 template <typename StopDateT = Aws::Utils::DateTime>
180 ReplicationStats& WithStopDate(StopDateT&& value) {
181 SetStopDate(std::forward<StopDateT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetFullLoadStartDate() const { return m_fullLoadStartDate; }
191 inline bool FullLoadStartDateHasBeenSet() const { return m_fullLoadStartDateHasBeenSet; }
192 template <typename FullLoadStartDateT = Aws::Utils::DateTime>
193 void SetFullLoadStartDate(FullLoadStartDateT&& value) {
194 m_fullLoadStartDateHasBeenSet = true;
195 m_fullLoadStartDate = std::forward<FullLoadStartDateT>(value);
196 }
197 template <typename FullLoadStartDateT = Aws::Utils::DateTime>
198 ReplicationStats& WithFullLoadStartDate(FullLoadStartDateT&& value) {
199 SetFullLoadStartDate(std::forward<FullLoadStartDateT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetFullLoadFinishDate() const { return m_fullLoadFinishDate; }
209 inline bool FullLoadFinishDateHasBeenSet() const { return m_fullLoadFinishDateHasBeenSet; }
210 template <typename FullLoadFinishDateT = Aws::Utils::DateTime>
211 void SetFullLoadFinishDate(FullLoadFinishDateT&& value) {
212 m_fullLoadFinishDateHasBeenSet = true;
213 m_fullLoadFinishDate = std::forward<FullLoadFinishDateT>(value);
214 }
215 template <typename FullLoadFinishDateT = Aws::Utils::DateTime>
216 ReplicationStats& WithFullLoadFinishDate(FullLoadFinishDateT&& value) {
217 SetFullLoadFinishDate(std::forward<FullLoadFinishDateT>(value));
218 return *this;
219 }
221 private:
222 int m_fullLoadProgressPercent{0};
223
224 long long m_elapsedTimeMillis{0};
225
226 int m_tablesLoaded{0};
227
228 int m_tablesLoading{0};
229
230 int m_tablesQueued{0};
231
232 int m_tablesErrored{0};
233
234 Aws::Utils::DateTime m_freshStartDate{};
235
236 Aws::Utils::DateTime m_startDate{};
237
238 Aws::Utils::DateTime m_stopDate{};
239
240 Aws::Utils::DateTime m_fullLoadStartDate{};
241
242 Aws::Utils::DateTime m_fullLoadFinishDate{};
243 bool m_fullLoadProgressPercentHasBeenSet = false;
244 bool m_elapsedTimeMillisHasBeenSet = false;
245 bool m_tablesLoadedHasBeenSet = false;
246 bool m_tablesLoadingHasBeenSet = false;
247 bool m_tablesQueuedHasBeenSet = false;
248 bool m_tablesErroredHasBeenSet = false;
249 bool m_freshStartDateHasBeenSet = false;
250 bool m_startDateHasBeenSet = false;
251 bool m_stopDateHasBeenSet = false;
252 bool m_fullLoadStartDateHasBeenSet = false;
253 bool m_fullLoadFinishDateHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace DatabaseMigrationService
258} // 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