AWS SDK for C++  1.8.71
AWS SDK for C++
RestoreTableFromClusterSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RestoreTableFromClusterSnapshot"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
46 
50  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
51 
55  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
56 
60  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
61 
65  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
66 
70  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
71 
75  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
76 
80  inline RestoreTableFromClusterSnapshotRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
81 
82 
88  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
89 
95  inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
96 
102  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
103 
109  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); }
110 
116  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
117 
123  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
124 
130  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;}
131 
137  inline RestoreTableFromClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
138 
139 
143  inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; }
144 
148  inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; }
149 
153  inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
154 
158  inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = std::move(value); }
159 
163  inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); }
164 
168  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(const Aws::String& value) { SetSourceDatabaseName(value); return *this;}
169 
173  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(Aws::String&& value) { SetSourceDatabaseName(std::move(value)); return *this;}
174 
178  inline RestoreTableFromClusterSnapshotRequest& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;}
179 
180 
186  inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; }
187 
193  inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; }
194 
200  inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
201 
207  inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = std::move(value); }
208 
214  inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); }
215 
221  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(const Aws::String& value) { SetSourceSchemaName(value); return *this;}
222 
228  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(std::move(value)); return *this;}
229 
235  inline RestoreTableFromClusterSnapshotRequest& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;}
236 
237 
241  inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
242 
246  inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
247 
251  inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
252 
256  inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::move(value); }
257 
261  inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
262 
266  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;}
267 
271  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(Aws::String&& value) { SetSourceTableName(std::move(value)); return *this;}
272 
276  inline RestoreTableFromClusterSnapshotRequest& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
277 
278 
282  inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; }
283 
287  inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
288 
292  inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
293 
297  inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::move(value); }
298 
302  inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); }
303 
307  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(const Aws::String& value) { SetTargetDatabaseName(value); return *this;}
308 
312  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(Aws::String&& value) { SetTargetDatabaseName(std::move(value)); return *this;}
313 
317  inline RestoreTableFromClusterSnapshotRequest& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;}
318 
319 
323  inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; }
324 
328  inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; }
329 
333  inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
334 
338  inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = std::move(value); }
339 
343  inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); }
344 
348  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(const Aws::String& value) { SetTargetSchemaName(value); return *this;}
349 
353  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(std::move(value)); return *this;}
354 
358  inline RestoreTableFromClusterSnapshotRequest& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;}
359 
360 
364  inline const Aws::String& GetNewTableName() const{ return m_newTableName; }
365 
369  inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; }
370 
374  inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
375 
379  inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = std::move(value); }
380 
384  inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); }
385 
389  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;}
390 
394  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(Aws::String&& value) { SetNewTableName(std::move(value)); return *this;}
395 
399  inline RestoreTableFromClusterSnapshotRequest& WithNewTableName(const char* value) { SetNewTableName(value); return *this;}
400 
401  private:
402 
403  Aws::String m_clusterIdentifier;
404  bool m_clusterIdentifierHasBeenSet;
405 
406  Aws::String m_snapshotIdentifier;
407  bool m_snapshotIdentifierHasBeenSet;
408 
409  Aws::String m_sourceDatabaseName;
410  bool m_sourceDatabaseNameHasBeenSet;
411 
412  Aws::String m_sourceSchemaName;
413  bool m_sourceSchemaNameHasBeenSet;
414 
415  Aws::String m_sourceTableName;
416  bool m_sourceTableNameHasBeenSet;
417 
418  Aws::String m_targetDatabaseName;
419  bool m_targetDatabaseNameHasBeenSet;
420 
421  Aws::String m_targetSchemaName;
422  bool m_targetSchemaNameHasBeenSet;
423 
424  Aws::String m_newTableName;
425  bool m_newTableNameHasBeenSet;
426  };
427 
428 } // namespace Model
429 } // namespace Redshift
430 } // 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)