AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SourceKeyspaceNameT = Aws::String>
52 void SetSourceKeyspaceName(SourceKeyspaceNameT&& value) { m_sourceKeyspaceNameHasBeenSet = true; m_sourceKeyspaceName = std::forward<SourceKeyspaceNameT>(value); }
53 template<typename SourceKeyspaceNameT = Aws::String>
54 RestoreTableRequest& WithSourceKeyspaceName(SourceKeyspaceNameT&& value) { SetSourceKeyspaceName(std::forward<SourceKeyspaceNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetSourceTableName() const { return m_sourceTableName; }
62 inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; }
63 template<typename SourceTableNameT = Aws::String>
64 void SetSourceTableName(SourceTableNameT&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::forward<SourceTableNameT>(value); }
65 template<typename SourceTableNameT = Aws::String>
66 RestoreTableRequest& WithSourceTableName(SourceTableNameT&& value) { SetSourceTableName(std::forward<SourceTableNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetTargetKeyspaceName() const { return m_targetKeyspaceName; }
74 inline bool TargetKeyspaceNameHasBeenSet() const { return m_targetKeyspaceNameHasBeenSet; }
75 template<typename TargetKeyspaceNameT = Aws::String>
76 void SetTargetKeyspaceName(TargetKeyspaceNameT&& value) { m_targetKeyspaceNameHasBeenSet = true; m_targetKeyspaceName = std::forward<TargetKeyspaceNameT>(value); }
77 template<typename TargetKeyspaceNameT = Aws::String>
78 RestoreTableRequest& WithTargetKeyspaceName(TargetKeyspaceNameT&& value) { SetTargetKeyspaceName(std::forward<TargetKeyspaceNameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetTargetTableName() const { return m_targetTableName; }
86 inline bool TargetTableNameHasBeenSet() const { return m_targetTableNameHasBeenSet; }
87 template<typename TargetTableNameT = Aws::String>
88 void SetTargetTableName(TargetTableNameT&& value) { m_targetTableNameHasBeenSet = true; m_targetTableName = std::forward<TargetTableNameT>(value); }
89 template<typename TargetTableNameT = Aws::String>
90 RestoreTableRequest& WithTargetTableName(TargetTableNameT&& value) { SetTargetTableName(std::forward<TargetTableNameT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetRestoreTimestamp() const { return m_restoreTimestamp; }
98 inline bool RestoreTimestampHasBeenSet() const { return m_restoreTimestampHasBeenSet; }
99 template<typename RestoreTimestampT = Aws::Utils::DateTime>
100 void SetRestoreTimestamp(RestoreTimestampT&& value) { m_restoreTimestampHasBeenSet = true; m_restoreTimestamp = std::forward<RestoreTimestampT>(value); }
101 template<typename RestoreTimestampT = Aws::Utils::DateTime>
102 RestoreTableRequest& WithRestoreTimestamp(RestoreTimestampT&& value) { SetRestoreTimestamp(std::forward<RestoreTimestampT>(value)); return *this;}
104
106
117 inline const CapacitySpecification& GetCapacitySpecificationOverride() const { return m_capacitySpecificationOverride; }
118 inline bool CapacitySpecificationOverrideHasBeenSet() const { return m_capacitySpecificationOverrideHasBeenSet; }
119 template<typename CapacitySpecificationOverrideT = CapacitySpecification>
120 void SetCapacitySpecificationOverride(CapacitySpecificationOverrideT&& value) { m_capacitySpecificationOverrideHasBeenSet = true; m_capacitySpecificationOverride = std::forward<CapacitySpecificationOverrideT>(value); }
121 template<typename CapacitySpecificationOverrideT = CapacitySpecification>
122 RestoreTableRequest& WithCapacitySpecificationOverride(CapacitySpecificationOverrideT&& value) { SetCapacitySpecificationOverride(std::forward<CapacitySpecificationOverrideT>(value)); return *this;}
124
126
138 inline const EncryptionSpecification& GetEncryptionSpecificationOverride() const { return m_encryptionSpecificationOverride; }
139 inline bool EncryptionSpecificationOverrideHasBeenSet() const { return m_encryptionSpecificationOverrideHasBeenSet; }
140 template<typename EncryptionSpecificationOverrideT = EncryptionSpecification>
141 void SetEncryptionSpecificationOverride(EncryptionSpecificationOverrideT&& value) { m_encryptionSpecificationOverrideHasBeenSet = true; m_encryptionSpecificationOverride = std::forward<EncryptionSpecificationOverrideT>(value); }
142 template<typename EncryptionSpecificationOverrideT = EncryptionSpecification>
143 RestoreTableRequest& WithEncryptionSpecificationOverride(EncryptionSpecificationOverrideT&& value) { SetEncryptionSpecificationOverride(std::forward<EncryptionSpecificationOverrideT>(value)); return *this;}
145
147
155 inline const PointInTimeRecovery& GetPointInTimeRecoveryOverride() const { return m_pointInTimeRecoveryOverride; }
156 inline bool PointInTimeRecoveryOverrideHasBeenSet() const { return m_pointInTimeRecoveryOverrideHasBeenSet; }
157 template<typename PointInTimeRecoveryOverrideT = PointInTimeRecovery>
158 void SetPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT&& value) { m_pointInTimeRecoveryOverrideHasBeenSet = true; m_pointInTimeRecoveryOverride = std::forward<PointInTimeRecoveryOverrideT>(value); }
159 template<typename PointInTimeRecoveryOverrideT = PointInTimeRecovery>
160 RestoreTableRequest& WithPointInTimeRecoveryOverride(PointInTimeRecoveryOverrideT&& value) { SetPointInTimeRecoveryOverride(std::forward<PointInTimeRecoveryOverrideT>(value)); return *this;}
162
164
171 inline const Aws::Vector<Tag>& GetTagsOverride() const { return m_tagsOverride; }
172 inline bool TagsOverrideHasBeenSet() const { return m_tagsOverrideHasBeenSet; }
173 template<typename TagsOverrideT = Aws::Vector<Tag>>
174 void SetTagsOverride(TagsOverrideT&& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride = std::forward<TagsOverrideT>(value); }
175 template<typename TagsOverrideT = Aws::Vector<Tag>>
176 RestoreTableRequest& WithTagsOverride(TagsOverrideT&& value) { SetTagsOverride(std::forward<TagsOverrideT>(value)); return *this;}
177 template<typename TagsOverrideT = Tag>
178 RestoreTableRequest& AddTagsOverride(TagsOverrideT&& value) { m_tagsOverrideHasBeenSet = true; m_tagsOverride.emplace_back(std::forward<TagsOverrideT>(value)); return *this; }
180
182
193 inline const AutoScalingSpecification& GetAutoScalingSpecification() const { return m_autoScalingSpecification; }
194 inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; }
195 template<typename AutoScalingSpecificationT = AutoScalingSpecification>
196 void SetAutoScalingSpecification(AutoScalingSpecificationT&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::forward<AutoScalingSpecificationT>(value); }
197 template<typename AutoScalingSpecificationT = AutoScalingSpecification>
198 RestoreTableRequest& WithAutoScalingSpecification(AutoScalingSpecificationT&& value) { SetAutoScalingSpecification(std::forward<AutoScalingSpecificationT>(value)); return *this;}
200
202
205 inline const Aws::Vector<ReplicaSpecification>& GetReplicaSpecifications() const { return m_replicaSpecifications; }
206 inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; }
207 template<typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecification>>
208 void SetReplicaSpecifications(ReplicaSpecificationsT&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = std::forward<ReplicaSpecificationsT>(value); }
209 template<typename ReplicaSpecificationsT = Aws::Vector<ReplicaSpecification>>
210 RestoreTableRequest& WithReplicaSpecifications(ReplicaSpecificationsT&& value) { SetReplicaSpecifications(std::forward<ReplicaSpecificationsT>(value)); return *this;}
211 template<typename ReplicaSpecificationsT = ReplicaSpecification>
212 RestoreTableRequest& AddReplicaSpecifications(ReplicaSpecificationsT&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.emplace_back(std::forward<ReplicaSpecificationsT>(value)); return *this; }
214 private:
215
216 Aws::String m_sourceKeyspaceName;
217 bool m_sourceKeyspaceNameHasBeenSet = false;
218
219 Aws::String m_sourceTableName;
220 bool m_sourceTableNameHasBeenSet = false;
221
222 Aws::String m_targetKeyspaceName;
223 bool m_targetKeyspaceNameHasBeenSet = false;
224
225 Aws::String m_targetTableName;
226 bool m_targetTableNameHasBeenSet = false;
227
228 Aws::Utils::DateTime m_restoreTimestamp{};
229 bool m_restoreTimestampHasBeenSet = false;
230
231 CapacitySpecification m_capacitySpecificationOverride;
232 bool m_capacitySpecificationOverrideHasBeenSet = false;
233
234 EncryptionSpecification m_encryptionSpecificationOverride;
235 bool m_encryptionSpecificationOverrideHasBeenSet = false;
236
237 PointInTimeRecovery m_pointInTimeRecoveryOverride;
238 bool m_pointInTimeRecoveryOverrideHasBeenSet = false;
239
240 Aws::Vector<Tag> m_tagsOverride;
241 bool m_tagsOverrideHasBeenSet = false;
242
243 AutoScalingSpecification m_autoScalingSpecification;
244 bool m_autoScalingSpecificationHasBeenSet = false;
245
246 Aws::Vector<ReplicaSpecification> m_replicaSpecifications;
247 bool m_replicaSpecificationsHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace Keyspaces
252} // 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