AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DecreaseReplicaCountRequest.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/ConfigureShard.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICACHE_API DecreaseReplicaCountRequest();
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 "DecreaseReplicaCount"; }
33
34 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
47 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
48 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
49 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
50 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
52 inline DecreaseReplicaCountRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
53 inline DecreaseReplicaCountRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
55
57
69 inline int GetNewReplicaCount() const{ return m_newReplicaCount; }
70 inline bool NewReplicaCountHasBeenSet() const { return m_newReplicaCountHasBeenSet; }
71 inline void SetNewReplicaCount(int value) { m_newReplicaCountHasBeenSet = true; m_newReplicaCount = value; }
72 inline DecreaseReplicaCountRequest& WithNewReplicaCount(int value) { SetNewReplicaCount(value); return *this;}
74
76
82 inline const Aws::Vector<ConfigureShard>& GetReplicaConfiguration() const{ return m_replicaConfiguration; }
83 inline bool ReplicaConfigurationHasBeenSet() const { return m_replicaConfigurationHasBeenSet; }
84 inline void SetReplicaConfiguration(const Aws::Vector<ConfigureShard>& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration = value; }
85 inline void SetReplicaConfiguration(Aws::Vector<ConfigureShard>&& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration = std::move(value); }
88 inline DecreaseReplicaCountRequest& AddReplicaConfiguration(const ConfigureShard& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration.push_back(value); return *this; }
89 inline DecreaseReplicaCountRequest& AddReplicaConfiguration(ConfigureShard&& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration.push_back(std::move(value)); return *this; }
91
93
97 inline const Aws::Vector<Aws::String>& GetReplicasToRemove() const{ return m_replicasToRemove; }
98 inline bool ReplicasToRemoveHasBeenSet() const { return m_replicasToRemoveHasBeenSet; }
99 inline void SetReplicasToRemove(const Aws::Vector<Aws::String>& value) { m_replicasToRemoveHasBeenSet = true; m_replicasToRemove = value; }
100 inline void SetReplicasToRemove(Aws::Vector<Aws::String>&& value) { m_replicasToRemoveHasBeenSet = true; m_replicasToRemove = std::move(value); }
103 inline DecreaseReplicaCountRequest& AddReplicasToRemove(const Aws::String& value) { m_replicasToRemoveHasBeenSet = true; m_replicasToRemove.push_back(value); return *this; }
104 inline DecreaseReplicaCountRequest& AddReplicasToRemove(Aws::String&& value) { m_replicasToRemoveHasBeenSet = true; m_replicasToRemove.push_back(std::move(value)); return *this; }
105 inline DecreaseReplicaCountRequest& AddReplicasToRemove(const char* value) { m_replicasToRemoveHasBeenSet = true; m_replicasToRemove.push_back(value); return *this; }
107
109
113 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
114 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
115 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
116 inline DecreaseReplicaCountRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
118 private:
119
120 Aws::String m_replicationGroupId;
121 bool m_replicationGroupIdHasBeenSet = false;
122
123 int m_newReplicaCount;
124 bool m_newReplicaCountHasBeenSet = false;
125
126 Aws::Vector<ConfigureShard> m_replicaConfiguration;
127 bool m_replicaConfigurationHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_replicasToRemove;
130 bool m_replicasToRemoveHasBeenSet = false;
131
132 bool m_applyImmediately;
133 bool m_applyImmediatelyHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace ElastiCache
138} // namespace Aws
DecreaseReplicaCountRequest & WithReplicaConfiguration(Aws::Vector< ConfigureShard > &&value)
void SetReplicaConfiguration(Aws::Vector< ConfigureShard > &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetReplicasToRemove(Aws::Vector< Aws::String > &&value)
DecreaseReplicaCountRequest & AddReplicasToRemove(const Aws::String &value)
DecreaseReplicaCountRequest & AddReplicasToRemove(Aws::String &&value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DecreaseReplicaCountRequest & WithReplicasToRemove(const Aws::Vector< Aws::String > &value)
DecreaseReplicaCountRequest & WithApplyImmediately(bool value)
DecreaseReplicaCountRequest & AddReplicaConfiguration(const ConfigureShard &value)
DecreaseReplicaCountRequest & WithReplicasToRemove(Aws::Vector< Aws::String > &&value)
DecreaseReplicaCountRequest & AddReplicasToRemove(const char *value)
const Aws::Vector< Aws::String > & GetReplicasToRemove() const
DecreaseReplicaCountRequest & WithReplicationGroupId(const char *value)
const Aws::Vector< ConfigureShard > & GetReplicaConfiguration() const
DecreaseReplicaCountRequest & WithNewReplicaCount(int value)
DecreaseReplicaCountRequest & AddReplicaConfiguration(ConfigureShard &&value)
DecreaseReplicaCountRequest & WithReplicaConfiguration(const Aws::Vector< ConfigureShard > &value)
DecreaseReplicaCountRequest & WithReplicationGroupId(Aws::String &&value)
void SetReplicaConfiguration(const Aws::Vector< ConfigureShard > &value)
DecreaseReplicaCountRequest & WithReplicationGroupId(const Aws::String &value)
void SetReplicasToRemove(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector