AWS SDK for C++  1.9.104
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
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Kafka::Model::UpdateBrokerCountRequest::GetClusterArn
const Aws::String & GetClusterArn() const
Definition: UpdateBrokerCountRequest.h:41
Aws::Kafka::Model::UpdateBrokerCountRequest::CurrentVersionHasBeenSet
bool CurrentVersionHasBeenSet() const
Definition: UpdateBrokerCountRequest.h:114
Aws::Kafka::Model::UpdateBrokerCountRequest::SetCurrentVersion
void SetCurrentVersion(Aws::String &&value)
Definition: UpdateBrokerCountRequest.h:130
Aws::Kafka::Model::UpdateBrokerCountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBrokerCountRequest.h:30
Aws::Kafka::Model::UpdateBrokerCountRequest::SetTargetNumberOfBrokerNodes
void SetTargetNumberOfBrokerNodes(int value)
Definition: UpdateBrokerCountRequest.h:187
Aws::Kafka::Model::UpdateBrokerCountRequest
Definition: UpdateBrokerCountRequest.h:22
Aws::Kafka::Model::UpdateBrokerCountRequest::WithCurrentVersion
UpdateBrokerCountRequest & WithCurrentVersion(const Aws::String &value)
Definition: UpdateBrokerCountRequest.h:146
Aws::Kafka::Model::UpdateBrokerCountRequest::WithClusterArn
UpdateBrokerCountRequest & WithClusterArn(const char *value)
Definition: UpdateBrokerCountRequest.h:97
Aws::Kafka::Model::UpdateBrokerCountRequest::SetClusterArn
void SetClusterArn(const char *value)
Definition: UpdateBrokerCountRequest.h:73
Aws::Kafka::Model::UpdateBrokerCountRequest::SetClusterArn
void SetClusterArn(const Aws::String &value)
Definition: UpdateBrokerCountRequest.h:57
Aws::Kafka::Model::UpdateBrokerCountRequest::TargetNumberOfBrokerNodesHasBeenSet
bool TargetNumberOfBrokerNodesHasBeenSet() const
Definition: UpdateBrokerCountRequest.h:179
Aws::Kafka::Model::UpdateBrokerCountRequest::WithCurrentVersion
UpdateBrokerCountRequest & WithCurrentVersion(Aws::String &&value)
Definition: UpdateBrokerCountRequest.h:154
AWSString.h
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::UpdateBrokerCountRequest::ClusterArnHasBeenSet
bool ClusterArnHasBeenSet() const
Definition: UpdateBrokerCountRequest.h:49
Aws::Kafka::Model::UpdateBrokerCountRequest::WithCurrentVersion
UpdateBrokerCountRequest & WithCurrentVersion(const char *value)
Definition: UpdateBrokerCountRequest.h:162
Aws::Kafka::Model::UpdateBrokerCountRequest::GetTargetNumberOfBrokerNodes
int GetTargetNumberOfBrokerNodes() const
Definition: UpdateBrokerCountRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::UpdateBrokerCountRequest::SetCurrentVersion
void SetCurrentVersion(const Aws::String &value)
Definition: UpdateBrokerCountRequest.h:122
Aws::Kafka::Model::UpdateBrokerCountRequest::SetClusterArn
void SetClusterArn(Aws::String &&value)
Definition: UpdateBrokerCountRequest.h:65
Aws::Kafka::Model::UpdateBrokerCountRequest::GetCurrentVersion
const Aws::String & GetCurrentVersion() const
Definition: UpdateBrokerCountRequest.h:106
Aws::Kafka::Model::UpdateBrokerCountRequest::SetCurrentVersion
void SetCurrentVersion(const char *value)
Definition: UpdateBrokerCountRequest.h:138
Aws::Kafka::Model::UpdateBrokerCountRequest::WithClusterArn
UpdateBrokerCountRequest & WithClusterArn(const Aws::String &value)
Definition: UpdateBrokerCountRequest.h:81
Aws::Kafka::Model::UpdateBrokerCountRequest::UpdateBrokerCountRequest
UpdateBrokerCountRequest()
Aws::Kafka::Model::UpdateBrokerCountRequest::WithClusterArn
UpdateBrokerCountRequest & WithClusterArn(Aws::String &&value)
Definition: UpdateBrokerCountRequest.h:89
Aws::Kafka::Model::UpdateBrokerCountRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kafka::Model::UpdateBrokerCountRequest::WithTargetNumberOfBrokerNodes
UpdateBrokerCountRequest & WithTargetNumberOfBrokerNodes(int value)
Definition: UpdateBrokerCountRequest.h:195