AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateGlobalTableSettingsRequest.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/AWSString.h>
10#include <aws/dynamodb/model/BillingMode.h>
11#include <aws/dynamodb/model/AutoScalingSettingsUpdate.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/dynamodb/model/GlobalTableGlobalSecondaryIndexSettingsUpdate.h>
14#include <aws/dynamodb/model/ReplicaSettingsUpdate.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DynamoDB
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DYNAMODB_API UpdateGlobalTableSettingsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateGlobalTableSettings"; }
36
37 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
38
40
44 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
45
47
50 inline const Aws::String& GetGlobalTableName() const { return m_globalTableName; }
51 inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; }
52 template<typename GlobalTableNameT = Aws::String>
53 void SetGlobalTableName(GlobalTableNameT&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::forward<GlobalTableNameT>(value); }
54 template<typename GlobalTableNameT = Aws::String>
55 UpdateGlobalTableSettingsRequest& WithGlobalTableName(GlobalTableNameT&& value) { SetGlobalTableName(std::forward<GlobalTableNameT>(value)); return *this;}
57
59
72 inline BillingMode GetGlobalTableBillingMode() const { return m_globalTableBillingMode; }
73 inline bool GlobalTableBillingModeHasBeenSet() const { return m_globalTableBillingModeHasBeenSet; }
74 inline void SetGlobalTableBillingMode(BillingMode value) { m_globalTableBillingModeHasBeenSet = true; m_globalTableBillingMode = value; }
77
79
83 inline long long GetGlobalTableProvisionedWriteCapacityUnits() const { return m_globalTableProvisionedWriteCapacityUnits; }
84 inline bool GlobalTableProvisionedWriteCapacityUnitsHasBeenSet() const { return m_globalTableProvisionedWriteCapacityUnitsHasBeenSet; }
85 inline void SetGlobalTableProvisionedWriteCapacityUnits(long long value) { m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = true; m_globalTableProvisionedWriteCapacityUnits = value; }
88
90
94 inline const AutoScalingSettingsUpdate& GetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() const { return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; }
95 inline bool GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet() const { return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet; }
96 template<typename GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT = AutoScalingSettingsUpdate>
97 void SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT&& value) { m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = true; m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = std::forward<GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT>(value); }
98 template<typename GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT = AutoScalingSettingsUpdate>
99 UpdateGlobalTableSettingsRequest& WithGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT&& value) { SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(std::forward<GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateT>(value)); return *this;}
101
103
107 inline const Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate>& GetGlobalTableGlobalSecondaryIndexSettingsUpdate() const { return m_globalTableGlobalSecondaryIndexSettingsUpdate; }
108 inline bool GlobalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet() const { return m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet; }
109 template<typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate>>
110 void SetGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate = std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value); }
111 template<typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate>>
112 UpdateGlobalTableSettingsRequest& WithGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) { SetGlobalTableGlobalSecondaryIndexSettingsUpdate(std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value)); return *this;}
113 template<typename GlobalTableGlobalSecondaryIndexSettingsUpdateT = GlobalTableGlobalSecondaryIndexSettingsUpdate>
114 UpdateGlobalTableSettingsRequest& AddGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdateT&& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate.emplace_back(std::forward<GlobalTableGlobalSecondaryIndexSettingsUpdateT>(value)); return *this; }
116
118
122 inline const Aws::Vector<ReplicaSettingsUpdate>& GetReplicaSettingsUpdate() const { return m_replicaSettingsUpdate; }
123 inline bool ReplicaSettingsUpdateHasBeenSet() const { return m_replicaSettingsUpdateHasBeenSet; }
124 template<typename ReplicaSettingsUpdateT = Aws::Vector<ReplicaSettingsUpdate>>
125 void SetReplicaSettingsUpdate(ReplicaSettingsUpdateT&& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate = std::forward<ReplicaSettingsUpdateT>(value); }
126 template<typename ReplicaSettingsUpdateT = Aws::Vector<ReplicaSettingsUpdate>>
127 UpdateGlobalTableSettingsRequest& WithReplicaSettingsUpdate(ReplicaSettingsUpdateT&& value) { SetReplicaSettingsUpdate(std::forward<ReplicaSettingsUpdateT>(value)); return *this;}
128 template<typename ReplicaSettingsUpdateT = ReplicaSettingsUpdate>
129 UpdateGlobalTableSettingsRequest& AddReplicaSettingsUpdate(ReplicaSettingsUpdateT&& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate.emplace_back(std::forward<ReplicaSettingsUpdateT>(value)); return *this; }
131 private:
132
133 Aws::String m_globalTableName;
134 bool m_globalTableNameHasBeenSet = false;
135
136 BillingMode m_globalTableBillingMode{BillingMode::NOT_SET};
137 bool m_globalTableBillingModeHasBeenSet = false;
138
139 long long m_globalTableProvisionedWriteCapacityUnits{0};
140 bool m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = false;
141
142 AutoScalingSettingsUpdate m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate;
143 bool m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = false;
144
145 Aws::Vector<GlobalTableGlobalSecondaryIndexSettingsUpdate> m_globalTableGlobalSecondaryIndexSettingsUpdate;
146 bool m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = false;
147
148 Aws::Vector<ReplicaSettingsUpdate> m_replicaSettingsUpdate;
149 bool m_replicaSettingsUpdateHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace DynamoDB
154} // 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