AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TableRestoreStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/TableRestoreStatusType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API TableRestoreStatus() = default;
33 AWS_REDSHIFT_API TableRestoreStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API TableRestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetTableRestoreRequestId() const { return m_tableRestoreRequestId; }
44 inline bool TableRestoreRequestIdHasBeenSet() const { return m_tableRestoreRequestIdHasBeenSet; }
45 template <typename TableRestoreRequestIdT = Aws::String>
46 void SetTableRestoreRequestId(TableRestoreRequestIdT&& value) {
47 m_tableRestoreRequestIdHasBeenSet = true;
48 m_tableRestoreRequestId = std::forward<TableRestoreRequestIdT>(value);
49 }
50 template <typename TableRestoreRequestIdT = Aws::String>
51 TableRestoreStatus& WithTableRestoreRequestId(TableRestoreRequestIdT&& value) {
52 SetTableRestoreRequestId(std::forward<TableRestoreRequestIdT>(value));
53 return *this;
54 }
56
58
63 inline TableRestoreStatusType GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(TableRestoreStatusType value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetMessage() const { return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 template <typename MessageT = Aws::String>
84 void SetMessage(MessageT&& value) {
85 m_messageHasBeenSet = true;
86 m_message = std::forward<MessageT>(value);
87 }
88 template <typename MessageT = Aws::String>
89 TableRestoreStatus& WithMessage(MessageT&& value) {
90 SetMessage(std::forward<MessageT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
101 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
102 template <typename RequestTimeT = Aws::Utils::DateTime>
103 void SetRequestTime(RequestTimeT&& value) {
104 m_requestTimeHasBeenSet = true;
105 m_requestTime = std::forward<RequestTimeT>(value);
106 }
107 template <typename RequestTimeT = Aws::Utils::DateTime>
108 TableRestoreStatus& WithRequestTime(RequestTimeT&& value) {
109 SetRequestTime(std::forward<RequestTimeT>(value));
110 return *this;
111 }
113
115
118 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
119 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
120 inline void SetProgressInMegaBytes(long long value) {
121 m_progressInMegaBytesHasBeenSet = true;
122 m_progressInMegaBytes = value;
123 }
126 return *this;
127 }
129
131
134 inline long long GetTotalDataInMegaBytes() const { return m_totalDataInMegaBytes; }
135 inline bool TotalDataInMegaBytesHasBeenSet() const { return m_totalDataInMegaBytesHasBeenSet; }
136 inline void SetTotalDataInMegaBytes(long long value) {
137 m_totalDataInMegaBytesHasBeenSet = true;
138 m_totalDataInMegaBytes = value;
139 }
142 return *this;
143 }
145
147
151 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
152 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
153 template <typename ClusterIdentifierT = Aws::String>
154 void SetClusterIdentifier(ClusterIdentifierT&& value) {
155 m_clusterIdentifierHasBeenSet = true;
156 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
157 }
158 template <typename ClusterIdentifierT = Aws::String>
159 TableRestoreStatus& WithClusterIdentifier(ClusterIdentifierT&& value) {
160 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
170 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
171 template <typename SnapshotIdentifierT = Aws::String>
172 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
173 m_snapshotIdentifierHasBeenSet = true;
174 m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
175 }
176 template <typename SnapshotIdentifierT = Aws::String>
177 TableRestoreStatus& WithSnapshotIdentifier(SnapshotIdentifierT&& value) {
178 SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetSourceDatabaseName() const { return m_sourceDatabaseName; }
188 inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; }
189 template <typename SourceDatabaseNameT = Aws::String>
190 void SetSourceDatabaseName(SourceDatabaseNameT&& value) {
191 m_sourceDatabaseNameHasBeenSet = true;
192 m_sourceDatabaseName = std::forward<SourceDatabaseNameT>(value);
193 }
194 template <typename SourceDatabaseNameT = Aws::String>
195 TableRestoreStatus& WithSourceDatabaseName(SourceDatabaseNameT&& value) {
196 SetSourceDatabaseName(std::forward<SourceDatabaseNameT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetSourceSchemaName() const { return m_sourceSchemaName; }
206 inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; }
207 template <typename SourceSchemaNameT = Aws::String>
208 void SetSourceSchemaName(SourceSchemaNameT&& value) {
209 m_sourceSchemaNameHasBeenSet = true;
210 m_sourceSchemaName = std::forward<SourceSchemaNameT>(value);
211 }
212 template <typename SourceSchemaNameT = Aws::String>
213 TableRestoreStatus& WithSourceSchemaName(SourceSchemaNameT&& value) {
214 SetSourceSchemaName(std::forward<SourceSchemaNameT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::String& GetSourceTableName() const { return m_sourceTableName; }
224 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
225 template <typename SourceTableNameT = Aws::String>
226 void SetSourceTableName(SourceTableNameT&& value) {
227 m_sourceTableNameHasBeenSet = true;
228 m_sourceTableName = std::forward<SourceTableNameT>(value);
229 }
230 template <typename SourceTableNameT = Aws::String>
231 TableRestoreStatus& WithSourceTableName(SourceTableNameT&& value) {
232 SetSourceTableName(std::forward<SourceTableNameT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetTargetDatabaseName() const { return m_targetDatabaseName; }
242 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
243 template <typename TargetDatabaseNameT = Aws::String>
244 void SetTargetDatabaseName(TargetDatabaseNameT&& value) {
245 m_targetDatabaseNameHasBeenSet = true;
246 m_targetDatabaseName = std::forward<TargetDatabaseNameT>(value);
247 }
248 template <typename TargetDatabaseNameT = Aws::String>
249 TableRestoreStatus& WithTargetDatabaseName(TargetDatabaseNameT&& value) {
250 SetTargetDatabaseName(std::forward<TargetDatabaseNameT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetTargetSchemaName() const { return m_targetSchemaName; }
260 inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; }
261 template <typename TargetSchemaNameT = Aws::String>
262 void SetTargetSchemaName(TargetSchemaNameT&& value) {
263 m_targetSchemaNameHasBeenSet = true;
264 m_targetSchemaName = std::forward<TargetSchemaNameT>(value);
265 }
266 template <typename TargetSchemaNameT = Aws::String>
267 TableRestoreStatus& WithTargetSchemaName(TargetSchemaNameT&& value) {
268 SetTargetSchemaName(std::forward<TargetSchemaNameT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::String& GetNewTableName() const { return m_newTableName; }
278 inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; }
279 template <typename NewTableNameT = Aws::String>
280 void SetNewTableName(NewTableNameT&& value) {
281 m_newTableNameHasBeenSet = true;
282 m_newTableName = std::forward<NewTableNameT>(value);
283 }
284 template <typename NewTableNameT = Aws::String>
285 TableRestoreStatus& WithNewTableName(NewTableNameT&& value) {
286 SetNewTableName(std::forward<NewTableNameT>(value));
287 return *this;
288 }
290 private:
291 Aws::String m_tableRestoreRequestId;
292
294
295 Aws::String m_message;
296
297 Aws::Utils::DateTime m_requestTime{};
298
299 long long m_progressInMegaBytes{0};
300
301 long long m_totalDataInMegaBytes{0};
302
303 Aws::String m_clusterIdentifier;
304
305 Aws::String m_snapshotIdentifier;
306
307 Aws::String m_sourceDatabaseName;
308
309 Aws::String m_sourceSchemaName;
310
311 Aws::String m_sourceTableName;
312
313 Aws::String m_targetDatabaseName;
314
315 Aws::String m_targetSchemaName;
316
317 Aws::String m_newTableName;
318 bool m_tableRestoreRequestIdHasBeenSet = false;
319 bool m_statusHasBeenSet = false;
320 bool m_messageHasBeenSet = false;
321 bool m_requestTimeHasBeenSet = false;
322 bool m_progressInMegaBytesHasBeenSet = false;
323 bool m_totalDataInMegaBytesHasBeenSet = false;
324 bool m_clusterIdentifierHasBeenSet = false;
325 bool m_snapshotIdentifierHasBeenSet = false;
326 bool m_sourceDatabaseNameHasBeenSet = false;
327 bool m_sourceSchemaNameHasBeenSet = false;
328 bool m_sourceTableNameHasBeenSet = false;
329 bool m_targetDatabaseNameHasBeenSet = false;
330 bool m_targetSchemaNameHasBeenSet = false;
331 bool m_newTableNameHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace Redshift
336} // namespace Aws
TableRestoreStatus & WithRequestTime(RequestTimeT &&value)
AWS_REDSHIFT_API TableRestoreStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TableRestoreStatusType GetStatus() const
const Aws::String & GetTableRestoreRequestId() const
void SetSourceDatabaseName(SourceDatabaseNameT &&value)
const Aws::String & GetSourceDatabaseName() const
void SetSnapshotIdentifier(SnapshotIdentifierT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TableRestoreStatus & WithTargetSchemaName(TargetSchemaNameT &&value)
TableRestoreStatus & WithSourceTableName(SourceTableNameT &&value)
TableRestoreStatus & WithMessage(MessageT &&value)
const Aws::String & GetSnapshotIdentifier() const
void SetStatus(TableRestoreStatusType value)
TableRestoreStatus & WithSourceDatabaseName(SourceDatabaseNameT &&value)
TableRestoreStatus & WithTotalDataInMegaBytes(long long value)
TableRestoreStatus & WithNewTableName(NewTableNameT &&value)
const Aws::String & GetTargetDatabaseName() const
TableRestoreStatus & WithClusterIdentifier(ClusterIdentifierT &&value)
void SetTargetSchemaName(TargetSchemaNameT &&value)
void SetSourceTableName(SourceTableNameT &&value)
const Aws::String & GetClusterIdentifier() const
void SetNewTableName(NewTableNameT &&value)
const Aws::String & GetSourceTableName() const
TableRestoreStatus & WithStatus(TableRestoreStatusType value)
const Aws::Utils::DateTime & GetRequestTime() const
const Aws::String & GetTargetSchemaName() const
TableRestoreStatus & WithSourceSchemaName(SourceSchemaNameT &&value)
AWS_REDSHIFT_API TableRestoreStatus()=default
TableRestoreStatus & WithProgressInMegaBytes(long long value)
const Aws::String & GetSourceSchemaName() const
void SetClusterIdentifier(ClusterIdentifierT &&value)
void SetTargetDatabaseName(TargetDatabaseNameT &&value)
TableRestoreStatus & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
TableRestoreStatus & WithTableRestoreRequestId(TableRestoreRequestIdT &&value)
void SetSourceSchemaName(SourceSchemaNameT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TableRestoreStatus & WithTargetDatabaseName(TargetDatabaseNameT &&value)
AWS_REDSHIFT_API TableRestoreStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetNewTableName() const
void SetTableRestoreRequestId(TableRestoreRequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream