AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyReplicationGroupShardConfigurationRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/ReshardingConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ModifyReplicationGroupShardConfiguration"; }
38
39 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
51 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
52 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
53 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
54 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
55 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
60
62
66 inline int GetNodeGroupCount() const{ return m_nodeGroupCount; }
67 inline bool NodeGroupCountHasBeenSet() const { return m_nodeGroupCountHasBeenSet; }
68 inline void SetNodeGroupCount(int value) { m_nodeGroupCountHasBeenSet = true; m_nodeGroupCount = value; }
71
73
78 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
79 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
80 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
83
85
94 inline const Aws::Vector<ReshardingConfiguration>& GetReshardingConfiguration() const{ return m_reshardingConfiguration; }
95 inline bool ReshardingConfigurationHasBeenSet() const { return m_reshardingConfigurationHasBeenSet; }
96 inline void SetReshardingConfiguration(const Aws::Vector<ReshardingConfiguration>& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration = value; }
97 inline void SetReshardingConfiguration(Aws::Vector<ReshardingConfiguration>&& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration = std::move(value); }
100 inline ModifyReplicationGroupShardConfigurationRequest& AddReshardingConfiguration(const ReshardingConfiguration& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration.push_back(value); return *this; }
101 inline ModifyReplicationGroupShardConfigurationRequest& AddReshardingConfiguration(ReshardingConfiguration&& value) { m_reshardingConfigurationHasBeenSet = true; m_reshardingConfiguration.push_back(std::move(value)); return *this; }
103
105
113 inline const Aws::Vector<Aws::String>& GetNodeGroupsToRemove() const{ return m_nodeGroupsToRemove; }
114 inline bool NodeGroupsToRemoveHasBeenSet() const { return m_nodeGroupsToRemoveHasBeenSet; }
115 inline void SetNodeGroupsToRemove(const Aws::Vector<Aws::String>& value) { m_nodeGroupsToRemoveHasBeenSet = true; m_nodeGroupsToRemove = value; }
116 inline void SetNodeGroupsToRemove(Aws::Vector<Aws::String>&& value) { m_nodeGroupsToRemoveHasBeenSet = true; m_nodeGroupsToRemove = std::move(value); }
119 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRemove(const Aws::String& value) { m_nodeGroupsToRemoveHasBeenSet = true; m_nodeGroupsToRemove.push_back(value); return *this; }
120 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRemove(Aws::String&& value) { m_nodeGroupsToRemoveHasBeenSet = true; m_nodeGroupsToRemove.push_back(std::move(value)); return *this; }
121 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRemove(const char* value) { m_nodeGroupsToRemoveHasBeenSet = true; m_nodeGroupsToRemove.push_back(value); return *this; }
123
125
133 inline const Aws::Vector<Aws::String>& GetNodeGroupsToRetain() const{ return m_nodeGroupsToRetain; }
134 inline bool NodeGroupsToRetainHasBeenSet() const { return m_nodeGroupsToRetainHasBeenSet; }
135 inline void SetNodeGroupsToRetain(const Aws::Vector<Aws::String>& value) { m_nodeGroupsToRetainHasBeenSet = true; m_nodeGroupsToRetain = value; }
136 inline void SetNodeGroupsToRetain(Aws::Vector<Aws::String>&& value) { m_nodeGroupsToRetainHasBeenSet = true; m_nodeGroupsToRetain = std::move(value); }
139 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRetain(const Aws::String& value) { m_nodeGroupsToRetainHasBeenSet = true; m_nodeGroupsToRetain.push_back(value); return *this; }
140 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRetain(Aws::String&& value) { m_nodeGroupsToRetainHasBeenSet = true; m_nodeGroupsToRetain.push_back(std::move(value)); return *this; }
141 inline ModifyReplicationGroupShardConfigurationRequest& AddNodeGroupsToRetain(const char* value) { m_nodeGroupsToRetainHasBeenSet = true; m_nodeGroupsToRetain.push_back(value); return *this; }
143 private:
144
145 Aws::String m_replicationGroupId;
146 bool m_replicationGroupIdHasBeenSet = false;
147
148 int m_nodeGroupCount;
149 bool m_nodeGroupCountHasBeenSet = false;
150
151 bool m_applyImmediately;
152 bool m_applyImmediatelyHasBeenSet = false;
153
154 Aws::Vector<ReshardingConfiguration> m_reshardingConfiguration;
155 bool m_reshardingConfigurationHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_nodeGroupsToRemove;
158 bool m_nodeGroupsToRemoveHasBeenSet = false;
159
160 Aws::Vector<Aws::String> m_nodeGroupsToRetain;
161 bool m_nodeGroupsToRetainHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ElastiCache
166} // namespace Aws
ModifyReplicationGroupShardConfigurationRequest & WithNodeGroupsToRetain(const Aws::Vector< Aws::String > &value)
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRemove(const char *value)
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRemove(Aws::String &&value)
ModifyReplicationGroupShardConfigurationRequest & WithNodeGroupsToRemove(const Aws::Vector< Aws::String > &value)
ModifyReplicationGroupShardConfigurationRequest & WithReplicationGroupId(const char *value)
ModifyReplicationGroupShardConfigurationRequest & AddReshardingConfiguration(ReshardingConfiguration &&value)
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRemove(const Aws::String &value)
ModifyReplicationGroupShardConfigurationRequest & AddReshardingConfiguration(const ReshardingConfiguration &value)
ModifyReplicationGroupShardConfigurationRequest & WithReshardingConfiguration(const Aws::Vector< ReshardingConfiguration > &value)
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRetain(const char *value)
ModifyReplicationGroupShardConfigurationRequest & WithReplicationGroupId(Aws::String &&value)
ModifyReplicationGroupShardConfigurationRequest & WithReshardingConfiguration(Aws::Vector< ReshardingConfiguration > &&value)
ModifyReplicationGroupShardConfigurationRequest & WithNodeGroupsToRetain(Aws::Vector< Aws::String > &&value)
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRetain(const Aws::String &value)
ModifyReplicationGroupShardConfigurationRequest & WithReplicationGroupId(const Aws::String &value)
ModifyReplicationGroupShardConfigurationRequest & WithNodeGroupsToRemove(Aws::Vector< Aws::String > &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyReplicationGroupShardConfigurationRequest & AddNodeGroupsToRetain(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector