AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateBrokerCountRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Kafka {
15namespace Model {
16
20 public:
21 AWS_KAFKA_API UpdateBrokerCountRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateBrokerCount"; }
28
29 AWS_KAFKA_API Aws::String SerializePayload() const override;
30
32
38 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
39 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
40 template <typename ClusterArnT = Aws::String>
41 void SetClusterArn(ClusterArnT&& value) {
42 m_clusterArnHasBeenSet = true;
43 m_clusterArn = std::forward<ClusterArnT>(value);
44 }
45 template <typename ClusterArnT = Aws::String>
47 SetClusterArn(std::forward<ClusterArnT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
60 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
61 template <typename CurrentVersionT = Aws::String>
62 void SetCurrentVersion(CurrentVersionT&& value) {
63 m_currentVersionHasBeenSet = true;
64 m_currentVersion = std::forward<CurrentVersionT>(value);
65 }
66 template <typename CurrentVersionT = Aws::String>
67 UpdateBrokerCountRequest& WithCurrentVersion(CurrentVersionT&& value) {
68 SetCurrentVersion(std::forward<CurrentVersionT>(value));
69 return *this;
70 }
72
74
80 inline int GetTargetNumberOfBrokerNodes() const { return m_targetNumberOfBrokerNodes; }
81 inline bool TargetNumberOfBrokerNodesHasBeenSet() const { return m_targetNumberOfBrokerNodesHasBeenSet; }
82 inline void SetTargetNumberOfBrokerNodes(int value) {
83 m_targetNumberOfBrokerNodesHasBeenSet = true;
84 m_targetNumberOfBrokerNodes = value;
85 }
88 return *this;
89 }
91 private:
92 Aws::String m_clusterArn;
93
94 Aws::String m_currentVersion;
95
96 int m_targetNumberOfBrokerNodes{0};
97 bool m_clusterArnHasBeenSet = false;
98 bool m_currentVersionHasBeenSet = false;
99 bool m_targetNumberOfBrokerNodesHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Kafka
104} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateBrokerCountRequest & WithClusterArn(ClusterArnT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
UpdateBrokerCountRequest & WithCurrentVersion(CurrentVersionT &&value)
UpdateBrokerCountRequest & WithTargetNumberOfBrokerNodes(int value)
AWS_KAFKA_API UpdateBrokerCountRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String