AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ReplicationTaskStats.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
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetFullLoadProgressPercent() const { return m_fullLoadProgressPercent; }
41 inline bool FullLoadProgressPercentHasBeenSet() const { return m_fullLoadProgressPercentHasBeenSet; }
42 inline void SetFullLoadProgressPercent(int value) {
43 m_fullLoadProgressPercentHasBeenSet = true;
44 m_fullLoadProgressPercent = value;
45 }
48 return *this;
49 }
51
53
56 inline long long GetElapsedTimeMillis() const { return m_elapsedTimeMillis; }
57 inline bool ElapsedTimeMillisHasBeenSet() const { return m_elapsedTimeMillisHasBeenSet; }
58 inline void SetElapsedTimeMillis(long long value) {
59 m_elapsedTimeMillisHasBeenSet = true;
60 m_elapsedTimeMillis = value;
61 }
64 return *this;
65 }
67
69
72 inline int GetTablesLoaded() const { return m_tablesLoaded; }
73 inline bool TablesLoadedHasBeenSet() const { return m_tablesLoadedHasBeenSet; }
74 inline void SetTablesLoaded(int value) {
75 m_tablesLoadedHasBeenSet = true;
76 m_tablesLoaded = value;
77 }
79 SetTablesLoaded(value);
80 return *this;
81 }
83
85
88 inline int GetTablesLoading() const { return m_tablesLoading; }
89 inline bool TablesLoadingHasBeenSet() const { return m_tablesLoadingHasBeenSet; }
90 inline void SetTablesLoading(int value) {
91 m_tablesLoadingHasBeenSet = true;
92 m_tablesLoading = value;
93 }
95 SetTablesLoading(value);
96 return *this;
97 }
99
101
104 inline int GetTablesQueued() const { return m_tablesQueued; }
105 inline bool TablesQueuedHasBeenSet() const { return m_tablesQueuedHasBeenSet; }
106 inline void SetTablesQueued(int value) {
107 m_tablesQueuedHasBeenSet = true;
108 m_tablesQueued = value;
109 }
111 SetTablesQueued(value);
112 return *this;
113 }
115
117
120 inline int GetTablesErrored() const { return m_tablesErrored; }
121 inline bool TablesErroredHasBeenSet() const { return m_tablesErroredHasBeenSet; }
122 inline void SetTablesErrored(int value) {
123 m_tablesErroredHasBeenSet = true;
124 m_tablesErrored = value;
125 }
127 SetTablesErrored(value);
128 return *this;
129 }
131
133
137 inline const Aws::Utils::DateTime& GetFreshStartDate() const { return m_freshStartDate; }
138 inline bool FreshStartDateHasBeenSet() const { return m_freshStartDateHasBeenSet; }
139 template <typename FreshStartDateT = Aws::Utils::DateTime>
140 void SetFreshStartDate(FreshStartDateT&& value) {
141 m_freshStartDateHasBeenSet = true;
142 m_freshStartDate = std::forward<FreshStartDateT>(value);
143 }
144 template <typename FreshStartDateT = Aws::Utils::DateTime>
145 ReplicationTaskStats& WithFreshStartDate(FreshStartDateT&& value) {
146 SetFreshStartDate(std::forward<FreshStartDateT>(value));
147 return *this;
148 }
150
152
157 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
158 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
159 template <typename StartDateT = Aws::Utils::DateTime>
160 void SetStartDate(StartDateT&& value) {
161 m_startDateHasBeenSet = true;
162 m_startDate = std::forward<StartDateT>(value);
163 }
164 template <typename StartDateT = Aws::Utils::DateTime>
165 ReplicationTaskStats& WithStartDate(StartDateT&& value) {
166 SetStartDate(std::forward<StartDateT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetStopDate() const { return m_stopDate; }
176 inline bool StopDateHasBeenSet() const { return m_stopDateHasBeenSet; }
177 template <typename StopDateT = Aws::Utils::DateTime>
178 void SetStopDate(StopDateT&& value) {
179 m_stopDateHasBeenSet = true;
180 m_stopDate = std::forward<StopDateT>(value);
181 }
182 template <typename StopDateT = Aws::Utils::DateTime>
183 ReplicationTaskStats& WithStopDate(StopDateT&& value) {
184 SetStopDate(std::forward<StopDateT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetFullLoadStartDate() const { return m_fullLoadStartDate; }
194 inline bool FullLoadStartDateHasBeenSet() const { return m_fullLoadStartDateHasBeenSet; }
195 template <typename FullLoadStartDateT = Aws::Utils::DateTime>
196 void SetFullLoadStartDate(FullLoadStartDateT&& value) {
197 m_fullLoadStartDateHasBeenSet = true;
198 m_fullLoadStartDate = std::forward<FullLoadStartDateT>(value);
199 }
200 template <typename FullLoadStartDateT = Aws::Utils::DateTime>
201 ReplicationTaskStats& WithFullLoadStartDate(FullLoadStartDateT&& value) {
202 SetFullLoadStartDate(std::forward<FullLoadStartDateT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetFullLoadFinishDate() const { return m_fullLoadFinishDate; }
212 inline bool FullLoadFinishDateHasBeenSet() const { return m_fullLoadFinishDateHasBeenSet; }
213 template <typename FullLoadFinishDateT = Aws::Utils::DateTime>
214 void SetFullLoadFinishDate(FullLoadFinishDateT&& value) {
215 m_fullLoadFinishDateHasBeenSet = true;
216 m_fullLoadFinishDate = std::forward<FullLoadFinishDateT>(value);
217 }
218 template <typename FullLoadFinishDateT = Aws::Utils::DateTime>
219 ReplicationTaskStats& WithFullLoadFinishDate(FullLoadFinishDateT&& value) {
220 SetFullLoadFinishDate(std::forward<FullLoadFinishDateT>(value));
221 return *this;
222 }
224 private:
225 int m_fullLoadProgressPercent{0};
226
227 long long m_elapsedTimeMillis{0};
228
229 int m_tablesLoaded{0};
230
231 int m_tablesLoading{0};
232
233 int m_tablesQueued{0};
234
235 int m_tablesErrored{0};
236
237 Aws::Utils::DateTime m_freshStartDate{};
238
239 Aws::Utils::DateTime m_startDate{};
240
241 Aws::Utils::DateTime m_stopDate{};
242
243 Aws::Utils::DateTime m_fullLoadStartDate{};
244
245 Aws::Utils::DateTime m_fullLoadFinishDate{};
246 bool m_fullLoadProgressPercentHasBeenSet = false;
247 bool m_elapsedTimeMillisHasBeenSet = false;
248 bool m_tablesLoadedHasBeenSet = false;
249 bool m_tablesLoadingHasBeenSet = false;
250 bool m_tablesQueuedHasBeenSet = false;
251 bool m_tablesErroredHasBeenSet = false;
252 bool m_freshStartDateHasBeenSet = false;
253 bool m_startDateHasBeenSet = false;
254 bool m_stopDateHasBeenSet = false;
255 bool m_fullLoadStartDateHasBeenSet = false;
256 bool m_fullLoadFinishDateHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace DatabaseMigrationService
261} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats()=default
ReplicationTaskStats & WithStartDate(StartDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats(Aws::Utils::Json::JsonView jsonValue)
ReplicationTaskStats & WithFreshStartDate(FreshStartDateT &&value)
ReplicationTaskStats & WithFullLoadFinishDate(FullLoadFinishDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationTaskStats & WithFullLoadStartDate(FullLoadStartDateT &&value)
ReplicationTaskStats & WithElapsedTimeMillis(long long value)
Aws::Utils::Json::JsonValue JsonValue