AWS SDK for C++  0.14.3
AWS SDK for C++
RestoreTableFromClusterSnapshotRequest.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
19 
20 namespace Aws
21 {
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
38  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
39 
43  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
44 
48  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
49 
53  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
54 
58  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
59 
63  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
64 
68  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
69 
75  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
76 
82  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
83 
89  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
90 
96  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
97 
103  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
104 
110  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(value); return *this;}
111 
117  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
118 
122  inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; }
123 
127  inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
128 
132  inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
133 
137  inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); }
138 
142  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(const Aws::String& value) { SetSourceDatabaseName(value); return *this;}
143 
147  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(Aws::String&& value) { SetSourceDatabaseName(value); return *this;}
148 
152  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;}
153 
159  inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; }
160 
166  inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
167 
173  inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
174 
180  inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); }
181 
187  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(const Aws::String& value) { SetSourceSchemaName(value); return *this;}
188 
194  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(value); return *this;}
195 
201  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;}
202 
206  inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
207 
211  inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
212 
216  inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
217 
221  inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
222 
226  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;}
227 
231  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(Aws::String&& value) { SetSourceTableName(value); return *this;}
232 
236  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
237 
241  inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; }
242 
246  inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
247 
251  inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
252 
256  inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); }
257 
261  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(const Aws::String& value) { SetTargetDatabaseName(value); return *this;}
262 
266  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(Aws::String&& value) { SetTargetDatabaseName(value); return *this;}
267 
271  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;}
272 
276  inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; }
277 
281  inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
282 
286  inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
287 
291  inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); }
292 
296  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(const Aws::String& value) { SetTargetSchemaName(value); return *this;}
297 
301  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(value); return *this;}
302 
306  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;}
307 
311  inline const Aws::String& GetNewTableName() const{ return m_newTableName; }
312 
316  inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
317 
321  inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
322 
326  inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); }
327 
331  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;}
332 
336  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(Aws::String&& value) { SetNewTableName(value); return *this;}
337 
341  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(const char* value) { SetNewTableName(value); return *this;}
342 
343  private:
344  Aws::String m_clusterIdentifier;
345  bool m_clusterIdentifierHasBeenSet;
346  Aws::String m_snapshotIdentifier;
347  bool m_snapshotIdentifierHasBeenSet;
348  Aws::String m_sourceDatabaseName;
349  bool m_sourceDatabaseNameHasBeenSet;
350  Aws::String m_sourceSchemaName;
351  bool m_sourceSchemaNameHasBeenSet;
352  Aws::String m_sourceTableName;
353  bool m_sourceTableNameHasBeenSet;
354  Aws::String m_targetDatabaseName;
355  bool m_targetDatabaseNameHasBeenSet;
356  Aws::String m_targetSchemaName;
357  bool m_targetSchemaNameHasBeenSet;
358  Aws::String m_newTableName;
359  bool m_newTableNameHasBeenSet;
360  };
361 
362 } // namespace Model
363 } // namespace Redshift
364 } // namespace Aws
RestoreTableFromClusterSnapshotRequest & WithTargetDatabaseName(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithTargetSchemaName(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithSnapshotIdentifier(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithNewTableName(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithTargetDatabaseName(const char *value)
RestoreTableFromClusterSnapshotRequest & WithClusterIdentifier(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithSnapshotIdentifier(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithNewTableName(Aws::String &&value)
#define AWS_REDSHIFT_API
RestoreTableFromClusterSnapshotRequest & WithClusterIdentifier(const char *value)
RestoreTableFromClusterSnapshotRequest & WithSourceSchemaName(const char *value)
RestoreTableFromClusterSnapshotRequest & WithNewTableName(const char *value)
RestoreTableFromClusterSnapshotRequest & WithSnapshotIdentifier(const char *value)
RestoreTableFromClusterSnapshotRequest & WithSourceDatabaseName(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithSourceTableName(const char *value)
RestoreTableFromClusterSnapshotRequest & WithTargetDatabaseName(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithClusterIdentifier(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithSourceTableName(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithSourceDatabaseName(const char *value)
RestoreTableFromClusterSnapshotRequest & WithSourceDatabaseName(const Aws::String &value)
RestoreTableFromClusterSnapshotRequest & WithSourceSchemaName(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithSourceTableName(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithSourceSchemaName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RestoreTableFromClusterSnapshotRequest & WithTargetSchemaName(Aws::String &&value)
RestoreTableFromClusterSnapshotRequest & WithTargetSchemaName(const char *value)
JSON (JavaScript Object Notation).