AWS SDK for C++  1.9.105
AWS SDK for C++
UpdateBrokerTypeRequest.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 "UpdateBrokerType"; }
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 UpdateBrokerTypeRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
82 
89  inline UpdateBrokerTypeRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
90 
97  inline UpdateBrokerTypeRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
98 
99 
107  inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
108 
116  inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
117 
125  inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
126 
134  inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
135 
143  inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
144 
152  inline UpdateBrokerTypeRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
153 
161  inline UpdateBrokerTypeRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
162 
170  inline UpdateBrokerTypeRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
171 
172 
179  inline const Aws::String& GetTargetInstanceType() const{ return m_targetInstanceType; }
180 
187  inline bool TargetInstanceTypeHasBeenSet() const { return m_targetInstanceTypeHasBeenSet; }
188 
195  inline void SetTargetInstanceType(const Aws::String& value) { m_targetInstanceTypeHasBeenSet = true; m_targetInstanceType = value; }
196 
203  inline void SetTargetInstanceType(Aws::String&& value) { m_targetInstanceTypeHasBeenSet = true; m_targetInstanceType = std::move(value); }
204 
211  inline void SetTargetInstanceType(const char* value) { m_targetInstanceTypeHasBeenSet = true; m_targetInstanceType.assign(value); }
212 
219  inline UpdateBrokerTypeRequest& WithTargetInstanceType(const Aws::String& value) { SetTargetInstanceType(value); return *this;}
220 
227  inline UpdateBrokerTypeRequest& WithTargetInstanceType(Aws::String&& value) { SetTargetInstanceType(std::move(value)); return *this;}
228 
235  inline UpdateBrokerTypeRequest& WithTargetInstanceType(const char* value) { SetTargetInstanceType(value); return *this;}
236 
237  private:
238 
239  Aws::String m_clusterArn;
240  bool m_clusterArnHasBeenSet;
241 
242  Aws::String m_currentVersion;
243  bool m_currentVersionHasBeenSet;
244 
245  Aws::String m_targetInstanceType;
246  bool m_targetInstanceTypeHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace Kafka
251 } // namespace Aws
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetTargetInstanceType
void SetTargetInstanceType(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:203
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithClusterArn
UpdateBrokerTypeRequest & WithClusterArn(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:81
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetClusterArn
void SetClusterArn(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:57
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithTargetInstanceType
UpdateBrokerTypeRequest & WithTargetInstanceType(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:227
Aws::Kafka::Model::UpdateBrokerTypeRequest::GetClusterArn
const Aws::String & GetClusterArn() const
Definition: UpdateBrokerTypeRequest.h:41
Aws::Kafka::Model::UpdateBrokerTypeRequest::TargetInstanceTypeHasBeenSet
bool TargetInstanceTypeHasBeenSet() const
Definition: UpdateBrokerTypeRequest.h:187
Aws::Kafka::Model::UpdateBrokerTypeRequest::GetCurrentVersion
const Aws::String & GetCurrentVersion() const
Definition: UpdateBrokerTypeRequest.h:107
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithTargetInstanceType
UpdateBrokerTypeRequest & WithTargetInstanceType(const char *value)
Definition: UpdateBrokerTypeRequest.h:235
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetCurrentVersion
void SetCurrentVersion(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:134
Aws::Kafka::Model::UpdateBrokerTypeRequest
Definition: UpdateBrokerTypeRequest.h:22
Aws::Kafka::Model::UpdateBrokerTypeRequest::UpdateBrokerTypeRequest
UpdateBrokerTypeRequest()
Aws::Kafka::Model::UpdateBrokerTypeRequest::GetTargetInstanceType
const Aws::String & GetTargetInstanceType() const
Definition: UpdateBrokerTypeRequest.h:179
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetClusterArn
void SetClusterArn(const char *value)
Definition: UpdateBrokerTypeRequest.h:73
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithCurrentVersion
UpdateBrokerTypeRequest & WithCurrentVersion(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:161
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithClusterArn
UpdateBrokerTypeRequest & WithClusterArn(const char *value)
Definition: UpdateBrokerTypeRequest.h:97
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetTargetInstanceType
void SetTargetInstanceType(const char *value)
Definition: UpdateBrokerTypeRequest.h:211
Aws::Kafka::Model::UpdateBrokerTypeRequest::ClusterArnHasBeenSet
bool ClusterArnHasBeenSet() const
Definition: UpdateBrokerTypeRequest.h:49
Aws::Kafka::Model::UpdateBrokerTypeRequest::CurrentVersionHasBeenSet
bool CurrentVersionHasBeenSet() const
Definition: UpdateBrokerTypeRequest.h:116
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithCurrentVersion
UpdateBrokerTypeRequest & WithCurrentVersion(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:152
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetTargetInstanceType
void SetTargetInstanceType(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:195
AWSString.h
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetCurrentVersion
void SetCurrentVersion(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:125
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithClusterArn
UpdateBrokerTypeRequest & WithClusterArn(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:89
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetClusterArn
void SetClusterArn(Aws::String &&value)
Definition: UpdateBrokerTypeRequest.h:65
Aws::Kafka::Model::UpdateBrokerTypeRequest::SetCurrentVersion
void SetCurrentVersion(const char *value)
Definition: UpdateBrokerTypeRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::UpdateBrokerTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBrokerTypeRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kafka::Model::UpdateBrokerTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Kafka_EXPORTS.h
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithCurrentVersion
UpdateBrokerTypeRequest & WithCurrentVersion(const char *value)
Definition: UpdateBrokerTypeRequest.h:170
Aws::Kafka::Model::UpdateBrokerTypeRequest::WithTargetInstanceType
UpdateBrokerTypeRequest & WithTargetInstanceType(const Aws::String &value)
Definition: UpdateBrokerTypeRequest.h:219