AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TableRestoreStatus.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/TableRestoreStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REDSHIFT_API TableRestoreStatus();
38 AWS_REDSHIFT_API TableRestoreStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API TableRestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetTableRestoreRequestId() const{ return m_tableRestoreRequestId; }
50 inline bool TableRestoreRequestIdHasBeenSet() const { return m_tableRestoreRequestIdHasBeenSet; }
51 inline void SetTableRestoreRequestId(const Aws::String& value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId = value; }
52 inline void SetTableRestoreRequestId(Aws::String&& value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId = std::move(value); }
53 inline void SetTableRestoreRequestId(const char* value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId.assign(value); }
55 inline TableRestoreStatus& WithTableRestoreRequestId(Aws::String&& value) { SetTableRestoreRequestId(std::move(value)); return *this;}
56 inline TableRestoreStatus& WithTableRestoreRequestId(const char* value) { SetTableRestoreRequestId(value); return *this;}
58
60
65 inline const TableRestoreStatusType& GetStatus() const{ return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(const TableRestoreStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
68 inline void SetStatus(TableRestoreStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
69 inline TableRestoreStatus& WithStatus(const TableRestoreStatusType& value) { SetStatus(value); return *this;}
70 inline TableRestoreStatus& WithStatus(TableRestoreStatusType&& value) { SetStatus(std::move(value)); return *this;}
72
74
79 inline const Aws::String& GetMessage() const{ return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
82 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
83 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
84 inline TableRestoreStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
85 inline TableRestoreStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 inline TableRestoreStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; }
95 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
96 inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
97 inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); }
98 inline TableRestoreStatus& WithRequestTime(const Aws::Utils::DateTime& value) { SetRequestTime(value); return *this;}
99 inline TableRestoreStatus& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;}
101
103
106 inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; }
107 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
108 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
109 inline TableRestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
111
113
116 inline long long GetTotalDataInMegaBytes() const{ return m_totalDataInMegaBytes; }
117 inline bool TotalDataInMegaBytesHasBeenSet() const { return m_totalDataInMegaBytesHasBeenSet; }
118 inline void SetTotalDataInMegaBytes(long long value) { m_totalDataInMegaBytesHasBeenSet = true; m_totalDataInMegaBytes = value; }
119 inline TableRestoreStatus& WithTotalDataInMegaBytes(long long value) { SetTotalDataInMegaBytes(value); return *this;}
121
123
127 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
128 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
129 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
130 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
131 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
132 inline TableRestoreStatus& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
133 inline TableRestoreStatus& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
134 inline TableRestoreStatus& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
136
138
141 inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
142 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
143 inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
144 inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
145 inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
146 inline TableRestoreStatus& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
147 inline TableRestoreStatus& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
148 inline TableRestoreStatus& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
150
152
155 inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; }
156 inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; }
157 inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
158 inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = std::move(value); }
159 inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); }
160 inline TableRestoreStatus& WithSourceDatabaseName(const Aws::String& value) { SetSourceDatabaseName(value); return *this;}
161 inline TableRestoreStatus& WithSourceDatabaseName(Aws::String&& value) { SetSourceDatabaseName(std::move(value)); return *this;}
162 inline TableRestoreStatus& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;}
164
166
169 inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; }
170 inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; }
171 inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
172 inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = std::move(value); }
173 inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); }
174 inline TableRestoreStatus& WithSourceSchemaName(const Aws::String& value) { SetSourceSchemaName(value); return *this;}
175 inline TableRestoreStatus& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(std::move(value)); return *this;}
176 inline TableRestoreStatus& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;}
178
180
183 inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
184 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
185 inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
186 inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::move(value); }
187 inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
188 inline TableRestoreStatus& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;}
189 inline TableRestoreStatus& WithSourceTableName(Aws::String&& value) { SetSourceTableName(std::move(value)); return *this;}
190 inline TableRestoreStatus& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
192
194
197 inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; }
198 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
199 inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
200 inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::move(value); }
201 inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); }
202 inline TableRestoreStatus& WithTargetDatabaseName(const Aws::String& value) { SetTargetDatabaseName(value); return *this;}
203 inline TableRestoreStatus& WithTargetDatabaseName(Aws::String&& value) { SetTargetDatabaseName(std::move(value)); return *this;}
204 inline TableRestoreStatus& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;}
206
208
211 inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; }
212 inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; }
213 inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
214 inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = std::move(value); }
215 inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); }
216 inline TableRestoreStatus& WithTargetSchemaName(const Aws::String& value) { SetTargetSchemaName(value); return *this;}
217 inline TableRestoreStatus& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(std::move(value)); return *this;}
218 inline TableRestoreStatus& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;}
220
222
225 inline const Aws::String& GetNewTableName() const{ return m_newTableName; }
226 inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; }
227 inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
228 inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = std::move(value); }
229 inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); }
230 inline TableRestoreStatus& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;}
231 inline TableRestoreStatus& WithNewTableName(Aws::String&& value) { SetNewTableName(std::move(value)); return *this;}
232 inline TableRestoreStatus& WithNewTableName(const char* value) { SetNewTableName(value); return *this;}
234 private:
235
236 Aws::String m_tableRestoreRequestId;
237 bool m_tableRestoreRequestIdHasBeenSet = false;
238
239 TableRestoreStatusType m_status;
240 bool m_statusHasBeenSet = false;
241
242 Aws::String m_message;
243 bool m_messageHasBeenSet = false;
244
245 Aws::Utils::DateTime m_requestTime;
246 bool m_requestTimeHasBeenSet = false;
247
248 long long m_progressInMegaBytes;
249 bool m_progressInMegaBytesHasBeenSet = false;
250
251 long long m_totalDataInMegaBytes;
252 bool m_totalDataInMegaBytesHasBeenSet = false;
253
254 Aws::String m_clusterIdentifier;
255 bool m_clusterIdentifierHasBeenSet = false;
256
257 Aws::String m_snapshotIdentifier;
258 bool m_snapshotIdentifierHasBeenSet = false;
259
260 Aws::String m_sourceDatabaseName;
261 bool m_sourceDatabaseNameHasBeenSet = false;
262
263 Aws::String m_sourceSchemaName;
264 bool m_sourceSchemaNameHasBeenSet = false;
265
266 Aws::String m_sourceTableName;
267 bool m_sourceTableNameHasBeenSet = false;
268
269 Aws::String m_targetDatabaseName;
270 bool m_targetDatabaseNameHasBeenSet = false;
271
272 Aws::String m_targetSchemaName;
273 bool m_targetSchemaNameHasBeenSet = false;
274
275 Aws::String m_newTableName;
276 bool m_newTableNameHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace Redshift
281} // namespace Aws
TableRestoreStatus & WithMessage(const char *value)
void SetStatus(TableRestoreStatusType &&value)
AWS_REDSHIFT_API TableRestoreStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TableRestoreStatus & WithNewTableName(Aws::String &&value)
void SetSnapshotIdentifier(const Aws::String &value)
void SetNewTableName(const Aws::String &value)
const Aws::String & GetTableRestoreRequestId() const
const Aws::String & GetSourceDatabaseName() const
TableRestoreStatus & WithClusterIdentifier(const char *value)
void SetTargetDatabaseName(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSnapshotIdentifier() const
TableRestoreStatus & WithTableRestoreRequestId(const Aws::String &value)
TableRestoreStatus & WithNewTableName(const Aws::String &value)
TableRestoreStatus & WithSnapshotIdentifier(Aws::String &&value)
TableRestoreStatus & WithTotalDataInMegaBytes(long long value)
void SetSourceTableName(const Aws::String &value)
const Aws::String & GetTargetDatabaseName() const
void SetClusterIdentifier(const Aws::String &value)
TableRestoreStatus & WithNewTableName(const char *value)
TableRestoreStatus & WithSourceTableName(const Aws::String &value)
void SetRequestTime(Aws::Utils::DateTime &&value)
TableRestoreStatus & WithSourceSchemaName(const Aws::String &value)
void SetSourceSchemaName(const Aws::String &value)
const Aws::String & GetClusterIdentifier() const
TableRestoreStatus & WithClusterIdentifier(Aws::String &&value)
TableRestoreStatus & WithStatus(const TableRestoreStatusType &value)
TableRestoreStatus & WithSourceSchemaName(const char *value)
TableRestoreStatus & WithTargetDatabaseName(const Aws::String &value)
const Aws::String & GetSourceTableName() const
TableRestoreStatus & WithTargetSchemaName(const Aws::String &value)
void SetTargetSchemaName(const Aws::String &value)
void SetSourceDatabaseName(Aws::String &&value)
const Aws::Utils::DateTime & GetRequestTime() const
const TableRestoreStatusType & GetStatus() const
TableRestoreStatus & WithMessage(const Aws::String &value)
const Aws::String & GetTargetSchemaName() const
TableRestoreStatus & WithSourceTableName(Aws::String &&value)
TableRestoreStatus & WithTargetDatabaseName(const char *value)
TableRestoreStatus & WithClusterIdentifier(const Aws::String &value)
TableRestoreStatus & WithTableRestoreRequestId(const char *value)
void SetTableRestoreRequestId(Aws::String &&value)
TableRestoreStatus & WithProgressInMegaBytes(long long value)
void SetSnapshotIdentifier(Aws::String &&value)
TableRestoreStatus & WithStatus(TableRestoreStatusType &&value)
TableRestoreStatus & WithMessage(Aws::String &&value)
TableRestoreStatus & WithSourceSchemaName(Aws::String &&value)
const Aws::String & GetSourceSchemaName() const
TableRestoreStatus & WithSourceTableName(const char *value)
void SetTargetDatabaseName(Aws::String &&value)
TableRestoreStatus & WithTargetSchemaName(Aws::String &&value)
void SetTableRestoreRequestId(const Aws::String &value)
TableRestoreStatus & WithTargetDatabaseName(Aws::String &&value)
void SetStatus(const TableRestoreStatusType &value)
TableRestoreStatus & WithSourceDatabaseName(const char *value)
TableRestoreStatus & WithSourceDatabaseName(const Aws::String &value)
TableRestoreStatus & WithRequestTime(Aws::Utils::DateTime &&value)
TableRestoreStatus & WithSnapshotIdentifier(const char *value)
TableRestoreStatus & WithTableRestoreRequestId(Aws::String &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceDatabaseName(const Aws::String &value)
TableRestoreStatus & WithRequestTime(const Aws::Utils::DateTime &value)
void SetRequestTime(const Aws::Utils::DateTime &value)
TableRestoreStatus & WithSnapshotIdentifier(const Aws::String &value)
TableRestoreStatus & WithTargetSchemaName(const char *value)
AWS_REDSHIFT_API TableRestoreStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetNewTableName() const
TableRestoreStatus & WithSourceDatabaseName(Aws::String &&value)
void SetMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream