AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TableRestoreRequestIdT = Aws::String>
52 void SetTableRestoreRequestId(TableRestoreRequestIdT&& value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId = std::forward<TableRestoreRequestIdT>(value); }
53 template<typename TableRestoreRequestIdT = Aws::String>
54 TableRestoreStatus& WithTableRestoreRequestId(TableRestoreRequestIdT&& value) { SetTableRestoreRequestId(std::forward<TableRestoreRequestIdT>(value)); return *this;}
56
58
63 inline TableRestoreStatusType GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(TableRestoreStatusType value) { m_statusHasBeenSet = true; m_status = value; }
66 inline TableRestoreStatus& WithStatus(TableRestoreStatusType value) { SetStatus(value); return *this;}
68
70
75 inline const Aws::String& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template<typename MessageT = Aws::String>
78 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
79 template<typename MessageT = Aws::String>
80 TableRestoreStatus& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
89 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
90 template<typename RequestTimeT = Aws::Utils::DateTime>
91 void SetRequestTime(RequestTimeT&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::forward<RequestTimeT>(value); }
92 template<typename RequestTimeT = Aws::Utils::DateTime>
93 TableRestoreStatus& WithRequestTime(RequestTimeT&& value) { SetRequestTime(std::forward<RequestTimeT>(value)); return *this;}
95
97
100 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
101 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
102 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
103 inline TableRestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
105
107
110 inline long long GetTotalDataInMegaBytes() const { return m_totalDataInMegaBytes; }
111 inline bool TotalDataInMegaBytesHasBeenSet() const { return m_totalDataInMegaBytesHasBeenSet; }
112 inline void SetTotalDataInMegaBytes(long long value) { m_totalDataInMegaBytesHasBeenSet = true; m_totalDataInMegaBytes = value; }
113 inline TableRestoreStatus& WithTotalDataInMegaBytes(long long value) { SetTotalDataInMegaBytes(value); return *this;}
115
117
121 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
122 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
123 template<typename ClusterIdentifierT = Aws::String>
124 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
125 template<typename ClusterIdentifierT = Aws::String>
126 TableRestoreStatus& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
128
130
133 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
134 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
135 template<typename SnapshotIdentifierT = Aws::String>
136 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
137 template<typename SnapshotIdentifierT = Aws::String>
138 TableRestoreStatus& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
140
142
145 inline const Aws::String& GetSourceDatabaseName() const { return m_sourceDatabaseName; }
146 inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; }
147 template<typename SourceDatabaseNameT = Aws::String>
148 void SetSourceDatabaseName(SourceDatabaseNameT&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = std::forward<SourceDatabaseNameT>(value); }
149 template<typename SourceDatabaseNameT = Aws::String>
150 TableRestoreStatus& WithSourceDatabaseName(SourceDatabaseNameT&& value) { SetSourceDatabaseName(std::forward<SourceDatabaseNameT>(value)); return *this;}
152
154
157 inline const Aws::String& GetSourceSchemaName() const { return m_sourceSchemaName; }
158 inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; }
159 template<typename SourceSchemaNameT = Aws::String>
160 void SetSourceSchemaName(SourceSchemaNameT&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = std::forward<SourceSchemaNameT>(value); }
161 template<typename SourceSchemaNameT = Aws::String>
162 TableRestoreStatus& WithSourceSchemaName(SourceSchemaNameT&& value) { SetSourceSchemaName(std::forward<SourceSchemaNameT>(value)); return *this;}
164
166
169 inline const Aws::String& GetSourceTableName() const { return m_sourceTableName; }
170 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
171 template<typename SourceTableNameT = Aws::String>
172 void SetSourceTableName(SourceTableNameT&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::forward<SourceTableNameT>(value); }
173 template<typename SourceTableNameT = Aws::String>
174 TableRestoreStatus& WithSourceTableName(SourceTableNameT&& value) { SetSourceTableName(std::forward<SourceTableNameT>(value)); return *this;}
176
178
181 inline const Aws::String& GetTargetDatabaseName() const { return m_targetDatabaseName; }
182 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
183 template<typename TargetDatabaseNameT = Aws::String>
184 void SetTargetDatabaseName(TargetDatabaseNameT&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::forward<TargetDatabaseNameT>(value); }
185 template<typename TargetDatabaseNameT = Aws::String>
186 TableRestoreStatus& WithTargetDatabaseName(TargetDatabaseNameT&& value) { SetTargetDatabaseName(std::forward<TargetDatabaseNameT>(value)); return *this;}
188
190
193 inline const Aws::String& GetTargetSchemaName() const { return m_targetSchemaName; }
194 inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; }
195 template<typename TargetSchemaNameT = Aws::String>
196 void SetTargetSchemaName(TargetSchemaNameT&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = std::forward<TargetSchemaNameT>(value); }
197 template<typename TargetSchemaNameT = Aws::String>
198 TableRestoreStatus& WithTargetSchemaName(TargetSchemaNameT&& value) { SetTargetSchemaName(std::forward<TargetSchemaNameT>(value)); return *this;}
200
202
205 inline const Aws::String& GetNewTableName() const { return m_newTableName; }
206 inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; }
207 template<typename NewTableNameT = Aws::String>
208 void SetNewTableName(NewTableNameT&& value) { m_newTableNameHasBeenSet = true; m_newTableName = std::forward<NewTableNameT>(value); }
209 template<typename NewTableNameT = Aws::String>
210 TableRestoreStatus& WithNewTableName(NewTableNameT&& value) { SetNewTableName(std::forward<NewTableNameT>(value)); return *this;}
212 private:
213
214 Aws::String m_tableRestoreRequestId;
215 bool m_tableRestoreRequestIdHasBeenSet = false;
216
218 bool m_statusHasBeenSet = false;
219
220 Aws::String m_message;
221 bool m_messageHasBeenSet = false;
222
223 Aws::Utils::DateTime m_requestTime{};
224 bool m_requestTimeHasBeenSet = false;
225
226 long long m_progressInMegaBytes{0};
227 bool m_progressInMegaBytesHasBeenSet = false;
228
229 long long m_totalDataInMegaBytes{0};
230 bool m_totalDataInMegaBytesHasBeenSet = false;
231
232 Aws::String m_clusterIdentifier;
233 bool m_clusterIdentifierHasBeenSet = false;
234
235 Aws::String m_snapshotIdentifier;
236 bool m_snapshotIdentifierHasBeenSet = false;
237
238 Aws::String m_sourceDatabaseName;
239 bool m_sourceDatabaseNameHasBeenSet = false;
240
241 Aws::String m_sourceSchemaName;
242 bool m_sourceSchemaNameHasBeenSet = false;
243
244 Aws::String m_sourceTableName;
245 bool m_sourceTableNameHasBeenSet = false;
246
247 Aws::String m_targetDatabaseName;
248 bool m_targetDatabaseNameHasBeenSet = false;
249
250 Aws::String m_targetSchemaName;
251 bool m_targetSchemaNameHasBeenSet = false;
252
253 Aws::String m_newTableName;
254 bool m_newTableNameHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace Redshift
259} // 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