AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IncreaseReplicaCountRequest.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 IncreaseReplicaCountRequest();
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 "IncreaseReplicaCount"; }
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
45 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
46 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
47 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
48 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
49 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
51 inline IncreaseReplicaCountRequest& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
52 inline IncreaseReplicaCountRequest& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
54
56
63 inline int GetNewReplicaCount() const{ return m_newReplicaCount; }
64 inline bool NewReplicaCountHasBeenSet() const { return m_newReplicaCountHasBeenSet; }
65 inline void SetNewReplicaCount(int value) { m_newReplicaCountHasBeenSet = true; m_newReplicaCount = value; }
66 inline IncreaseReplicaCountRequest& WithNewReplicaCount(int value) { SetNewReplicaCount(value); return *this;}
68
70
76 inline const Aws::Vector<ConfigureShard>& GetReplicaConfiguration() const{ return m_replicaConfiguration; }
77 inline bool ReplicaConfigurationHasBeenSet() const { return m_replicaConfigurationHasBeenSet; }
78 inline void SetReplicaConfiguration(const Aws::Vector<ConfigureShard>& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration = value; }
79 inline void SetReplicaConfiguration(Aws::Vector<ConfigureShard>&& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration = std::move(value); }
82 inline IncreaseReplicaCountRequest& AddReplicaConfiguration(const ConfigureShard& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration.push_back(value); return *this; }
83 inline IncreaseReplicaCountRequest& AddReplicaConfiguration(ConfigureShard&& value) { m_replicaConfigurationHasBeenSet = true; m_replicaConfiguration.push_back(std::move(value)); return *this; }
85
87
91 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
92 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
93 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
94 inline IncreaseReplicaCountRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
96 private:
97
98 Aws::String m_replicationGroupId;
99 bool m_replicationGroupIdHasBeenSet = false;
100
101 int m_newReplicaCount;
102 bool m_newReplicaCountHasBeenSet = false;
103
104 Aws::Vector<ConfigureShard> m_replicaConfiguration;
105 bool m_replicaConfigurationHasBeenSet = false;
106
107 bool m_applyImmediately;
108 bool m_applyImmediatelyHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ElastiCache
113} // namespace Aws
IncreaseReplicaCountRequest & WithReplicaConfiguration(Aws::Vector< ConfigureShard > &&value)
IncreaseReplicaCountRequest & AddReplicaConfiguration(ConfigureShard &&value)
IncreaseReplicaCountRequest & AddReplicaConfiguration(const ConfigureShard &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
void SetReplicaConfiguration(Aws::Vector< ConfigureShard > &&value)
IncreaseReplicaCountRequest & WithReplicationGroupId(Aws::String &&value)
void SetReplicaConfiguration(const Aws::Vector< ConfigureShard > &value)
IncreaseReplicaCountRequest & WithNewReplicaCount(int value)
IncreaseReplicaCountRequest & WithReplicaConfiguration(const Aws::Vector< ConfigureShard > &value)
IncreaseReplicaCountRequest & WithReplicationGroupId(const Aws::String &value)
IncreaseReplicaCountRequest & WithReplicationGroupId(const char *value)
const Aws::Vector< ConfigureShard > & GetReplicaConfiguration() const
IncreaseReplicaCountRequest & WithApplyImmediately(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector