AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NodeInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/BrokerNodeInfo.h>
10#include <aws/kafka/model/ControllerNodeInfo.h>
11#include <aws/kafka/model/NodeType.h>
12#include <aws/kafka/model/ZookeeperNodeInfo.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
25
33class NodeInfo {
34 public:
35 AWS_KAFKA_API NodeInfo() = default;
36 AWS_KAFKA_API NodeInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetAddedToClusterTime() const { return m_addedToClusterTime; }
47 inline bool AddedToClusterTimeHasBeenSet() const { return m_addedToClusterTimeHasBeenSet; }
48 template <typename AddedToClusterTimeT = Aws::String>
49 void SetAddedToClusterTime(AddedToClusterTimeT&& value) {
50 m_addedToClusterTimeHasBeenSet = true;
51 m_addedToClusterTime = std::forward<AddedToClusterTimeT>(value);
52 }
53 template <typename AddedToClusterTimeT = Aws::String>
54 NodeInfo& WithAddedToClusterTime(AddedToClusterTimeT&& value) {
55 SetAddedToClusterTime(std::forward<AddedToClusterTimeT>(value));
56 return *this;
57 }
59
61
66 inline const BrokerNodeInfo& GetBrokerNodeInfo() const { return m_brokerNodeInfo; }
67 inline bool BrokerNodeInfoHasBeenSet() const { return m_brokerNodeInfoHasBeenSet; }
68 template <typename BrokerNodeInfoT = BrokerNodeInfo>
69 void SetBrokerNodeInfo(BrokerNodeInfoT&& value) {
70 m_brokerNodeInfoHasBeenSet = true;
71 m_brokerNodeInfo = std::forward<BrokerNodeInfoT>(value);
72 }
73 template <typename BrokerNodeInfoT = BrokerNodeInfo>
74 NodeInfo& WithBrokerNodeInfo(BrokerNodeInfoT&& value) {
75 SetBrokerNodeInfo(std::forward<BrokerNodeInfoT>(value));
76 return *this;
77 }
79
81
86 inline const ControllerNodeInfo& GetControllerNodeInfo() const { return m_controllerNodeInfo; }
87 inline bool ControllerNodeInfoHasBeenSet() const { return m_controllerNodeInfoHasBeenSet; }
88 template <typename ControllerNodeInfoT = ControllerNodeInfo>
89 void SetControllerNodeInfo(ControllerNodeInfoT&& value) {
90 m_controllerNodeInfoHasBeenSet = true;
91 m_controllerNodeInfo = std::forward<ControllerNodeInfoT>(value);
92 }
93 template <typename ControllerNodeInfoT = ControllerNodeInfo>
94 NodeInfo& WithControllerNodeInfo(ControllerNodeInfoT&& value) {
95 SetControllerNodeInfo(std::forward<ControllerNodeInfoT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
107 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
108 template <typename InstanceTypeT = Aws::String>
109 void SetInstanceType(InstanceTypeT&& value) {
110 m_instanceTypeHasBeenSet = true;
111 m_instanceType = std::forward<InstanceTypeT>(value);
112 }
113 template <typename InstanceTypeT = Aws::String>
114 NodeInfo& WithInstanceType(InstanceTypeT&& value) {
115 SetInstanceType(std::forward<InstanceTypeT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::String& GetNodeARN() const { return m_nodeARN; }
127 inline bool NodeARNHasBeenSet() const { return m_nodeARNHasBeenSet; }
128 template <typename NodeARNT = Aws::String>
129 void SetNodeARN(NodeARNT&& value) {
130 m_nodeARNHasBeenSet = true;
131 m_nodeARN = std::forward<NodeARNT>(value);
132 }
133 template <typename NodeARNT = Aws::String>
134 NodeInfo& WithNodeARN(NodeARNT&& value) {
135 SetNodeARN(std::forward<NodeARNT>(value));
136 return *this;
137 }
139
141
146 inline NodeType GetNodeType() const { return m_nodeType; }
147 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
148 inline void SetNodeType(NodeType value) {
149 m_nodeTypeHasBeenSet = true;
150 m_nodeType = value;
151 }
153 SetNodeType(value);
154 return *this;
155 }
157
159
164 inline const ZookeeperNodeInfo& GetZookeeperNodeInfo() const { return m_zookeeperNodeInfo; }
165 inline bool ZookeeperNodeInfoHasBeenSet() const { return m_zookeeperNodeInfoHasBeenSet; }
166 template <typename ZookeeperNodeInfoT = ZookeeperNodeInfo>
167 void SetZookeeperNodeInfo(ZookeeperNodeInfoT&& value) {
168 m_zookeeperNodeInfoHasBeenSet = true;
169 m_zookeeperNodeInfo = std::forward<ZookeeperNodeInfoT>(value);
170 }
171 template <typename ZookeeperNodeInfoT = ZookeeperNodeInfo>
172 NodeInfo& WithZookeeperNodeInfo(ZookeeperNodeInfoT&& value) {
173 SetZookeeperNodeInfo(std::forward<ZookeeperNodeInfoT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_addedToClusterTime;
179
180 BrokerNodeInfo m_brokerNodeInfo;
181
182 ControllerNodeInfo m_controllerNodeInfo;
183
184 Aws::String m_instanceType;
185
186 Aws::String m_nodeARN;
187
188 NodeType m_nodeType{NodeType::NOT_SET};
189
190 ZookeeperNodeInfo m_zookeeperNodeInfo;
191 bool m_addedToClusterTimeHasBeenSet = false;
192 bool m_brokerNodeInfoHasBeenSet = false;
193 bool m_controllerNodeInfoHasBeenSet = false;
194 bool m_instanceTypeHasBeenSet = false;
195 bool m_nodeARNHasBeenSet = false;
196 bool m_nodeTypeHasBeenSet = false;
197 bool m_zookeeperNodeInfoHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace Kafka
202} // namespace Aws
const ZookeeperNodeInfo & GetZookeeperNodeInfo() const
Definition NodeInfo.h:164
bool AddedToClusterTimeHasBeenSet() const
Definition NodeInfo.h:47
void SetControllerNodeInfo(ControllerNodeInfoT &&value)
Definition NodeInfo.h:89
const ControllerNodeInfo & GetControllerNodeInfo() const
Definition NodeInfo.h:86
void SetZookeeperNodeInfo(ZookeeperNodeInfoT &&value)
Definition NodeInfo.h:167
const Aws::String & GetInstanceType() const
Definition NodeInfo.h:106
void SetNodeType(NodeType value)
Definition NodeInfo.h:148
NodeInfo & WithNodeARN(NodeARNT &&value)
Definition NodeInfo.h:134
bool ControllerNodeInfoHasBeenSet() const
Definition NodeInfo.h:87
NodeInfo & WithAddedToClusterTime(AddedToClusterTimeT &&value)
Definition NodeInfo.h:54
NodeType GetNodeType() const
Definition NodeInfo.h:146
const BrokerNodeInfo & GetBrokerNodeInfo() const
Definition NodeInfo.h:66
AWS_KAFKA_API NodeInfo(Aws::Utils::Json::JsonView jsonValue)
bool InstanceTypeHasBeenSet() const
Definition NodeInfo.h:107
void SetAddedToClusterTime(AddedToClusterTimeT &&value)
Definition NodeInfo.h:49
bool BrokerNodeInfoHasBeenSet() const
Definition NodeInfo.h:67
NodeInfo & WithControllerNodeInfo(ControllerNodeInfoT &&value)
Definition NodeInfo.h:94
bool NodeTypeHasBeenSet() const
Definition NodeInfo.h:147
void SetBrokerNodeInfo(BrokerNodeInfoT &&value)
Definition NodeInfo.h:69
void SetInstanceType(InstanceTypeT &&value)
Definition NodeInfo.h:109
AWS_KAFKA_API NodeInfo()=default
bool NodeARNHasBeenSet() const
Definition NodeInfo.h:127
NodeInfo & WithNodeType(NodeType value)
Definition NodeInfo.h:152
NodeInfo & WithZookeeperNodeInfo(ZookeeperNodeInfoT &&value)
Definition NodeInfo.h:172
const Aws::String & GetAddedToClusterTime() const
Definition NodeInfo.h:46
AWS_KAFKA_API NodeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNodeARN(NodeARNT &&value)
Definition NodeInfo.h:129
NodeInfo & WithBrokerNodeInfo(BrokerNodeInfoT &&value)
Definition NodeInfo.h:74
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ZookeeperNodeInfoHasBeenSet() const
Definition NodeInfo.h:165
NodeInfo & WithInstanceType(InstanceTypeT &&value)
Definition NodeInfo.h:114
const Aws::String & GetNodeARN() const
Definition NodeInfo.h:126
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue