AWS SDK for C++  0.14.3
AWS SDK for C++
TableRestoreStatus.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
41  {
42  public:
45  TableRestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetTableRestoreRequestId() const{ return m_tableRestoreRequestId; }
54 
58  inline void SetTableRestoreRequestId(const Aws::String& value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId = value; }
59 
63  inline void SetTableRestoreRequestId(Aws::String&& value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId = value; }
64 
68  inline void SetTableRestoreRequestId(const char* value) { m_tableRestoreRequestIdHasBeenSet = true; m_tableRestoreRequestId.assign(value); }
69 
73  inline TableRestoreStatus& WithTableRestoreRequestId(const Aws::String& value) { SetTableRestoreRequestId(value); return *this;}
74 
78  inline TableRestoreStatus& WithTableRestoreRequestId(Aws::String&& value) { SetTableRestoreRequestId(value); return *this;}
79 
83  inline TableRestoreStatus& WithTableRestoreRequestId(const char* value) { SetTableRestoreRequestId(value); return *this;}
84 
90  inline const TableRestoreStatusType& GetStatus() const{ return m_status; }
91 
97  inline void SetStatus(const TableRestoreStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
98 
104  inline void SetStatus(TableRestoreStatusType&& value) { m_statusHasBeenSet = true; m_status = value; }
105 
111  inline TableRestoreStatus& WithStatus(const TableRestoreStatusType& value) { SetStatus(value); return *this;}
112 
118  inline TableRestoreStatus& WithStatus(TableRestoreStatusType&& value) { SetStatus(value); return *this;}
119 
125  inline const Aws::String& GetMessage() const{ return m_message; }
126 
132  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
133 
139  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
140 
146  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
147 
153  inline TableRestoreStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
154 
160  inline TableRestoreStatus& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
161 
167  inline TableRestoreStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
168 
173  inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; }
174 
179  inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
180 
185  inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
186 
191  inline TableRestoreStatus& WithRequestTime(const Aws::Utils::DateTime& value) { SetRequestTime(value); return *this;}
192 
197  inline TableRestoreStatus& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(value); return *this;}
198 
202  inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; }
203 
207  inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
208 
212  inline TableRestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
213 
217  inline long long GetTotalDataInMegaBytes() const{ return m_totalDataInMegaBytes; }
218 
222  inline void SetTotalDataInMegaBytes(long long value) { m_totalDataInMegaBytesHasBeenSet = true; m_totalDataInMegaBytes = value; }
223 
227  inline TableRestoreStatus& WithTotalDataInMegaBytes(long long value) { SetTotalDataInMegaBytes(value); return *this;}
228 
233  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
234 
239  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
240 
245  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
246 
251  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
252 
257  inline TableRestoreStatus& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
258 
263  inline TableRestoreStatus& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
264 
269  inline TableRestoreStatus& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
270 
274  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
275 
279  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
280 
284  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
285 
289  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
290 
294  inline TableRestoreStatus& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
295 
299  inline TableRestoreStatus& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(value); return *this;}
300 
304  inline TableRestoreStatus& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
305 
309  inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; }
310 
314  inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
315 
319  inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
320 
324  inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); }
325 
329  inline TableRestoreStatus& WithSourceDatabaseName(const Aws::String& value) { SetSourceDatabaseName(value); return *this;}
330 
334  inline TableRestoreStatus& WithSourceDatabaseName(Aws::String&& value) { SetSourceDatabaseName(value); return *this;}
335 
339  inline TableRestoreStatus& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;}
340 
344  inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; }
345 
349  inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
350 
354  inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
355 
359  inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); }
360 
364  inline TableRestoreStatus& WithSourceSchemaName(const Aws::String& value) { SetSourceSchemaName(value); return *this;}
365 
369  inline TableRestoreStatus& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(value); return *this;}
370 
374  inline TableRestoreStatus& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;}
375 
379  inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
380 
384  inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
385 
389  inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
390 
394  inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
395 
399  inline TableRestoreStatus& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;}
400 
404  inline TableRestoreStatus& WithSourceTableName(Aws::String&& value) { SetSourceTableName(value); return *this;}
405 
409  inline TableRestoreStatus& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
410 
414  inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; }
415 
419  inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
420 
424  inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
425 
429  inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); }
430 
434  inline TableRestoreStatus& WithTargetDatabaseName(const Aws::String& value) { SetTargetDatabaseName(value); return *this;}
435 
439  inline TableRestoreStatus& WithTargetDatabaseName(Aws::String&& value) { SetTargetDatabaseName(value); return *this;}
440 
444  inline TableRestoreStatus& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;}
445 
449  inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; }
450 
454  inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
455 
459  inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
460 
464  inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); }
465 
469  inline TableRestoreStatus& WithTargetSchemaName(const Aws::String& value) { SetTargetSchemaName(value); return *this;}
470 
474  inline TableRestoreStatus& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(value); return *this;}
475 
479  inline TableRestoreStatus& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;}
480 
484  inline const Aws::String& GetNewTableName() const{ return m_newTableName; }
485 
489  inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
490 
494  inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
495 
499  inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); }
500 
504  inline TableRestoreStatus& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;}
505 
509  inline TableRestoreStatus& WithNewTableName(Aws::String&& value) { SetNewTableName(value); return *this;}
510 
514  inline TableRestoreStatus& WithNewTableName(const char* value) { SetNewTableName(value); return *this;}
515 
516  private:
517  Aws::String m_tableRestoreRequestId;
518  bool m_tableRestoreRequestIdHasBeenSet;
519  TableRestoreStatusType m_status;
520  bool m_statusHasBeenSet;
521  Aws::String m_message;
522  bool m_messageHasBeenSet;
523  Aws::Utils::DateTime m_requestTime;
524  bool m_requestTimeHasBeenSet;
525  long long m_progressInMegaBytes;
526  bool m_progressInMegaBytesHasBeenSet;
527  long long m_totalDataInMegaBytes;
528  bool m_totalDataInMegaBytesHasBeenSet;
529  Aws::String m_clusterIdentifier;
530  bool m_clusterIdentifierHasBeenSet;
531  Aws::String m_snapshotIdentifier;
532  bool m_snapshotIdentifierHasBeenSet;
533  Aws::String m_sourceDatabaseName;
534  bool m_sourceDatabaseNameHasBeenSet;
535  Aws::String m_sourceSchemaName;
536  bool m_sourceSchemaNameHasBeenSet;
537  Aws::String m_sourceTableName;
538  bool m_sourceTableNameHasBeenSet;
539  Aws::String m_targetDatabaseName;
540  bool m_targetDatabaseNameHasBeenSet;
541  Aws::String m_targetSchemaName;
542  bool m_targetSchemaNameHasBeenSet;
543  Aws::String m_newTableName;
544  bool m_newTableNameHasBeenSet;
545  };
546 
547 } // namespace Model
548 } // namespace Redshift
549 } // namespace Aws
void SetTableRestoreRequestId(const Aws::String &value)
TableRestoreStatus & WithSourceDatabaseName(Aws::String &&value)
TableRestoreStatus & WithClusterIdentifier(const Aws::String &value)
TableRestoreStatus & WithTargetSchemaName(const Aws::String &value)
void SetSourceDatabaseName(Aws::String &&value)
void SetTargetDatabaseName(Aws::String &&value)
void SetSnapshotIdentifier(Aws::String &&value)
TableRestoreStatus & WithMessage(const Aws::String &value)
TableRestoreStatus & WithNewTableName(const Aws::String &value)
void SetTableRestoreRequestId(Aws::String &&value)
TableRestoreStatus & WithSourceDatabaseName(const Aws::String &value)
TableRestoreStatus & WithSourceTableName(const char *value)
TableRestoreStatus & WithRequestTime(Aws::Utils::DateTime &&value)
TableRestoreStatus & WithSnapshotIdentifier(const Aws::String &value)
TableRestoreStatus & WithSourceTableName(Aws::String &&value)
void SetTargetSchemaName(Aws::String &&value)
void SetClusterIdentifier(const Aws::String &value)
const Aws::String & GetSourceDatabaseName() const
const Aws::String & GetSourceSchemaName() const
void SetTableRestoreRequestId(const char *value)
TableRestoreStatus & WithTargetDatabaseName(const char *value)
TableRestoreStatus & WithClusterIdentifier(Aws::String &&value)
const Aws::String & GetTableRestoreRequestId() const
TableRestoreStatus & WithTotalDataInMegaBytes(long long value)
TableRestoreStatus & WithMessage(Aws::String &&value)
void SetRequestTime(Aws::Utils::DateTime &&value)
TableRestoreStatus & WithTargetDatabaseName(Aws::String &&value)
TableRestoreStatus & WithSnapshotIdentifier(const char *value)
TableRestoreStatus & WithSourceSchemaName(Aws::String &&value)
const TableRestoreStatusType & GetStatus() const
void SetSourceTableName(Aws::String &&value)
TableRestoreStatus & WithClusterIdentifier(const char *value)
void SetSnapshotIdentifier(const Aws::String &value)
const Aws::String & GetSourceTableName() const
#define AWS_REDSHIFT_API
void SetSourceSchemaName(Aws::String &&value)
TableRestoreStatus & WithSnapshotIdentifier(Aws::String &&value)
TableRestoreStatus & WithProgressInMegaBytes(long long value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetStatus(TableRestoreStatusType &&value)
const Aws::String & GetSnapshotIdentifier() const
void SetClusterIdentifier(Aws::String &&value)
TableRestoreStatus & WithTargetDatabaseName(const Aws::String &value)
TableRestoreStatus & WithNewTableName(Aws::String &&value)
TableRestoreStatus & WithTableRestoreRequestId(Aws::String &&value)
TableRestoreStatus & WithStatus(TableRestoreStatusType &&value)
TableRestoreStatus & WithNewTableName(const char *value)
void SetTargetDatabaseName(const Aws::String &value)
TableRestoreStatus & WithSourceDatabaseName(const char *value)
const Aws::Utils::DateTime & GetRequestTime() const
TableRestoreStatus & WithTargetSchemaName(const char *value)
void SetSourceSchemaName(const Aws::String &value)
TableRestoreStatus & WithSourceSchemaName(const Aws::String &value)
void SetRequestTime(const Aws::Utils::DateTime &value)
const Aws::String & GetClusterIdentifier() const
TableRestoreStatus & WithStatus(const TableRestoreStatusType &value)
void SetSourceTableName(const Aws::String &value)
TableRestoreStatus & WithTableRestoreRequestId(const Aws::String &value)
TableRestoreStatus & WithSourceTableName(const Aws::String &value)
const Aws::String & GetMessage() const
const Aws::String & GetNewTableName() const
void SetTargetSchemaName(const Aws::String &value)
void SetStatus(const TableRestoreStatusType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TableRestoreStatus & WithSourceSchemaName(const char *value)
TableRestoreStatus & WithTargetSchemaName(Aws::String &&value)
TableRestoreStatus & WithTableRestoreRequestId(const char *value)
void SetMessage(const Aws::String &value)
const Aws::String & GetTargetDatabaseName() const
void SetNewTableName(const Aws::String &value)
const Aws::String & GetTargetSchemaName() const
void SetSourceDatabaseName(const Aws::String &value)
TableRestoreStatus & WithMessage(const char *value)
JSON (JavaScript Object Notation).
TableRestoreStatus & WithRequestTime(const Aws::Utils::DateTime &value)