AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateGlobalTableSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dynamodb/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/AutoScalingSettingsUpdate.h>
12#include <aws/dynamodb/model/BillingMode.h>
13#include <aws/dynamodb/model/GlobalTableGlobalSecondaryIndexSettingsUpdate.h>
14#include <aws/dynamodb/model/ReplicaSettingsUpdate.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DynamoDB {
20namespace Model {
21
25 public:
26 AWS_DYNAMODB_API UpdateGlobalTableSettingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateGlobalTableSettings"; }
33
34 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
35
37
41 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
42
44
47 inline const Aws::String& GetGlobalTableName() const { return m_globalTableName; }
48 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
49 template <typename GlobalTableNameT = Aws::String>
50 void SetGlobalTableName(GlobalTableNameT&& value) {
51 m_globalTableNameHasBeenSet = true;
52 m_globalTableName = std::forward<GlobalTableNameT>(value);
53 }
54 template <typename GlobalTableNameT = Aws::String>
56 SetGlobalTableName(std::forward<GlobalTableNameT>(value));
57 return *this;
58 }
60
62
75 inline BillingMode GetGlobalTableBillingMode() const { return m_globalTableBillingMode; }
76 inline bool GlobalTableBillingModeHasBeenSet() const { return m_globalTableBillingModeHasBeenSet; }
78 m_globalTableBillingModeHasBeenSet = true;
79 m_globalTableBillingMode = value;
80 }
83 return *this;
84 }
86
88
92 inline long long GetGlobalTableProvisionedWriteCapacityUnits() const { return m_globalTableProvisionedWriteCapacityUnits; }
93 inline bool GlobalTableProvisionedWriteCapacityUnitsHasBeenSet() const { return m_globalTableProvisionedWriteCapacityUnitsHasBeenSet; }
94 inline void SetGlobalTableProvisionedWriteCapacityUnits(long long value) {
95 m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = true;
96 m_globalTableProvisionedWriteCapacityUnits = value;
97 }
100 return *this;
101 }
103
105
110 return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate;
111 }
113 return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet;
114 }
115 template <typename GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT = AutoScalingSettingsUpdate>
117 GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT&& value) {
118 m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = true;
119 m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate =
120 std::forward<GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT>(value);
121 }
122 template <typename GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT = AutoScalingSettingsUpdate>
124 GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT&& value) {
126 std::forward<GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT>(value));
127 return *this;
128 }
130
132
137 return m_globalTableGlobalSecondaryIndexSettingsUpdate;
138 }
140 return m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet;
141 }
142 template <typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate>>
143 void SetGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) {
144 m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true;
145 m_globalTableGlobalSecondaryIndexSettingsUpdate = std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value);
146 }
147 template <typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate>>
149 GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) {
150 SetGlobalTableGlobalSecondaryIndexSettingsUpdate(std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value));
151 return *this;
152 }
153 template <typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = GlobalTableGlobalSecondaryIndexSettingsUpdate>
155 GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) {
156 m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true;
157 m_globalTableGlobalSecondaryIndexSettingsUpdate.emplace_back(std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value));
158 return *this;
159 }
161
163
167 inline const Aws::Vector<ReplicaSettingsUpdate>& GetReplicaSettingsUpdate() const { return m_replicaSettingsUpdate; }
168 inline bool ReplicaSettingsUpdateHasBeenSet() const { return m_replicaSettingsUpdateHasBeenSet; }
169 template <typename ReplicaSettingsUpdateT = Aws::Vector<ReplicaSettingsUpdate>>
170 void SetReplicaSettingsUpdate(ReplicaSettingsUpdateT&& value) {
171 m_replicaSettingsUpdateHasBeenSet = true;
172 m_replicaSettingsUpdate = std::forward<ReplicaSettingsUpdateT>(value);
173 }
174 template <typename ReplicaSettingsUpdateT = Aws::Vector<ReplicaSettingsUpdate>>
176 SetReplicaSettingsUpdate(std::forward<ReplicaSettingsUpdateT>(value));
177 return *this;
178 }
179 template <typename ReplicaSettingsUpdateT = ReplicaSettingsUpdate>
181 m_replicaSettingsUpdateHasBeenSet = true;
182 m_replicaSettingsUpdate.emplace_back(std::forward<ReplicaSettingsUpdateT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_globalTableName;
188
189 BillingMode m_globalTableBillingMode{BillingMode::NOT_SET};
190
191 long long m_globalTableProvisionedWriteCapacityUnits{0};
192
193 AutoScalingSettingsUpdate m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate;
194
195 Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate> m_globalTableGlobalSecondaryIndexSettingsUpdate;
196
197 Aws::Vector<ReplicaSettingsUpdate> m_replicaSettingsUpdate;
198 bool m_globalTableNameHasBeenSet = false;
199 bool m_globalTableBillingModeHasBeenSet = false;
200 bool m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = false;
201 bool m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = false;
202 bool m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = false;
203 bool m_replicaSettingsUpdateHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace DynamoDB
208} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_DYNAMODB_API UpdateGlobalTableSettingsRequest()=default
UpdateGlobalTableSettingsRequest & WithGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT &&value)
UpdateGlobalTableSettingsRequest & WithGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGlobalTableSettingsRequest & WithGlobalTableProvisionedWriteCapacityUnits(long long value)
UpdateGlobalTableSettingsRequest & WithGlobalTableBillingMode(BillingMode value)
void SetGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT &&value)
const Aws::Vector< GlobalTableGlobalSecondaryIndexSettingsUpdate > & GetGlobalTableGlobalSecondaryIndexSettingsUpdate() const
UpdateGlobalTableSettingsRequest & WithGlobalTableName(GlobalTableNameT &&value)
UpdateGlobalTableSettingsRequest & WithReplicaSettingsUpdate(ReplicaSettingsUpdateT &&value)
const Aws::Vector< ReplicaSettingsUpdate > & GetReplicaSettingsUpdate() const
UpdateGlobalTableSettingsRequest & AddGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
const AutoScalingSettingsUpdate & GetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() const
void SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT &&value)
UpdateGlobalTableSettingsRequest & AddReplicaSettingsUpdate(ReplicaSettingsUpdateT &&value)
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
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