AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreTableRequest.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/keyspaces/KeyspacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/keyspaces/model/CapacitySpecification.h>
12#include <aws/keyspaces/model/EncryptionSpecification.h>
13#include <aws/keyspaces/model/PointInTimeRecovery.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/keyspaces/model/AutoScalingSpecification.h>
16#include <aws/keyspaces/model/Tag.h>
17#include <aws/keyspaces/model/ReplicaSpecification.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Keyspaces
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_KEYSPACES_API RestoreTableRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "RestoreTable"; }
39
40 AWS_KEYSPACES_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetSourceKeyspaceName() const{ return m_sourceKeyspaceName; }
50 inline bool SourceKeyspaceNameHasBeenSet() const { return m_sourceKeyspaceNameHasBeenSet; }
51 inline void SetSourceKeyspaceName(const Aws::String& value) { m_sourceKeyspaceNameHasBeenSet = true; m_sourceKeyspaceName = value; }
52 inline void SetSourceKeyspaceName(Aws::String&& value) { m_sourceKeyspaceNameHasBeenSet = true; m_sourceKeyspaceName = std::move(value); }
53 inline void SetSourceKeyspaceName(const char* value) { m_sourceKeyspaceNameHasBeenSet = true; m_sourceKeyspaceName.assign(value); }
54 inline RestoreTableRequest& WithSourceKeyspaceName(const Aws::String& value) { SetSourceKeyspaceName(value); return *this;}
55 inline RestoreTableRequest& WithSourceKeyspaceName(Aws::String&& value) { SetSourceKeyspaceName(std::move(value)); return *this;}
56 inline RestoreTableRequest& WithSourceKeyspaceName(const char* value) { SetSourceKeyspaceName(value); return *this;}
58
60
63 inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; }
64 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
65 inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; }
66 inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::move(value); }
67 inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); }
68 inline RestoreTableRequest& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;}
69 inline RestoreTableRequest& WithSourceTableName(Aws::String&& value) { SetSourceTableName(std::move(value)); return *this;}
70 inline RestoreTableRequest& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;}
72
74
77 inline const Aws::String& GetTargetKeyspaceName() const{ return m_targetKeyspaceName; }
78 inline bool TargetKeyspaceNameHasBeenSet() const { return m_targetKeyspaceNameHasBeenSet; }
79 inline void SetTargetKeyspaceName(const Aws::String& value) { m_targetKeyspaceNameHasBeenSet = true; m_targetKeyspaceName = value; }
80 inline void SetTargetKeyspaceName(Aws::String&& value) { m_targetKeyspaceNameHasBeenSet = true; m_targetKeyspaceName = std::move(value); }
81 inline void SetTargetKeyspaceName(const char* value) { m_targetKeyspaceNameHasBeenSet = true; m_targetKeyspaceName.assign(value); }
82 inline RestoreTableRequest& WithTargetKeyspaceName(const Aws::String& value) { SetTargetKeyspaceName(value); return *this;}
83 inline RestoreTableRequest& WithTargetKeyspaceName(Aws::String&& value) { SetTargetKeyspaceName(std::move(value)); return *this;}
84 inline RestoreTableRequest& WithTargetKeyspaceName(const char* value) { SetTargetKeyspaceName(value); return *this;}
86
88
91 inline const Aws::String& GetTargetTableName() const{ return m_targetTableName; }
92 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
93 inline void SetTargetTableName(const Aws::String& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = value; }
94 inline void SetTargetTableName(Aws::String&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::move(value); }
95 inline void SetTargetTableName(const char* value) { m_targetTableNameHasBeenSet = true; m_targetTableName.assign(value); }
96 inline RestoreTableRequest& WithTargetTableName(const Aws::String& value) { SetTargetTableName(value); return *this;}
97 inline RestoreTableRequest& WithTargetTableName(Aws::String&& value) { SetTargetTableName(std::move(value)); return *this;}
98 inline RestoreTableRequest& WithTargetTableName(const char* value) { SetTargetTableName(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetRestoreTimestamp() const{ return m_restoreTimestamp; }
106 inline bool RestoreTimestampHasBeenSet() const { return m_restoreTimestampHasBeenSet; }
107 inline void SetRestoreTimestamp(const Aws::Utils::DateTime& value) { m_restoreTimestampHasBeenSet = true; m_restoreTimestamp = value; }
108 inline void SetRestoreTimestamp(Aws::Utils::DateTime&& value) { m_restoreTimestampHasBeenSet = true; m_restoreTimestamp = std::move(value); }
110 inline RestoreTableRequest& WithRestoreTimestamp(Aws::Utils::DateTime&& value) { SetRestoreTimestamp(std::move(value)); return *this;}
112
114
125 inline const CapacitySpecification& GetCapacitySpecificationOverride() const{ return m_capacitySpecificationOverride; }
126 inline bool CapacitySpecificationOverrideHasBeenSet() const { return m_capacitySpecificationOverrideHasBeenSet; }
127 inline void SetCapacitySpecificationOverride(const CapacitySpecification& value) { m_capacitySpecificationOverrideHasBeenSet = true; m_capacitySpecificationOverride = value; }
128 inline void SetCapacitySpecificationOverride(CapacitySpecification&& value) { m_capacitySpecificationOverrideHasBeenSet = true; m_capacitySpecificationOverride = std::move(value); }
132
134
146 inline const EncryptionSpecification& GetEncryptionSpecificationOverride() const{ return m_encryptionSpecificationOverride; }
147 inline bool EncryptionSpecificationOverrideHasBeenSet() const { return m_encryptionSpecificationOverrideHasBeenSet; }
148 inline void SetEncryptionSpecificationOverride(const EncryptionSpecification& value) { m_encryptionSpecificationOverrideHasBeenSet = true; m_encryptionSpecificationOverride = value; }
149 inline void SetEncryptionSpecificationOverride(EncryptionSpecification&& value) { m_encryptionSpecificationOverrideHasBeenSet = true; m_encryptionSpecificationOverride = std::move(value); }
153
155
163 inline const PointInTimeRecovery& GetPointInTimeRecoveryOverride() const{ return m_pointInTimeRecoveryOverride; }
164 inline bool PointInTimeRecoveryOverrideHasBeenSet() const { return m_pointInTimeRecoveryOverrideHasBeenSet; }
165 inline void SetPointInTimeRecoveryOverride(const PointInTimeRecovery& value) { m_pointInTimeRecoveryOverrideHasBeenSet = true; m_pointInTimeRecoveryOverride = value; }
166 inline void SetPointInTimeRecoveryOverride(PointInTimeRecovery&& value) { m_pointInTimeRecoveryOverrideHasBeenSet = true; m_pointInTimeRecoveryOverride = std::move(value); }
170
172
179 inline const Aws::Vector<Tag>& GetTagsOverride() const{ return m_tagsOverride; }
180 inline bool TagsOverrideHasBeenSet() const { return m_tagsOverrideHasBeenSet; }
181 inline void SetTagsOverride(const Aws::Vector<Tag>& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride = value; }
182 inline void SetTagsOverride(Aws::Vector<Tag>&& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride = std::move(value); }
183 inline RestoreTableRequest& WithTagsOverride(const Aws::Vector<Tag>& value) { SetTagsOverride(value); return *this;}
184 inline RestoreTableRequest& WithTagsOverride(Aws::Vector<Tag>&& value) { SetTagsOverride(std::move(value)); return *this;}
185 inline RestoreTableRequest& AddTagsOverride(const Tag& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride.push_back(value); return *this; }
186 inline RestoreTableRequest& AddTagsOverride(Tag&& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride.push_back(std::move(value)); return *this; }
188
190
201 inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; }
202 inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; }
203 inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; }
204 inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); }
208
210
213 inline const Aws::Vector<ReplicaSpecification>& GetReplicaSpecifications() const{ return m_replicaSpecifications; }
214 inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; }
215 inline void SetReplicaSpecifications(const Aws::Vector<ReplicaSpecification>& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = value; }
216 inline void SetReplicaSpecifications(Aws::Vector<ReplicaSpecification>&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = std::move(value); }
219 inline RestoreTableRequest& AddReplicaSpecifications(const ReplicaSpecification& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(value); return *this; }
220 inline RestoreTableRequest& AddReplicaSpecifications(ReplicaSpecification&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(std::move(value)); return *this; }
222 private:
223
224 Aws::String m_sourceKeyspaceName;
225 bool m_sourceKeyspaceNameHasBeenSet = false;
226
227 Aws::String m_sourceTableName;
228 bool m_sourceTableNameHasBeenSet = false;
229
230 Aws::String m_targetKeyspaceName;
231 bool m_targetKeyspaceNameHasBeenSet = false;
232
233 Aws::String m_targetTableName;
234 bool m_targetTableNameHasBeenSet = false;
235
236 Aws::Utils::DateTime m_restoreTimestamp;
237 bool m_restoreTimestampHasBeenSet = false;
238
239 CapacitySpecification m_capacitySpecificationOverride;
240 bool m_capacitySpecificationOverrideHasBeenSet = false;
241
242 EncryptionSpecification m_encryptionSpecificationOverride;
243 bool m_encryptionSpecificationOverrideHasBeenSet = false;
244
245 PointInTimeRecovery m_pointInTimeRecoveryOverride;
246 bool m_pointInTimeRecoveryOverrideHasBeenSet = false;
247
248 Aws::Vector<Tag> m_tagsOverride;
249 bool m_tagsOverrideHasBeenSet = false;
250
251 AutoScalingSpecification m_autoScalingSpecification;
252 bool m_autoScalingSpecificationHasBeenSet = false;
253
254 Aws::Vector<ReplicaSpecification> m_replicaSpecifications;
255 bool m_replicaSpecificationsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace Keyspaces
260} // namespace Aws
RestoreTableRequest & WithReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
void SetEncryptionSpecificationOverride(EncryptionSpecification &&value)
RestoreTableRequest & WithEncryptionSpecificationOverride(EncryptionSpecification &&value)
void SetSourceTableName(const Aws::String &value)
RestoreTableRequest & WithAutoScalingSpecification(const AutoScalingSpecification &value)
void SetCapacitySpecificationOverride(const CapacitySpecification &value)
RestoreTableRequest & AddTagsOverride(Tag &&value)
void SetCapacitySpecificationOverride(CapacitySpecification &&value)
RestoreTableRequest & WithTargetTableName(const Aws::String &value)
void SetReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
const PointInTimeRecovery & GetPointInTimeRecoveryOverride() const
const Aws::String & GetTargetKeyspaceName() const
AWS_KEYSPACES_API Aws::String SerializePayload() const override
RestoreTableRequest & WithSourceTableName(Aws::String &&value)
RestoreTableRequest & WithReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
void SetSourceKeyspaceName(const Aws::String &value)
RestoreTableRequest & WithSourceKeyspaceName(const Aws::String &value)
void SetTargetKeyspaceName(const Aws::String &value)
RestoreTableRequest & WithTargetKeyspaceName(Aws::String &&value)
void SetAutoScalingSpecification(const AutoScalingSpecification &value)
RestoreTableRequest & WithPointInTimeRecoveryOverride(PointInTimeRecovery &&value)
void SetRestoreTimestamp(Aws::Utils::DateTime &&value)
const Aws::Vector< ReplicaSpecification > & GetReplicaSpecifications() const
const Aws::Vector< Tag > & GetTagsOverride() const
const CapacitySpecification & GetCapacitySpecificationOverride() const
RestoreTableRequest & AddReplicaSpecifications(ReplicaSpecification &&value)
RestoreTableRequest & WithTargetTableName(Aws::String &&value)
void SetTagsOverride(const Aws::Vector< Tag > &value)
RestoreTableRequest & WithRestoreTimestamp(Aws::Utils::DateTime &&value)
void SetTargetTableName(const Aws::String &value)
RestoreTableRequest & WithSourceKeyspaceName(const char *value)
void SetReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
const EncryptionSpecification & GetEncryptionSpecificationOverride() const
RestoreTableRequest & AddTagsOverride(const Tag &value)
RestoreTableRequest & WithTargetTableName(const char *value)
void SetPointInTimeRecoveryOverride(PointInTimeRecovery &&value)
RestoreTableRequest & WithCapacitySpecificationOverride(const CapacitySpecification &value)
RestoreTableRequest & WithPointInTimeRecoveryOverride(const PointInTimeRecovery &value)
const Aws::Utils::DateTime & GetRestoreTimestamp() const
void SetEncryptionSpecificationOverride(const EncryptionSpecification &value)
RestoreTableRequest & WithSourceKeyspaceName(Aws::String &&value)
RestoreTableRequest & WithTagsOverride(const Aws::Vector< Tag > &value)
const AutoScalingSpecification & GetAutoScalingSpecification() const
virtual const char * GetServiceRequestName() const override
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPointInTimeRecoveryOverride(const PointInTimeRecovery &value)
RestoreTableRequest & WithTargetKeyspaceName(const char *value)
RestoreTableRequest & WithSourceTableName(const Aws::String &value)
RestoreTableRequest & WithAutoScalingSpecification(AutoScalingSpecification &&value)
const Aws::String & GetSourceKeyspaceName() const
RestoreTableRequest & WithTargetKeyspaceName(const Aws::String &value)
RestoreTableRequest & WithSourceTableName(const char *value)
void SetTagsOverride(Aws::Vector< Tag > &&value)
RestoreTableRequest & AddReplicaSpecifications(const ReplicaSpecification &value)
RestoreTableRequest & WithEncryptionSpecificationOverride(const EncryptionSpecification &value)
RestoreTableRequest & WithTagsOverride(Aws::Vector< Tag > &&value)
RestoreTableRequest & WithRestoreTimestamp(const Aws::Utils::DateTime &value)
RestoreTableRequest & WithCapacitySpecificationOverride(CapacitySpecification &&value)
void SetAutoScalingSpecification(AutoScalingSpecification &&value)
void SetRestoreTimestamp(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector