AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateReplicationGroupMemberAction.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/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/OnDemandThroughputOverride.h>
11#include <aws/dynamodb/model/ProvisionedThroughputOverride.h>
12#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndex.h>
13#include <aws/dynamodb/model/TableClass.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB {
25namespace Model {
26
33 public:
34 AWS_DYNAMODB_API CreateReplicationGroupMemberAction() = default;
37 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRegionName() const { return m_regionName; }
44 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
45 template <typename RegionNameT = Aws::String>
46 void SetRegionName(RegionNameT&& value) {
47 m_regionNameHasBeenSet = true;
48 m_regionName = std::forward<RegionNameT>(value);
49 }
50 template <typename RegionNameT = Aws::String>
52 SetRegionName(std::forward<RegionNameT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetKMSMasterKeyId() const { return m_kMSMasterKeyId; }
65 inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; }
66 template <typename KMSMasterKeyIdT = Aws::String>
67 void SetKMSMasterKeyId(KMSMasterKeyIdT&& value) {
68 m_kMSMasterKeyIdHasBeenSet = true;
69 m_kMSMasterKeyId = std::forward<KMSMasterKeyIdT>(value);
70 }
71 template <typename KMSMasterKeyIdT = Aws::String>
73 SetKMSMasterKeyId(std::forward<KMSMasterKeyIdT>(value));
74 return *this;
75 }
77
79
83 inline const ProvisionedThroughputOverride& GetProvisionedThroughputOverride() const { return m_provisionedThroughputOverride; }
84 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
85 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
86 void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) {
87 m_provisionedThroughputOverrideHasBeenSet = true;
88 m_provisionedThroughputOverride = std::forward<ProvisionedThroughputOverrideT>(value);
89 }
90 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
92 SetProvisionedThroughputOverride(std::forward<ProvisionedThroughputOverrideT>(value));
93 return *this;
94 }
96
98
104 inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const { return m_onDemandThroughputOverride; }
105 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
106 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
107 void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) {
108 m_onDemandThroughputOverrideHasBeenSet = true;
109 m_onDemandThroughputOverride = std::forward<OnDemandThroughputOverrideT>(value);
110 }
111 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
113 SetOnDemandThroughputOverride(std::forward<OnDemandThroughputOverrideT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<ReplicaGlobalSecondaryIndex>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
123 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
124 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndex>>
125 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
126 m_globalSecondaryIndexesHasBeenSet = true;
127 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
128 }
129 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndex>>
131 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
132 return *this;
133 }
134 template <typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndex>
136 m_globalSecondaryIndexesHasBeenSet = true;
137 m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value));
138 return *this;
139 }
141
143
147 inline TableClass GetTableClassOverride() const { return m_tableClassOverride; }
148 inline bool TableClassOverrideHasBeenSet() const { return m_tableClassOverrideHasBeenSet; }
150 m_tableClassOverrideHasBeenSet = true;
151 m_tableClassOverride = value;
152 }
155 return *this;
156 }
158 private:
159 Aws::String m_regionName;
160
161 Aws::String m_kMSMasterKeyId;
162
163 ProvisionedThroughputOverride m_provisionedThroughputOverride;
164
165 OnDemandThroughputOverride m_onDemandThroughputOverride;
166
167 Aws::Vector<ReplicaGlobalSecondaryIndex> m_globalSecondaryIndexes;
168
169 TableClass m_tableClassOverride{TableClass::NOT_SET};
170 bool m_regionNameHasBeenSet = false;
171 bool m_kMSMasterKeyIdHasBeenSet = false;
172 bool m_provisionedThroughputOverrideHasBeenSet = false;
173 bool m_onDemandThroughputOverrideHasBeenSet = false;
174 bool m_globalSecondaryIndexesHasBeenSet = false;
175 bool m_tableClassOverrideHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace DynamoDB
180} // namespace Aws
CreateReplicationGroupMemberAction & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
CreateReplicationGroupMemberAction & WithRegionName(RegionNameT &&value)
AWS_DYNAMODB_API CreateReplicationGroupMemberAction(Aws::Utils::Json::JsonView jsonValue)
const ProvisionedThroughputOverride & GetProvisionedThroughputOverride() const
CreateReplicationGroupMemberAction & WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
AWS_DYNAMODB_API CreateReplicationGroupMemberAction & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateReplicationGroupMemberAction & WithKMSMasterKeyId(KMSMasterKeyIdT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
const Aws::Vector< ReplicaGlobalSecondaryIndex > & GetGlobalSecondaryIndexes() const
CreateReplicationGroupMemberAction & WithTableClassOverride(TableClass value)
CreateReplicationGroupMemberAction & WithOnDemandThroughputOverride(OnDemandThroughputOverrideT &&value)
CreateReplicationGroupMemberAction & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue