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/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/BillingMode.h>
12#include <aws/dynamodb/model/ProvisionedThroughput.h>
13#include <aws/dynamodb/model/StreamSpecification.h>
14#include <aws/dynamodb/model/SSESpecification.h>
15#include <aws/dynamodb/model/TableClass.h>
16#include <aws/dynamodb/model/OnDemandThroughput.h>
17#include <aws/dynamodb/model/AttributeDefinition.h>
18#include <aws/dynamodb/model/GlobalSecondaryIndexUpdate.h>
19#include <aws/dynamodb/model/ReplicationGroupUpdate.h>
20#include <utility>
21
22namespace Aws
23{
24namespace DynamoDB
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DYNAMODB_API UpdateTableRequest();
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "UpdateTable"; }
45
46 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
47
49
50
52
58 inline const Aws::Vector<AttributeDefinition>& GetAttributeDefinitions() const{ return m_attributeDefinitions; }
59 inline bool AttributeDefinitionsHasBeenSet() const { return m_attributeDefinitionsHasBeenSet; }
60 inline void SetAttributeDefinitions(const Aws::Vector<AttributeDefinition>& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions = value; }
61 inline void SetAttributeDefinitions(Aws::Vector<AttributeDefinition>&& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions = std::move(value); }
64 inline UpdateTableRequest& AddAttributeDefinitions(const AttributeDefinition& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions.push_back(value); return *this; }
65 inline UpdateTableRequest& AddAttributeDefinitions(AttributeDefinition&& value) { m_attributeDefinitionsHasBeenSet = true; m_attributeDefinitions.push_back(std::move(value)); return *this; }
67
69
73 inline const Aws::String& GetTableName() const{ return m_tableName; }
74 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
75 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
76 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
77 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
78 inline UpdateTableRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
79 inline UpdateTableRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
80 inline UpdateTableRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
82
84
99 inline const BillingMode& GetBillingMode() const{ return m_billingMode; }
100 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
101 inline void SetBillingMode(const BillingMode& value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
102 inline void SetBillingMode(BillingMode&& value) { m_billingModeHasBeenSet = true; m_billingMode = std::move(value); }
103 inline UpdateTableRequest& WithBillingMode(const BillingMode& value) { SetBillingMode(value); return *this;}
104 inline UpdateTableRequest& WithBillingMode(BillingMode&& value) { SetBillingMode(std::move(value)); return *this;}
106
108
111 inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; }
112 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
113 inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
114 inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); }
118
120
132 inline const Aws::Vector<GlobalSecondaryIndexUpdate>& GetGlobalSecondaryIndexUpdates() const{ return m_globalSecondaryIndexUpdates; }
133 inline bool GlobalSecondaryIndexUpdatesHasBeenSet() const { return m_globalSecondaryIndexUpdatesHasBeenSet; }
134 inline void SetGlobalSecondaryIndexUpdates(const Aws::Vector<GlobalSecondaryIndexUpdate>& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = value; }
135 inline void SetGlobalSecondaryIndexUpdates(Aws::Vector<GlobalSecondaryIndexUpdate>&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = std::move(value); }
138 inline UpdateTableRequest& AddGlobalSecondaryIndexUpdates(const GlobalSecondaryIndexUpdate& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(value); return *this; }
139 inline UpdateTableRequest& AddGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(std::move(value)); return *this; }
141
143
149 inline const StreamSpecification& GetStreamSpecification() const{ return m_streamSpecification; }
150 inline bool StreamSpecificationHasBeenSet() const { return m_streamSpecificationHasBeenSet; }
151 inline void SetStreamSpecification(const StreamSpecification& value) { m_streamSpecificationHasBeenSet = true; m_streamSpecification = value; }
152 inline void SetStreamSpecification(StreamSpecification&& value) { m_streamSpecificationHasBeenSet = true; m_streamSpecification = std::move(value); }
156
158
161 inline const SSESpecification& GetSSESpecification() const{ return m_sSESpecification; }
162 inline bool SSESpecificationHasBeenSet() const { return m_sSESpecificationHasBeenSet; }
163 inline void SetSSESpecification(const SSESpecification& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = value; }
164 inline void SetSSESpecification(SSESpecification&& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = std::move(value); }
166 inline UpdateTableRequest& WithSSESpecification(SSESpecification&& value) { SetSSESpecification(std::move(value)); return *this;}
168
170
175 inline const Aws::Vector<ReplicationGroupUpdate>& GetReplicaUpdates() const{ return m_replicaUpdates; }
176 inline bool ReplicaUpdatesHasBeenSet() const { return m_replicaUpdatesHasBeenSet; }
177 inline void SetReplicaUpdates(const Aws::Vector<ReplicationGroupUpdate>& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = value; }
178 inline void SetReplicaUpdates(Aws::Vector<ReplicationGroupUpdate>&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = std::move(value); }
181 inline UpdateTableRequest& AddReplicaUpdates(const ReplicationGroupUpdate& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(value); return *this; }
182 inline UpdateTableRequest& AddReplicaUpdates(ReplicationGroupUpdate&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(std::move(value)); return *this; }
184
186
190 inline const TableClass& GetTableClass() const{ return m_tableClass; }
191 inline bool TableClassHasBeenSet() const { return m_tableClassHasBeenSet; }
192 inline void SetTableClass(const TableClass& value) { m_tableClassHasBeenSet = true; m_tableClass = value; }
193 inline void SetTableClass(TableClass&& value) { m_tableClassHasBeenSet = true; m_tableClass = std::move(value); }
194 inline UpdateTableRequest& WithTableClass(const TableClass& value) { SetTableClass(value); return *this;}
195 inline UpdateTableRequest& WithTableClass(TableClass&& value) { SetTableClass(std::move(value)); return *this;}
197
199
203 inline bool GetDeletionProtectionEnabled() const{ return m_deletionProtectionEnabled; }
204 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
205 inline void SetDeletionProtectionEnabled(bool value) { m_deletionProtectionEnabledHasBeenSet = true; m_deletionProtectionEnabled = value; }
208
210
216 inline const OnDemandThroughput& GetOnDemandThroughput() const{ return m_onDemandThroughput; }
217 inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; }
218 inline void SetOnDemandThroughput(const OnDemandThroughput& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = value; }
219 inline void SetOnDemandThroughput(OnDemandThroughput&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::move(value); }
221 inline UpdateTableRequest& WithOnDemandThroughput(OnDemandThroughput&& value) { SetOnDemandThroughput(std::move(value)); return *this;}
223 private:
224
225 Aws::Vector<AttributeDefinition> m_attributeDefinitions;
226 bool m_attributeDefinitionsHasBeenSet = false;
227
228 Aws::String m_tableName;
229 bool m_tableNameHasBeenSet = false;
230
231 BillingMode m_billingMode;
232 bool m_billingModeHasBeenSet = false;
233
234 ProvisionedThroughput m_provisionedThroughput;
235 bool m_provisionedThroughputHasBeenSet = false;
236
237 Aws::Vector<GlobalSecondaryIndexUpdate> m_globalSecondaryIndexUpdates;
238 bool m_globalSecondaryIndexUpdatesHasBeenSet = false;
239
240 StreamSpecification m_streamSpecification;
241 bool m_streamSpecificationHasBeenSet = false;
242
243 SSESpecification m_sSESpecification;
244 bool m_sSESpecificationHasBeenSet = false;
245
247 bool m_replicaUpdatesHasBeenSet = false;
248
249 TableClass m_tableClass;
250 bool m_tableClassHasBeenSet = false;
251
252 bool m_deletionProtectionEnabled;
253 bool m_deletionProtectionEnabledHasBeenSet = false;
254
255 OnDemandThroughput m_onDemandThroughput;
256 bool m_onDemandThroughputHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace DynamoDB
261} // namespace Aws
UpdateTableRequest & WithTableName(Aws::String &&value)
void SetGlobalSecondaryIndexUpdates(Aws::Vector< GlobalSecondaryIndexUpdate > &&value)
void SetOnDemandThroughput(const OnDemandThroughput &value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
UpdateTableRequest & WithBillingMode(BillingMode &&value)
UpdateTableRequest & WithAttributeDefinitions(Aws::Vector< AttributeDefinition > &&value)
void SetReplicaUpdates(Aws::Vector< ReplicationGroupUpdate > &&value)
void SetTableName(const Aws::String &value)
void SetAttributeDefinitions(Aws::Vector< AttributeDefinition > &&value)
UpdateTableRequest & WithAttributeDefinitions(const Aws::Vector< AttributeDefinition > &value)
UpdateTableRequest & WithProvisionedThroughput(const ProvisionedThroughput &value)
UpdateTableRequest & WithStreamSpecification(const StreamSpecification &value)
UpdateTableRequest & WithGlobalSecondaryIndexUpdates(Aws::Vector< GlobalSecondaryIndexUpdate > &&value)
const Aws::Vector< AttributeDefinition > & GetAttributeDefinitions() const
UpdateTableRequest & WithDeletionProtectionEnabled(bool value)
UpdateTableRequest & WithTableName(const char *value)
const SSESpecification & GetSSESpecification() const
UpdateTableRequest & WithOnDemandThroughput(OnDemandThroughput &&value)
const ProvisionedThroughput & GetProvisionedThroughput() const
UpdateTableRequest & AddAttributeDefinitions(const AttributeDefinition &value)
UpdateTableRequest & WithStreamSpecification(StreamSpecification &&value)
void SetSSESpecification(SSESpecification &&value)
UpdateTableRequest & AddGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate &&value)
void SetOnDemandThroughput(OnDemandThroughput &&value)
UpdateTableRequest & WithTableName(const Aws::String &value)
UpdateTableRequest & WithOnDemandThroughput(const OnDemandThroughput &value)
void SetProvisionedThroughput(ProvisionedThroughput &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTableRequest & WithBillingMode(const BillingMode &value)
void SetBillingMode(const BillingMode &value)
UpdateTableRequest & WithSSESpecification(const SSESpecification &value)
UpdateTableRequest & AddReplicaUpdates(ReplicationGroupUpdate &&value)
void SetGlobalSecondaryIndexUpdates(const Aws::Vector< GlobalSecondaryIndexUpdate > &value)
UpdateTableRequest & WithTableClass(TableClass &&value)
UpdateTableRequest & WithReplicaUpdates(Aws::Vector< ReplicationGroupUpdate > &&value)
void SetReplicaUpdates(const Aws::Vector< ReplicationGroupUpdate > &value)
void SetTableClass(const TableClass &value)
void SetStreamSpecification(StreamSpecification &&value)
UpdateTableRequest & AddAttributeDefinitions(AttributeDefinition &&value)
const Aws::Vector< GlobalSecondaryIndexUpdate > & GetGlobalSecondaryIndexUpdates() const
const OnDemandThroughput & GetOnDemandThroughput() const
void SetProvisionedThroughput(const ProvisionedThroughput &value)
const StreamSpecification & GetStreamSpecification() const
virtual const char * GetServiceRequestName() const override
void SetStreamSpecification(const StreamSpecification &value)
UpdateTableRequest & WithTableClass(const TableClass &value)
UpdateTableRequest & WithGlobalSecondaryIndexUpdates(const Aws::Vector< GlobalSecondaryIndexUpdate > &value)
UpdateTableRequest & WithSSESpecification(SSESpecification &&value)
void SetAttributeDefinitions(const Aws::Vector< AttributeDefinition > &value)
UpdateTableRequest & AddGlobalSecondaryIndexUpdates(const GlobalSecondaryIndexUpdate &value)
UpdateTableRequest & WithReplicaUpdates(const Aws::Vector< ReplicationGroupUpdate > &value)
const BillingMode & GetBillingMode() const
void SetSSESpecification(const SSESpecification &value)
UpdateTableRequest & WithProvisionedThroughput(ProvisionedThroughput &&value)
UpdateTableRequest & AddReplicaUpdates(const ReplicationGroupUpdate &value)
const Aws::Vector< ReplicationGroupUpdate > & GetReplicaUpdates() const
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