AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IncreaseReplicaCountRequest.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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ConfigureShard.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
22 public:
23 AWS_ELASTICACHE_API IncreaseReplicaCountRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "IncreaseReplicaCount"; }
30
31 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
42 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
43 template <typename ReplicationGroupIdT = Aws::String>
44 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
45 m_replicationGroupIdHasBeenSet = true;
46 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
47 }
48 template <typename ReplicationGroupIdT = Aws::String>
50 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
51 return *this;
52 }
54
56
63 inline int GetNewReplicaCount() const { return m_newReplicaCount; }
64 inline bool NewReplicaCountHasBeenSet() const { return m_newReplicaCountHasBeenSet; }
65 inline void SetNewReplicaCount(int value) {
66 m_newReplicaCountHasBeenSet = true;
67 m_newReplicaCount = value;
68 }
70 SetNewReplicaCount(value);
71 return *this;
72 }
74
76
82 inline const Aws::Vector<ConfigureShard>& GetReplicaConfiguration() const { return m_replicaConfiguration; }
83 inline bool ReplicaConfigurationHasBeenSet() const { return m_replicaConfigurationHasBeenSet; }
84 template <typename ReplicaConfigurationT = Aws::Vector<ConfigureShard>>
85 void SetReplicaConfiguration(ReplicaConfigurationT&& value) {
86 m_replicaConfigurationHasBeenSet = true;
87 m_replicaConfiguration = std::forward<ReplicaConfigurationT>(value);
88 }
89 template <typename ReplicaConfigurationT = Aws::Vector<ConfigureShard>>
90 IncreaseReplicaCountRequest& WithReplicaConfiguration(ReplicaConfigurationT&& value) {
91 SetReplicaConfiguration(std::forward<ReplicaConfigurationT>(value));
92 return *this;
93 }
94 template <typename ReplicaConfigurationT = ConfigureShard>
95 IncreaseReplicaCountRequest& AddReplicaConfiguration(ReplicaConfigurationT&& value) {
96 m_replicaConfigurationHasBeenSet = true;
97 m_replicaConfiguration.emplace_back(std::forward<ReplicaConfigurationT>(value));
98 return *this;
99 }
101
103
107 inline bool GetApplyImmediately() const { return m_applyImmediately; }
108 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
109 inline void SetApplyImmediately(bool value) {
110 m_applyImmediatelyHasBeenSet = true;
111 m_applyImmediately = value;
112 }
114 SetApplyImmediately(value);
115 return *this;
116 }
118 private:
119 Aws::String m_replicationGroupId;
120
121 int m_newReplicaCount{0};
122
123 Aws::Vector<ConfigureShard> m_replicaConfiguration;
124
125 bool m_applyImmediately{false};
126 bool m_replicationGroupIdHasBeenSet = false;
127 bool m_newReplicaCountHasBeenSet = false;
128 bool m_replicaConfigurationHasBeenSet = false;
129 bool m_applyImmediatelyHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace ElastiCache
134} // namespace Aws
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
IncreaseReplicaCountRequest & WithNewReplicaCount(int value)
IncreaseReplicaCountRequest & WithReplicaConfiguration(ReplicaConfigurationT &&value)
IncreaseReplicaCountRequest & WithReplicationGroupId(ReplicationGroupIdT &&value)
IncreaseReplicaCountRequest & AddReplicaConfiguration(ReplicaConfigurationT &&value)
const Aws::Vector< ConfigureShard > & GetReplicaConfiguration() const
IncreaseReplicaCountRequest & WithApplyImmediately(bool value)
AWS_ELASTICACHE_API IncreaseReplicaCountRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector