AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreTableFromSnapshotRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RedshiftServerless
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_REDSHIFTSERVERLESS_API RestoreTableFromSnapshotRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RestoreTableFromSnapshot"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline bool GetActivateCaseSensitiveIdentifier() const{ return m_activateCaseSensitiveIdentifier; }
44 inline bool ActivateCaseSensitiveIdentifierHasBeenSet() const { return m_activateCaseSensitiveIdentifierHasBeenSet; }
45 inline void SetActivateCaseSensitiveIdentifier(bool value) { m_activateCaseSensitiveIdentifierHasBeenSet = true; m_activateCaseSensitiveIdentifier = value; }
48
50
53 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
54 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
55 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
56 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
57 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
59 inline RestoreTableFromSnapshotRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
60 inline RestoreTableFromSnapshotRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
62
64
67 inline const Aws::String& GetNewTableName() const{ return m_newTableName; }
68 inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; }
69 inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; }
70 inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = std::move(value); }
71 inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); }
72 inline RestoreTableFromSnapshotRequest& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;}
73 inline RestoreTableFromSnapshotRequest& WithNewTableName(Aws::String&& value) { SetNewTableName(std::move(value)); return *this;}
74 inline RestoreTableFromSnapshotRequest& WithNewTableName(const char* value) { SetNewTableName(value); return *this;}
76
78
81 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
82 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
83 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
84 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
85 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
86 inline RestoreTableFromSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
87 inline RestoreTableFromSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
88 inline RestoreTableFromSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
90
92
95 inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; }
96 inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; }
97 inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; }
98 inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = std::move(value); }
99 inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); }
102 inline RestoreTableFromSnapshotRequest& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;}
104
106
109 inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; }
110 inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; }
111 inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; }
112 inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = std::move(value); }
113 inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); }
115 inline RestoreTableFromSnapshotRequest& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(std::move(value)); return *this;}
116 inline RestoreTableFromSnapshotRequest& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;}
118
120
123 inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
124 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
125 inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
126 inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::move(value); }
127 inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
129 inline RestoreTableFromSnapshotRequest& WithSourceTableName(Aws::String&& value) { SetSourceTableName(std::move(value)); return *this;}
130 inline RestoreTableFromSnapshotRequest& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
132
134
137 inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; }
138 inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; }
139 inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; }
140 inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::move(value); }
141 inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); }
144 inline RestoreTableFromSnapshotRequest& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;}
146
148
151 inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; }
152 inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; }
153 inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; }
154 inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = std::move(value); }
155 inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); }
157 inline RestoreTableFromSnapshotRequest& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(std::move(value)); return *this;}
158 inline RestoreTableFromSnapshotRequest& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;}
160
162
165 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
166 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
167 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
168 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
169 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
171 inline RestoreTableFromSnapshotRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
172 inline RestoreTableFromSnapshotRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
174 private:
175
176 bool m_activateCaseSensitiveIdentifier;
177 bool m_activateCaseSensitiveIdentifierHasBeenSet = false;
178
179 Aws::String m_namespaceName;
180 bool m_namespaceNameHasBeenSet = false;
181
182 Aws::String m_newTableName;
183 bool m_newTableNameHasBeenSet = false;
184
185 Aws::String m_snapshotName;
186 bool m_snapshotNameHasBeenSet = false;
187
188 Aws::String m_sourceDatabaseName;
189 bool m_sourceDatabaseNameHasBeenSet = false;
190
191 Aws::String m_sourceSchemaName;
192 bool m_sourceSchemaNameHasBeenSet = false;
193
194 Aws::String m_sourceTableName;
195 bool m_sourceTableNameHasBeenSet = false;
196
197 Aws::String m_targetDatabaseName;
198 bool m_targetDatabaseNameHasBeenSet = false;
199
200 Aws::String m_targetSchemaName;
201 bool m_targetSchemaNameHasBeenSet = false;
202
203 Aws::String m_workgroupName;
204 bool m_workgroupNameHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace RedshiftServerless
209} // namespace Aws
RestoreTableFromSnapshotRequest & WithSourceTableName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithTargetDatabaseName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithNewTableName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithTargetDatabaseName(const char *value)
RestoreTableFromSnapshotRequest & WithWorkgroupName(const char *value)
RestoreTableFromSnapshotRequest & WithWorkgroupName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithSourceSchemaName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithSnapshotName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithNewTableName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreTableFromSnapshotRequest & WithTargetSchemaName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithSnapshotName(const char *value)
RestoreTableFromSnapshotRequest & WithSourceSchemaName(const char *value)
RestoreTableFromSnapshotRequest & WithSourceTableName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithNamespaceName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithSourceDatabaseName(const char *value)
RestoreTableFromSnapshotRequest & WithNamespaceName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithSnapshotName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithWorkgroupName(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
RestoreTableFromSnapshotRequest & WithActivateCaseSensitiveIdentifier(bool value)
RestoreTableFromSnapshotRequest & WithNewTableName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithNamespaceName(const char *value)
RestoreTableFromSnapshotRequest & WithSourceDatabaseName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithTargetSchemaName(const char *value)
RestoreTableFromSnapshotRequest & WithTargetDatabaseName(Aws::String &&value)
RestoreTableFromSnapshotRequest & WithTargetSchemaName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithSourceTableName(const char *value)
RestoreTableFromSnapshotRequest & WithSourceSchemaName(const Aws::String &value)
RestoreTableFromSnapshotRequest & WithSourceDatabaseName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String