AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RestoreTableRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/keyspaces/KeyspacesRequest.h>
11#include <aws/keyspaces/Keyspaces_EXPORTS.h>
12#include <aws/keyspaces/model/AutoScalingSpecification.h>
13#include <aws/keyspaces/model/CapacitySpecification.h>
14#include <aws/keyspaces/model/EncryptionSpecification.h>
15#include <aws/keyspaces/model/PointInTimeRecovery.h>
16#include <aws/keyspaces/model/ReplicaSpecification.h>
17#include <aws/keyspaces/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Keyspaces {
23namespace Model {
24
28 public:
29 AWS_KEYSPACES_API RestoreTableRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "RestoreTable"; }
36
37 AWS_KEYSPACES_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetSourceKeyspaceName() const { return m_sourceKeyspaceName; }
46 inline bool SourceKeyspaceNameHasBeenSet() const { return m_sourceKeyspaceNameHasBeenSet; }
47 template <typename SourceKeyspaceNameT = Aws::String>
48 void SetSourceKeyspaceName(SourceKeyspaceNameT&& value) {
49 m_sourceKeyspaceNameHasBeenSet = true;
50 m_sourceKeyspaceName = std::forward<SourceKeyspaceNameT>(value);
51 }
52 template <typename SourceKeyspaceNameT = Aws::String>
53 RestoreTableRequest& WithSourceKeyspaceName(SourceKeyspaceNameT&& value) {
54 SetSourceKeyspaceName(std::forward<SourceKeyspaceNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSourceTableName() const { return m_sourceTableName; }
64 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
65 template <typename SourceTableNameT = Aws::String>
66 void SetSourceTableName(SourceTableNameT&& value) {
67 m_sourceTableNameHasBeenSet = true;
68 m_sourceTableName = std::forward<SourceTableNameT>(value);
69 }
70 template <typename SourceTableNameT = Aws::String>
71 RestoreTableRequest& WithSourceTableName(SourceTableNameT&& value) {
72 SetSourceTableName(std::forward<SourceTableNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTargetKeyspaceName() const { return m_targetKeyspaceName; }
82 inline bool TargetKeyspaceNameHasBeenSet() const { return m_targetKeyspaceNameHasBeenSet; }
83 template <typename TargetKeyspaceNameT = Aws::String>
84 void SetTargetKeyspaceName(TargetKeyspaceNameT&& value) {
85 m_targetKeyspaceNameHasBeenSet = true;
86 m_targetKeyspaceName = std::forward<TargetKeyspaceNameT>(value);
87 }
88 template <typename TargetKeyspaceNameT = Aws::String>
89 RestoreTableRequest& WithTargetKeyspaceName(TargetKeyspaceNameT&& value) {
90 SetTargetKeyspaceName(std::forward<TargetKeyspaceNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
100 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
101 template <typename TargetTableNameT = Aws::String>
102 void SetTargetTableName(TargetTableNameT&& value) {
103 m_targetTableNameHasBeenSet = true;
104 m_targetTableName = std::forward<TargetTableNameT>(value);
105 }
106 template <typename TargetTableNameT = Aws::String>
107 RestoreTableRequest& WithTargetTableName(TargetTableNameT&& value) {
108 SetTargetTableName(std::forward<TargetTableNameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetRestoreTimestamp() const { return m_restoreTimestamp; }
118 inline bool RestoreTimestampHasBeenSet() const { return m_restoreTimestampHasBeenSet; }
119 template <typename RestoreTimestampT = Aws::Utils::DateTime>
120 void SetRestoreTimestamp(RestoreTimestampT&& value) {
121 m_restoreTimestampHasBeenSet = true;
122 m_restoreTimestamp = std::forward<RestoreTimestampT>(value);
123 }
124 template <typename RestoreTimestampT = Aws::Utils::DateTime>
125 RestoreTableRequest& WithRestoreTimestamp(RestoreTimestampT&& value) {
126 SetRestoreTimestamp(std::forward<RestoreTimestampT>(value));
127 return *this;
128 }
130
132
143 inline const CapacitySpecification& GetCapacitySpecificationOverride() const { return m_capacitySpecificationOverride; }
144 inline bool CapacitySpecificationOverrideHasBeenSet() const { return m_capacitySpecificationOverrideHasBeenSet; }
145 template <typename CapacitySpecificationOverrideT = CapacitySpecification>
146 void SetCapacitySpecificationOverride(CapacitySpecificationOverrideT&& value) {
147 m_capacitySpecificationOverrideHasBeenSet = true;
148 m_capacitySpecificationOverride = std::forward<CapacitySpecificationOverrideT>(value);
149 }
150 template <typename CapacitySpecificationOverrideT = CapacitySpecification>
151 RestoreTableRequest& WithCapacitySpecificationOverride(CapacitySpecificationOverrideT&& value) {
152 SetCapacitySpecificationOverride(std::forward<CapacitySpecificationOverrideT>(value));
153 return *this;
154 }
156
158
170 inline const EncryptionSpecification& GetEncryptionSpecificationOverride() const { return m_encryptionSpecificationOverride; }
171 inline bool EncryptionSpecificationOverrideHasBeenSet() const { return m_encryptionSpecificationOverrideHasBeenSet; }
172 template <typename EncryptionSpecificationOverrideT = EncryptionSpecification>
173 void SetEncryptionSpecificationOverride(EncryptionSpecificationOverrideT&& value) {
174 m_encryptionSpecificationOverrideHasBeenSet = true;
175 m_encryptionSpecificationOverride = std::forward<EncryptionSpecificationOverrideT>(value);
176 }
177 template <typename EncryptionSpecificationOverrideT = EncryptionSpecification>
178 RestoreTableRequest& WithEncryptionSpecificationOverride(EncryptionSpecificationOverrideT&& value) {
179 SetEncryptionSpecificationOverride(std::forward<EncryptionSpecificationOverrideT>(value));
180 return *this;
181 }
183
185
193 inline const PointInTimeRecovery& GetPointInTimeRecoveryOverride() const { return m_pointInTimeRecoveryOverride; }
194 inline bool PointInTimeRecoveryOverrideHasBeenSet() const { return m_pointInTimeRecoveryOverrideHasBeenSet; }
195 template <typename PointInTimeRecoveryOverrideT = PointInTimeRecovery>
196 void SetPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT&& value) {
197 m_pointInTimeRecoveryOverrideHasBeenSet = true;
198 m_pointInTimeRecoveryOverride = std::forward<PointInTimeRecoveryOverrideT>(value);
199 }
200 template <typename PointInTimeRecoveryOverrideT = PointInTimeRecovery>
201 RestoreTableRequest& WithPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT&& value) {
202 SetPointInTimeRecoveryOverride(std::forward<PointInTimeRecoveryOverrideT>(value));
203 return *this;
204 }
206
208
215 inline const Aws::Vector<Tag>& GetTagsOverride() const { return m_tagsOverride; }
216 inline bool TagsOverrideHasBeenSet() const { return m_tagsOverrideHasBeenSet; }
217 template <typename TagsOverrideT = Aws::Vector<Tag>>
218 void SetTagsOverride(TagsOverrideT&& value) {
219 m_tagsOverrideHasBeenSet = true;
220 m_tagsOverride = std::forward<TagsOverrideT>(value);
221 }
222 template <typename TagsOverrideT = Aws::Vector<Tag>>
223 RestoreTableRequest& WithTagsOverride(TagsOverrideT&& value) {
224 SetTagsOverride(std::forward<TagsOverrideT>(value));
225 return *this;
226 }
227 template <typename TagsOverrideT = Tag>
228 RestoreTableRequest& AddTagsOverride(TagsOverrideT&& value) {
229 m_tagsOverrideHasBeenSet = true;
230 m_tagsOverride.emplace_back(std::forward<TagsOverrideT>(value));
231 return *this;
232 }
234
236
247 inline const AutoScalingSpecification& GetAutoScalingSpecification() const { return m_autoScalingSpecification; }
248 inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; }
249 template <typename AutoScalingSpecificationT = AutoScalingSpecification>
250 void SetAutoScalingSpecification(AutoScalingSpecificationT&& value) {
251 m_autoScalingSpecificationHasBeenSet = true;
252 m_autoScalingSpecification = std::forward<AutoScalingSpecificationT>(value);
253 }
254 template <typename AutoScalingSpecificationT = AutoScalingSpecification>
255 RestoreTableRequest& WithAutoScalingSpecification(AutoScalingSpecificationT&& value) {
256 SetAutoScalingSpecification(std::forward<AutoScalingSpecificationT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<ReplicaSpecification>& GetReplicaSpecifications() const { return m_replicaSpecifications; }
266 inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; }
267 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecification>>
268 void SetReplicaSpecifications(ReplicaSpecificationsT&& value) {
269 m_replicaSpecificationsHasBeenSet = true;
270 m_replicaSpecifications = std::forward<ReplicaSpecificationsT>(value);
271 }
272 template <typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecification>>
273 RestoreTableRequest& WithReplicaSpecifications(ReplicaSpecificationsT&& value) {
274 SetReplicaSpecifications(std::forward<ReplicaSpecificationsT>(value));
275 return *this;
276 }
277 template <typename ReplicaSpecificationsT = ReplicaSpecification>
278 RestoreTableRequest& AddReplicaSpecifications(ReplicaSpecificationsT&& value) {
279 m_replicaSpecificationsHasBeenSet = true;
280 m_replicaSpecifications.emplace_back(std::forward<ReplicaSpecificationsT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_sourceKeyspaceName;
286
287 Aws::String m_sourceTableName;
288
289 Aws::String m_targetKeyspaceName;
290
291 Aws::String m_targetTableName;
292
293 Aws::Utils::DateTime m_restoreTimestamp{};
294
295 CapacitySpecification m_capacitySpecificationOverride;
296
297 EncryptionSpecification m_encryptionSpecificationOverride;
298
299 PointInTimeRecovery m_pointInTimeRecoveryOverride;
300
301 Aws::Vector<Tag> m_tagsOverride;
302
303 AutoScalingSpecification m_autoScalingSpecification;
304
305 Aws::Vector<ReplicaSpecification> m_replicaSpecifications;
306 bool m_sourceKeyspaceNameHasBeenSet = false;
307 bool m_sourceTableNameHasBeenSet = false;
308 bool m_targetKeyspaceNameHasBeenSet = false;
309 bool m_targetTableNameHasBeenSet = false;
310 bool m_restoreTimestampHasBeenSet = false;
311 bool m_capacitySpecificationOverrideHasBeenSet = false;
312 bool m_encryptionSpecificationOverrideHasBeenSet = false;
313 bool m_pointInTimeRecoveryOverrideHasBeenSet = false;
314 bool m_tagsOverrideHasBeenSet = false;
315 bool m_autoScalingSpecificationHasBeenSet = false;
316 bool m_replicaSpecificationsHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace Keyspaces
321} // namespace Aws
void SetRestoreTimestamp(RestoreTimestampT &&value)
void SetTargetTableName(TargetTableNameT &&value)
RestoreTableRequest & WithReplicaSpecifications(ReplicaSpecificationsT &&value)
const PointInTimeRecovery & GetPointInTimeRecoveryOverride() const
const Aws::String & GetTargetKeyspaceName() const
AWS_KEYSPACES_API Aws::String SerializePayload() const override
RestoreTableRequest & WithEncryptionSpecificationOverride(EncryptionSpecificationOverrideT &&value)
RestoreTableRequest & WithSourceKeyspaceName(SourceKeyspaceNameT &&value)
void SetAutoScalingSpecification(AutoScalingSpecificationT &&value)
RestoreTableRequest & WithTargetTableName(TargetTableNameT &&value)
const Aws::Vector< ReplicaSpecification > & GetReplicaSpecifications() const
const Aws::Vector< Tag > & GetTagsOverride() const
const CapacitySpecification & GetCapacitySpecificationOverride() const
RestoreTableRequest & WithTagsOverride(TagsOverrideT &&value)
void SetSourceTableName(SourceTableNameT &&value)
const EncryptionSpecification & GetEncryptionSpecificationOverride() const
void SetPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT &&value)
const Aws::Utils::DateTime & GetRestoreTimestamp() const
const AutoScalingSpecification & GetAutoScalingSpecification() const
virtual const char * GetServiceRequestName() const override
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetReplicaSpecifications(ReplicaSpecificationsT &&value)
const Aws::String & GetSourceKeyspaceName() const
RestoreTableRequest & WithTargetKeyspaceName(TargetKeyspaceNameT &&value)
void SetEncryptionSpecificationOverride(EncryptionSpecificationOverrideT &&value)
AWS_KEYSPACES_API RestoreTableRequest()=default
void SetSourceKeyspaceName(SourceKeyspaceNameT &&value)
RestoreTableRequest & WithAutoScalingSpecification(AutoScalingSpecificationT &&value)
RestoreTableRequest & WithSourceTableName(SourceTableNameT &&value)
RestoreTableRequest & WithCapacitySpecificationOverride(CapacitySpecificationOverrideT &&value)
void SetTargetKeyspaceName(TargetKeyspaceNameT &&value)
RestoreTableRequest & WithRestoreTimestamp(RestoreTimestampT &&value)
RestoreTableRequest & AddTagsOverride(TagsOverrideT &&value)
RestoreTableRequest & AddReplicaSpecifications(ReplicaSpecificationsT &&value)
RestoreTableRequest & WithPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT &&value)
void SetCapacitySpecificationOverride(CapacitySpecificationOverrideT &&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