AWS SDK for C++  1.8.71
AWS SDK for C++
IncreaseNodeGroupsInGlobalReplicationGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElastiCache
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "IncreaseNodeGroupsInGlobalReplicationGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
45 
49  inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
50 
54  inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
55 
59  inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
60 
64  inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
65 
69  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const Aws::String& value) { SetGlobalReplicationGroupId(value); return *this;}
70 
74  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(Aws::String&& value) { SetGlobalReplicationGroupId(std::move(value)); return *this;}
75 
79  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;}
80 
81 
85  inline int GetNodeGroupCount() const{ return m_nodeGroupCount; }
86 
90  inline bool NodeGroupCountHasBeenSet() const { return m_nodeGroupCountHasBeenSet; }
91 
95  inline void SetNodeGroupCount(int value) { m_nodeGroupCountHasBeenSet = true; m_nodeGroupCount = value; }
96 
100  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithNodeGroupCount(int value) { SetNodeGroupCount(value); return *this;}
101 
102 
107  inline const Aws::Vector<RegionalConfiguration>& GetRegionalConfigurations() const{ return m_regionalConfigurations; }
108 
113  inline bool RegionalConfigurationsHasBeenSet() const { return m_regionalConfigurationsHasBeenSet; }
114 
119  inline void SetRegionalConfigurations(const Aws::Vector<RegionalConfiguration>& value) { m_regionalConfigurationsHasBeenSet = true; m_regionalConfigurations = value; }
120 
125  inline void SetRegionalConfigurations(Aws::Vector<RegionalConfiguration>&& value) { m_regionalConfigurationsHasBeenSet = true; m_regionalConfigurations = std::move(value); }
126 
131  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithRegionalConfigurations(const Aws::Vector<RegionalConfiguration>& value) { SetRegionalConfigurations(value); return *this;}
132 
137  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithRegionalConfigurations(Aws::Vector<RegionalConfiguration>&& value) { SetRegionalConfigurations(std::move(value)); return *this;}
138 
143  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& AddRegionalConfigurations(const RegionalConfiguration& value) { m_regionalConfigurationsHasBeenSet = true; m_regionalConfigurations.push_back(value); return *this; }
144 
149  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& AddRegionalConfigurations(RegionalConfiguration&& value) { m_regionalConfigurationsHasBeenSet = true; m_regionalConfigurations.push_back(std::move(value)); return *this; }
150 
151 
156  inline bool GetApplyImmediately() const{ return m_applyImmediately; }
157 
162  inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
163 
168  inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
169 
174  inline IncreaseNodeGroupsInGlobalReplicationGroupRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
175 
176  private:
177 
178  Aws::String m_globalReplicationGroupId;
179  bool m_globalReplicationGroupIdHasBeenSet;
180 
181  int m_nodeGroupCount;
182  bool m_nodeGroupCountHasBeenSet;
183 
184  Aws::Vector<RegionalConfiguration> m_regionalConfigurations;
185  bool m_regionalConfigurationsHasBeenSet;
186 
187  bool m_applyImmediately;
188  bool m_applyImmediatelyHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace ElastiCache
193 } // namespace Aws
IncreaseNodeGroupsInGlobalReplicationGroupRequest & AddRegionalConfigurations(const RegionalConfiguration &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
IncreaseNodeGroupsInGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(const Aws::String &value)
IncreaseNodeGroupsInGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(const char *value)
IncreaseNodeGroupsInGlobalReplicationGroupRequest & AddRegionalConfigurations(RegionalConfiguration &&value)
IncreaseNodeGroupsInGlobalReplicationGroupRequest & WithRegionalConfigurations(Aws::Vector< RegionalConfiguration > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
IncreaseNodeGroupsInGlobalReplicationGroupRequest & WithRegionalConfigurations(const Aws::Vector< RegionalConfiguration > &value)
IncreaseNodeGroupsInGlobalReplicationGroupRequest & WithGlobalReplicationGroupId(Aws::String &&value)