AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTableRequest.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/memory/stl/AWSVector.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/keyspaces/model/TimeToLive.h>
15#include <aws/keyspaces/model/ClientSideTimestamps.h>
16#include <aws/keyspaces/model/AutoScalingSpecification.h>
17#include <aws/keyspaces/model/ColumnDefinition.h>
18#include <aws/keyspaces/model/ReplicaSpecification.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Keyspaces
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_KEYSPACES_API UpdateTableRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateTable"; }
40
41 AWS_KEYSPACES_API Aws::String SerializePayload() const override;
42
44
45
47
50 inline const Aws::String& GetKeyspaceName() const{ return m_keyspaceName; }
51 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
52 inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = value; }
53 inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::move(value); }
54 inline void SetKeyspaceName(const char* value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName.assign(value); }
55 inline UpdateTableRequest& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;}
56 inline UpdateTableRequest& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;}
57 inline UpdateTableRequest& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;}
59
61
64 inline const Aws::String& GetTableName() const{ return m_tableName; }
65 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
66 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
67 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
68 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
69 inline UpdateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
70 inline UpdateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
71 inline UpdateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
73
75
82 inline const Aws::Vector<ColumnDefinition>& GetAddColumns() const{ return m_addColumns; }
83 inline bool AddColumnsHasBeenSet() const { return m_addColumnsHasBeenSet; }
84 inline void SetAddColumns(const Aws::Vector<ColumnDefinition>& value) { m_addColumnsHasBeenSet = true; m_addColumns = value; }
85 inline void SetAddColumns(Aws::Vector<ColumnDefinition>&& value) { m_addColumnsHasBeenSet = true; m_addColumns = std::move(value); }
87 inline UpdateTableRequest& WithAddColumns(Aws::Vector<ColumnDefinition>&& value) { SetAddColumns(std::move(value)); return *this;}
88 inline UpdateTableRequest& AddAddColumns(const ColumnDefinition& value) { m_addColumnsHasBeenSet = true; m_addColumns.push_back(value); return *this; }
89 inline UpdateTableRequest& AddAddColumns(ColumnDefinition&& value) { m_addColumnsHasBeenSet = true; m_addColumns.push_back(std::move(value)); return *this; }
91
93
104 inline const CapacitySpecification& GetCapacitySpecification() const{ return m_capacitySpecification; }
105 inline bool CapacitySpecificationHasBeenSet() const { return m_capacitySpecificationHasBeenSet; }
106 inline void SetCapacitySpecification(const CapacitySpecification& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = value; }
107 inline void SetCapacitySpecification(CapacitySpecification&& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = std::move(value); }
111
113
125 inline const EncryptionSpecification& GetEncryptionSpecification() const{ return m_encryptionSpecification; }
126 inline bool EncryptionSpecificationHasBeenSet() const { return m_encryptionSpecificationHasBeenSet; }
127 inline void SetEncryptionSpecification(const EncryptionSpecification& value) { m_encryptionSpecificationHasBeenSet = true; m_encryptionSpecification = value; }
128 inline void SetEncryptionSpecification(EncryptionSpecification&& value) { m_encryptionSpecificationHasBeenSet = true; m_encryptionSpecification = std::move(value); }
132
134
142 inline const PointInTimeRecovery& GetPointInTimeRecovery() const{ return m_pointInTimeRecovery; }
143 inline bool PointInTimeRecoveryHasBeenSet() const { return m_pointInTimeRecoveryHasBeenSet; }
144 inline void SetPointInTimeRecovery(const PointInTimeRecovery& value) { m_pointInTimeRecoveryHasBeenSet = true; m_pointInTimeRecovery = value; }
145 inline void SetPointInTimeRecovery(PointInTimeRecovery&& value) { m_pointInTimeRecoveryHasBeenSet = true; m_pointInTimeRecovery = std::move(value); }
149
151
161 inline const TimeToLive& GetTtl() const{ return m_ttl; }
162 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
163 inline void SetTtl(const TimeToLive& value) { m_ttlHasBeenSet = true; m_ttl = value; }
164 inline void SetTtl(TimeToLive&& value) { m_ttlHasBeenSet = true; m_ttl = std::move(value); }
165 inline UpdateTableRequest& WithTtl(const TimeToLive& value) { SetTtl(value); return *this;}
166 inline UpdateTableRequest& WithTtl(TimeToLive&& value) { SetTtl(std::move(value)); return *this;}
168
170
177 inline int GetDefaultTimeToLive() const{ return m_defaultTimeToLive; }
178 inline bool DefaultTimeToLiveHasBeenSet() const { return m_defaultTimeToLiveHasBeenSet; }
179 inline void SetDefaultTimeToLive(int value) { m_defaultTimeToLiveHasBeenSet = true; m_defaultTimeToLive = value; }
180 inline UpdateTableRequest& WithDefaultTimeToLive(int value) { SetDefaultTimeToLive(value); return *this;}
182
184
191 inline const ClientSideTimestamps& GetClientSideTimestamps() const{ return m_clientSideTimestamps; }
192 inline bool ClientSideTimestampsHasBeenSet() const { return m_clientSideTimestampsHasBeenSet; }
193 inline void SetClientSideTimestamps(const ClientSideTimestamps& value) { m_clientSideTimestampsHasBeenSet = true; m_clientSideTimestamps = value; }
194 inline void SetClientSideTimestamps(ClientSideTimestamps&& value) { m_clientSideTimestampsHasBeenSet = true; m_clientSideTimestamps = std::move(value); }
198
200
214 inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; }
215 inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; }
216 inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; }
217 inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); }
221
223
226 inline const Aws::Vector<ReplicaSpecification>& GetReplicaSpecifications() const{ return m_replicaSpecifications; }
227 inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; }
228 inline void SetReplicaSpecifications(const Aws::Vector<ReplicaSpecification>& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = value; }
229 inline void SetReplicaSpecifications(Aws::Vector<ReplicaSpecification>&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = std::move(value); }
232 inline UpdateTableRequest& AddReplicaSpecifications(const ReplicaSpecification& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(value); return *this; }
233 inline UpdateTableRequest& AddReplicaSpecifications(ReplicaSpecification&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(std::move(value)); return *this; }
235 private:
236
237 Aws::String m_keyspaceName;
238 bool m_keyspaceNameHasBeenSet = false;
239
240 Aws::String m_tableName;
241 bool m_tableNameHasBeenSet = false;
242
244 bool m_addColumnsHasBeenSet = false;
245
246 CapacitySpecification m_capacitySpecification;
247 bool m_capacitySpecificationHasBeenSet = false;
248
249 EncryptionSpecification m_encryptionSpecification;
250 bool m_encryptionSpecificationHasBeenSet = false;
251
252 PointInTimeRecovery m_pointInTimeRecovery;
253 bool m_pointInTimeRecoveryHasBeenSet = false;
254
255 TimeToLive m_ttl;
256 bool m_ttlHasBeenSet = false;
257
258 int m_defaultTimeToLive;
259 bool m_defaultTimeToLiveHasBeenSet = false;
260
261 ClientSideTimestamps m_clientSideTimestamps;
262 bool m_clientSideTimestampsHasBeenSet = false;
263
264 AutoScalingSpecification m_autoScalingSpecification;
265 bool m_autoScalingSpecificationHasBeenSet = false;
266
267 Aws::Vector<ReplicaSpecification> m_replicaSpecifications;
268 bool m_replicaSpecificationsHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace Keyspaces
273} // namespace Aws
void SetEncryptionSpecification(const EncryptionSpecification &value)
virtual const char * GetServiceRequestName() const override
UpdateTableRequest & WithEncryptionSpecification(EncryptionSpecification &&value)
const CapacitySpecification & GetCapacitySpecification() const
const EncryptionSpecification & GetEncryptionSpecification() const
const PointInTimeRecovery & GetPointInTimeRecovery() const
UpdateTableRequest & WithKeyspaceName(Aws::String &&value)
UpdateTableRequest & WithCapacitySpecification(CapacitySpecification &&value)
UpdateTableRequest & WithPointInTimeRecovery(const PointInTimeRecovery &value)
UpdateTableRequest & AddAddColumns(const ColumnDefinition &value)
UpdateTableRequest & AddReplicaSpecifications(const ReplicaSpecification &value)
void SetTableName(const Aws::String &value)
UpdateTableRequest & AddAddColumns(ColumnDefinition &&value)
UpdateTableRequest & WithReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
void SetCapacitySpecification(CapacitySpecification &&value)
UpdateTableRequest & WithClientSideTimestamps(const ClientSideTimestamps &value)
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTableRequest & WithDefaultTimeToLive(int value)
void SetCapacitySpecification(const CapacitySpecification &value)
void SetClientSideTimestamps(const ClientSideTimestamps &value)
UpdateTableRequest & WithTableName(const char *value)
UpdateTableRequest & WithReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
UpdateTableRequest & WithPointInTimeRecovery(PointInTimeRecovery &&value)
UpdateTableRequest & WithAddColumns(Aws::Vector< ColumnDefinition > &&value)
void SetEncryptionSpecification(EncryptionSpecification &&value)
UpdateTableRequest & WithTableName(Aws::String &&value)
UpdateTableRequest & WithKeyspaceName(const char *value)
const AutoScalingSpecification & GetAutoScalingSpecification() const
UpdateTableRequest & AddReplicaSpecifications(ReplicaSpecification &&value)
void SetAddColumns(const Aws::Vector< ColumnDefinition > &value)
void SetPointInTimeRecovery(PointInTimeRecovery &&value)
UpdateTableRequest & WithCapacitySpecification(const CapacitySpecification &value)
const Aws::Vector< ReplicaSpecification > & GetReplicaSpecifications() const
AWS_KEYSPACES_API Aws::String SerializePayload() const override
const ClientSideTimestamps & GetClientSideTimestamps() const
UpdateTableRequest & WithAutoScalingSpecification(const AutoScalingSpecification &value)
const Aws::String & GetKeyspaceName() const
const Aws::Vector< ColumnDefinition > & GetAddColumns() const
void SetClientSideTimestamps(ClientSideTimestamps &&value)
UpdateTableRequest & WithTtl(const TimeToLive &value)
UpdateTableRequest & WithTableName(const Aws::String &value)
void SetReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
void SetReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
UpdateTableRequest & WithTtl(TimeToLive &&value)
void SetAddColumns(Aws::Vector< ColumnDefinition > &&value)
UpdateTableRequest & WithAutoScalingSpecification(AutoScalingSpecification &&value)
void SetAutoScalingSpecification(AutoScalingSpecification &&value)
void SetPointInTimeRecovery(const PointInTimeRecovery &value)
UpdateTableRequest & WithClientSideTimestamps(ClientSideTimestamps &&value)
UpdateTableRequest & WithEncryptionSpecification(const EncryptionSpecification &value)
UpdateTableRequest & WithAddColumns(const Aws::Vector< ColumnDefinition > &value)
void SetAutoScalingSpecification(const AutoScalingSpecification &value)
UpdateTableRequest & WithKeyspaceName(const Aws::String &value)
void SetKeyspaceName(const Aws::String &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