AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTableRequest.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/keyspaces/model/SchemaDefinition.h>
11#include <aws/keyspaces/model/Comment.h>
12#include <aws/keyspaces/model/CapacitySpecification.h>
13#include <aws/keyspaces/model/EncryptionSpecification.h>
14#include <aws/keyspaces/model/PointInTimeRecovery.h>
15#include <aws/keyspaces/model/TimeToLive.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/keyspaces/model/ClientSideTimestamps.h>
18#include <aws/keyspaces/model/AutoScalingSpecification.h>
19#include <aws/keyspaces/model/Tag.h>
20#include <aws/keyspaces/model/ReplicaSpecification.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Keyspaces
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_KEYSPACES_API CreateTableRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; }
42
43 AWS_KEYSPACES_API Aws::String SerializePayload() const override;
44
46
47
49
52 inline const Aws::String& GetKeyspaceName() const{ return m_keyspaceName; }
53 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
54 inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = value; }
55 inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::move(value); }
56 inline void SetKeyspaceName(const char* value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName.assign(value); }
57 inline CreateTableRequest& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;}
58 inline CreateTableRequest& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;}
59 inline CreateTableRequest& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;}
61
63
66 inline const Aws::String& GetTableName() const{ return m_tableName; }
67 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
68 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
69 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
70 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
71 inline CreateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
72 inline CreateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
73 inline CreateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
75
77
100 inline const SchemaDefinition& GetSchemaDefinition() const{ return m_schemaDefinition; }
101 inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; }
102 inline void SetSchemaDefinition(const SchemaDefinition& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = value; }
103 inline void SetSchemaDefinition(SchemaDefinition&& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = std::move(value); }
105 inline CreateTableRequest& WithSchemaDefinition(SchemaDefinition&& value) { SetSchemaDefinition(std::move(value)); return *this;}
107
109
112 inline const Comment& GetComment() const{ return m_comment; }
113 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
114 inline void SetComment(const Comment& value) { m_commentHasBeenSet = true; m_comment = value; }
115 inline void SetComment(Comment&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
116 inline CreateTableRequest& WithComment(const Comment& value) { SetComment(value); return *this;}
117 inline CreateTableRequest& WithComment(Comment&& value) { SetComment(std::move(value)); return *this;}
119
121
132 inline const CapacitySpecification& GetCapacitySpecification() const{ return m_capacitySpecification; }
133 inline bool CapacitySpecificationHasBeenSet() const { return m_capacitySpecificationHasBeenSet; }
134 inline void SetCapacitySpecification(const CapacitySpecification& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = value; }
135 inline void SetCapacitySpecification(CapacitySpecification&& value) { m_capacitySpecificationHasBeenSet = true; m_capacitySpecification = std::move(value); }
139
141
153 inline const EncryptionSpecification& GetEncryptionSpecification() const{ return m_encryptionSpecification; }
154 inline bool EncryptionSpecificationHasBeenSet() const { return m_encryptionSpecificationHasBeenSet; }
155 inline void SetEncryptionSpecification(const EncryptionSpecification& value) { m_encryptionSpecificationHasBeenSet = true; m_encryptionSpecification = value; }
156 inline void SetEncryptionSpecification(EncryptionSpecification&& value) { m_encryptionSpecificationHasBeenSet = true; m_encryptionSpecification = std::move(value); }
160
162
170 inline const PointInTimeRecovery& GetPointInTimeRecovery() const{ return m_pointInTimeRecovery; }
171 inline bool PointInTimeRecoveryHasBeenSet() const { return m_pointInTimeRecoveryHasBeenSet; }
172 inline void SetPointInTimeRecovery(const PointInTimeRecovery& value) { m_pointInTimeRecoveryHasBeenSet = true; m_pointInTimeRecovery = value; }
173 inline void SetPointInTimeRecovery(PointInTimeRecovery&& value) { m_pointInTimeRecoveryHasBeenSet = true; m_pointInTimeRecovery = std::move(value); }
177
179
189 inline const TimeToLive& GetTtl() const{ return m_ttl; }
190 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
191 inline void SetTtl(const TimeToLive& value) { m_ttlHasBeenSet = true; m_ttl = value; }
192 inline void SetTtl(TimeToLive&& value) { m_ttlHasBeenSet = true; m_ttl = std::move(value); }
193 inline CreateTableRequest& WithTtl(const TimeToLive& value) { SetTtl(value); return *this;}
194 inline CreateTableRequest& WithTtl(TimeToLive&& value) { SetTtl(std::move(value)); return *this;}
196
198
205 inline int GetDefaultTimeToLive() const{ return m_defaultTimeToLive; }
206 inline bool DefaultTimeToLiveHasBeenSet() const { return m_defaultTimeToLiveHasBeenSet; }
207 inline void SetDefaultTimeToLive(int value) { m_defaultTimeToLiveHasBeenSet = true; m_defaultTimeToLive = value; }
208 inline CreateTableRequest& WithDefaultTimeToLive(int value) { SetDefaultTimeToLive(value); return *this;}
210
212
219 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
222 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
223 inline CreateTableRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
224 inline CreateTableRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
225 inline CreateTableRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
226 inline CreateTableRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
228
230
237 inline const ClientSideTimestamps& GetClientSideTimestamps() const{ return m_clientSideTimestamps; }
238 inline bool ClientSideTimestampsHasBeenSet() const { return m_clientSideTimestampsHasBeenSet; }
239 inline void SetClientSideTimestamps(const ClientSideTimestamps& value) { m_clientSideTimestampsHasBeenSet = true; m_clientSideTimestamps = value; }
240 inline void SetClientSideTimestamps(ClientSideTimestamps&& value) { m_clientSideTimestampsHasBeenSet = true; m_clientSideTimestamps = std::move(value); }
244
246
258 inline const AutoScalingSpecification& GetAutoScalingSpecification() const{ return m_autoScalingSpecification; }
259 inline bool AutoScalingSpecificationHasBeenSet() const { return m_autoScalingSpecificationHasBeenSet; }
260 inline void SetAutoScalingSpecification(const AutoScalingSpecification& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = value; }
261 inline void SetAutoScalingSpecification(AutoScalingSpecification&& value) { m_autoScalingSpecificationHasBeenSet = true; m_autoScalingSpecification = std::move(value); }
265
267
281 inline const Aws::Vector<ReplicaSpecification>& GetReplicaSpecifications() const{ return m_replicaSpecifications; }
282 inline bool ReplicaSpecificationsHasBeenSet() const { return m_replicaSpecificationsHasBeenSet; }
283 inline void SetReplicaSpecifications(const Aws::Vector<ReplicaSpecification>& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = value; }
284 inline void SetReplicaSpecifications(Aws::Vector<ReplicaSpecification>&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications = std::move(value); }
287 inline CreateTableRequest& AddReplicaSpecifications(const ReplicaSpecification& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(value); return *this; }
288 inline CreateTableRequest& AddReplicaSpecifications(ReplicaSpecification&& value) { m_replicaSpecificationsHasBeenSet = true; m_replicaSpecifications.push_back(std::move(value)); return *this; }
290 private:
291
292 Aws::String m_keyspaceName;
293 bool m_keyspaceNameHasBeenSet = false;
294
295 Aws::String m_tableName;
296 bool m_tableNameHasBeenSet = false;
297
298 SchemaDefinition m_schemaDefinition;
299 bool m_schemaDefinitionHasBeenSet = false;
300
301 Comment m_comment;
302 bool m_commentHasBeenSet = false;
303
304 CapacitySpecification m_capacitySpecification;
305 bool m_capacitySpecificationHasBeenSet = false;
306
307 EncryptionSpecification m_encryptionSpecification;
308 bool m_encryptionSpecificationHasBeenSet = false;
309
310 PointInTimeRecovery m_pointInTimeRecovery;
311 bool m_pointInTimeRecoveryHasBeenSet = false;
312
313 TimeToLive m_ttl;
314 bool m_ttlHasBeenSet = false;
315
316 int m_defaultTimeToLive;
317 bool m_defaultTimeToLiveHasBeenSet = false;
318
319 Aws::Vector<Tag> m_tags;
320 bool m_tagsHasBeenSet = false;
321
322 ClientSideTimestamps m_clientSideTimestamps;
323 bool m_clientSideTimestampsHasBeenSet = false;
324
325 AutoScalingSpecification m_autoScalingSpecification;
326 bool m_autoScalingSpecificationHasBeenSet = false;
327
328 Aws::Vector<ReplicaSpecification> m_replicaSpecifications;
329 bool m_replicaSpecificationsHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace Keyspaces
334} // namespace Aws
CreateTableRequest & WithTtl(TimeToLive &&value)
void SetSchemaDefinition(const SchemaDefinition &value)
void SetSchemaDefinition(SchemaDefinition &&value)
void SetReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
CreateTableRequest & WithKeyspaceName(const char *value)
CreateTableRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTableRequest & WithTags(Aws::Vector< Tag > &&value)
void SetAutoScalingSpecification(AutoScalingSpecification &&value)
CreateTableRequest & AddReplicaSpecifications(const ReplicaSpecification &value)
CreateTableRequest & WithComment(Comment &&value)
CreateTableRequest & WithAutoScalingSpecification(const AutoScalingSpecification &value)
const Aws::String & GetKeyspaceName() const
const SchemaDefinition & GetSchemaDefinition() const
CreateTableRequest & WithCapacitySpecification(CapacitySpecification &&value)
AWS_KEYSPACES_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
void SetPointInTimeRecovery(const PointInTimeRecovery &value)
void SetReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
void SetPointInTimeRecovery(PointInTimeRecovery &&value)
const CapacitySpecification & GetCapacitySpecification() const
CreateTableRequest & WithReplicaSpecifications(Aws::Vector< ReplicaSpecification > &&value)
CreateTableRequest & WithReplicaSpecifications(const Aws::Vector< ReplicaSpecification > &value)
CreateTableRequest & WithComment(const Comment &value)
const EncryptionSpecification & GetEncryptionSpecification() const
void SetEncryptionSpecification(const EncryptionSpecification &value)
CreateTableRequest & WithClientSideTimestamps(const ClientSideTimestamps &value)
CreateTableRequest & WithSchemaDefinition(const SchemaDefinition &value)
CreateTableRequest & WithClientSideTimestamps(ClientSideTimestamps &&value)
CreateTableRequest & WithTtl(const TimeToLive &value)
const ClientSideTimestamps & GetClientSideTimestamps() const
CreateTableRequest & WithAutoScalingSpecification(AutoScalingSpecification &&value)
CreateTableRequest & WithEncryptionSpecification(EncryptionSpecification &&value)
void SetKeyspaceName(const Aws::String &value)
CreateTableRequest & AddTags(const Tag &value)
void SetEncryptionSpecification(EncryptionSpecification &&value)
void SetAutoScalingSpecification(const AutoScalingSpecification &value)
const Aws::Vector< Tag > & GetTags() const
void SetTableName(const Aws::String &value)
CreateTableRequest & WithPointInTimeRecovery(const PointInTimeRecovery &value)
CreateTableRequest & WithSchemaDefinition(SchemaDefinition &&value)
CreateTableRequest & WithTableName(const Aws::String &value)
void SetClientSideTimestamps(ClientSideTimestamps &&value)
const Aws::Vector< ReplicaSpecification > & GetReplicaSpecifications() const
CreateTableRequest & AddTags(Tag &&value)
const AutoScalingSpecification & GetAutoScalingSpecification() const
CreateTableRequest & WithDefaultTimeToLive(int value)
void SetCapacitySpecification(const CapacitySpecification &value)
CreateTableRequest & WithTableName(const char *value)
CreateTableRequest & WithPointInTimeRecovery(PointInTimeRecovery &&value)
CreateTableRequest & WithKeyspaceName(const Aws::String &value)
void SetClientSideTimestamps(const ClientSideTimestamps &value)
CreateTableRequest & WithKeyspaceName(Aws::String &&value)
CreateTableRequest & WithEncryptionSpecification(const EncryptionSpecification &value)
CreateTableRequest & WithCapacitySpecification(const CapacitySpecification &value)
const PointInTimeRecovery & GetPointInTimeRecovery() const
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateTableRequest & WithTableName(Aws::String &&value)
void SetCapacitySpecification(CapacitySpecification &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateTableRequest & AddReplicaSpecifications(ReplicaSpecification &&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