AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateBrokerCountRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kafka
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateBrokerCount"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
41  inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
42 
49  inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
50 
57  inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
58 
65  inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
66 
73  inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
74 
81  inline UpdateBrokerCountRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
82 
89  inline UpdateBrokerCountRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
90 
97  inline UpdateBrokerCountRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
98 
99 
106  inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
107 
114  inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
115 
122  inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
123 
130  inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
131 
138  inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
139 
146  inline UpdateBrokerCountRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
147 
154  inline UpdateBrokerCountRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
155 
162  inline UpdateBrokerCountRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
163 
164 
171  inline int GetTargetNumberOfBrokerNodes() const{ return m_targetNumberOfBrokerNodes; }
172 
179  inline bool TargetNumberOfBrokerNodesHasBeenSet() const { return m_targetNumberOfBrokerNodesHasBeenSet; }
180 
187  inline void SetTargetNumberOfBrokerNodes(int value) { m_targetNumberOfBrokerNodesHasBeenSet = true; m_targetNumberOfBrokerNodes = value; }
188 
195  inline UpdateBrokerCountRequest& WithTargetNumberOfBrokerNodes(int value) { SetTargetNumberOfBrokerNodes(value); return *this;}
196 
197  private:
198 
199  Aws::String m_clusterArn;
200  bool m_clusterArnHasBeenSet;
201 
202  Aws::String m_currentVersion;
203  bool m_currentVersionHasBeenSet;
204 
205  int m_targetNumberOfBrokerNodes;
206  bool m_targetNumberOfBrokerNodesHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace Kafka
211 } // namespace Aws
UpdateBrokerCountRequest & WithCurrentVersion(const char *value)
UpdateBrokerCountRequest & WithTargetNumberOfBrokerNodes(int value)
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
UpdateBrokerCountRequest & WithClusterArn(const char *value)
UpdateBrokerCountRequest & WithClusterArn(const Aws::String &value)
UpdateBrokerCountRequest & WithCurrentVersion(const Aws::String &value)
UpdateBrokerCountRequest & WithClusterArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateBrokerCountRequest & WithCurrentVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97