AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Kafka
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_KAFKA_API NodeInfo() = default;
41 AWS_KAFKA_API NodeInfo(Aws::Utils::Json::JsonView jsonValue);
43 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetAddedToClusterTime() const { return m_addedToClusterTime; }
53 inline bool AddedToClusterTimeHasBeenSet() const { return m_addedToClusterTimeHasBeenSet; }
54 template<typename AddedToClusterTimeT = Aws::String>
55 void SetAddedToClusterTime(AddedToClusterTimeT&& value) { m_addedToClusterTimeHasBeenSet = true; m_addedToClusterTime = std::forward<AddedToClusterTimeT>(value); }
56 template<typename AddedToClusterTimeT = Aws::String>
57 NodeInfo& WithAddedToClusterTime(AddedToClusterTimeT&& value) { SetAddedToClusterTime(std::forward<AddedToClusterTimeT>(value)); return *this;}
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) { m_brokerNodeInfoHasBeenSet = true; m_brokerNodeInfo = std::forward<BrokerNodeInfoT>(value); }
70 template<typename BrokerNodeInfoT = BrokerNodeInfo>
71 NodeInfo& WithBrokerNodeInfo(BrokerNodeInfoT&& value) { SetBrokerNodeInfo(std::forward<BrokerNodeInfoT>(value)); return *this;}
73
75
80 inline const ControllerNodeInfo& GetControllerNodeInfo() const { return m_controllerNodeInfo; }
81 inline bool ControllerNodeInfoHasBeenSet() const { return m_controllerNodeInfoHasBeenSet; }
82 template<typename ControllerNodeInfoT = ControllerNodeInfo>
83 void SetControllerNodeInfo(ControllerNodeInfoT&& value) { m_controllerNodeInfoHasBeenSet = true; m_controllerNodeInfo = std::forward<ControllerNodeInfoT>(value); }
84 template<typename ControllerNodeInfoT = ControllerNodeInfo>
85 NodeInfo& WithControllerNodeInfo(ControllerNodeInfoT&& value) { SetControllerNodeInfo(std::forward<ControllerNodeInfoT>(value)); return *this;}
87
89
94 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
95 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
96 template<typename InstanceTypeT = Aws::String>
97 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
98 template<typename InstanceTypeT = Aws::String>
99 NodeInfo& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
101
103
108 inline const Aws::String& GetNodeARN() const { return m_nodeARN; }
109 inline bool NodeARNHasBeenSet() const { return m_nodeARNHasBeenSet; }
110 template<typename NodeARNT = Aws::String>
111 void SetNodeARN(NodeARNT&& value) { m_nodeARNHasBeenSet = true; m_nodeARN = std::forward<NodeARNT>(value); }
112 template<typename NodeARNT = Aws::String>
113 NodeInfo& WithNodeARN(NodeARNT&& value) { SetNodeARN(std::forward<NodeARNT>(value)); return *this;}
115
117
122 inline NodeType GetNodeType() const { return m_nodeType; }
123 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
124 inline void SetNodeType(NodeType value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
125 inline NodeInfo& WithNodeType(NodeType value) { SetNodeType(value); return *this;}
127
129
134 inline const ZookeeperNodeInfo& GetZookeeperNodeInfo() const { return m_zookeeperNodeInfo; }
135 inline bool ZookeeperNodeInfoHasBeenSet() const { return m_zookeeperNodeInfoHasBeenSet; }
136 template<typename ZookeeperNodeInfoT = ZookeeperNodeInfo>
137 void SetZookeeperNodeInfo(ZookeeperNodeInfoT&& value) { m_zookeeperNodeInfoHasBeenSet = true; m_zookeeperNodeInfo = std::forward<ZookeeperNodeInfoT>(value); }
138 template<typename ZookeeperNodeInfoT = ZookeeperNodeInfo>
139 NodeInfo& WithZookeeperNodeInfo(ZookeeperNodeInfoT&& value) { SetZookeeperNodeInfo(std::forward<ZookeeperNodeInfoT>(value)); return *this;}
141 private:
142
143 Aws::String m_addedToClusterTime;
144 bool m_addedToClusterTimeHasBeenSet = false;
145
146 BrokerNodeInfo m_brokerNodeInfo;
147 bool m_brokerNodeInfoHasBeenSet = false;
148
149 ControllerNodeInfo m_controllerNodeInfo;
150 bool m_controllerNodeInfoHasBeenSet = false;
151
152 Aws::String m_instanceType;
153 bool m_instanceTypeHasBeenSet = false;
154
155 Aws::String m_nodeARN;
156 bool m_nodeARNHasBeenSet = false;
157
158 NodeType m_nodeType{NodeType::NOT_SET};
159 bool m_nodeTypeHasBeenSet = false;
160
161 ZookeeperNodeInfo m_zookeeperNodeInfo;
162 bool m_zookeeperNodeInfoHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Kafka
167} // namespace Aws
const ZookeeperNodeInfo & GetZookeeperNodeInfo() const
Definition NodeInfo.h:134
bool AddedToClusterTimeHasBeenSet() const
Definition NodeInfo.h:53
void SetControllerNodeInfo(ControllerNodeInfoT &&value)
Definition NodeInfo.h:83
const ControllerNodeInfo & GetControllerNodeInfo() const
Definition NodeInfo.h:80
void SetZookeeperNodeInfo(ZookeeperNodeInfoT &&value)
Definition NodeInfo.h:137
const Aws::String & GetInstanceType() const
Definition NodeInfo.h:94
void SetNodeType(NodeType value)
Definition NodeInfo.h:124
NodeInfo & WithNodeARN(NodeARNT &&value)
Definition NodeInfo.h:113
bool ControllerNodeInfoHasBeenSet() const
Definition NodeInfo.h:81
NodeInfo & WithAddedToClusterTime(AddedToClusterTimeT &&value)
Definition NodeInfo.h:57
NodeType GetNodeType() const
Definition NodeInfo.h:122
const BrokerNodeInfo & GetBrokerNodeInfo() const
Definition NodeInfo.h:66
AWS_KAFKA_API NodeInfo(Aws::Utils::Json::JsonView jsonValue)
bool InstanceTypeHasBeenSet() const
Definition NodeInfo.h:95
void SetAddedToClusterTime(AddedToClusterTimeT &&value)
Definition NodeInfo.h:55
bool BrokerNodeInfoHasBeenSet() const
Definition NodeInfo.h:67
NodeInfo & WithControllerNodeInfo(ControllerNodeInfoT &&value)
Definition NodeInfo.h:85
bool NodeTypeHasBeenSet() const
Definition NodeInfo.h:123
void SetBrokerNodeInfo(BrokerNodeInfoT &&value)
Definition NodeInfo.h:69
void SetInstanceType(InstanceTypeT &&value)
Definition NodeInfo.h:97
AWS_KAFKA_API NodeInfo()=default
bool NodeARNHasBeenSet() const
Definition NodeInfo.h:109
NodeInfo & WithNodeType(NodeType value)
Definition NodeInfo.h:125
NodeInfo & WithZookeeperNodeInfo(ZookeeperNodeInfoT &&value)
Definition NodeInfo.h:139
const Aws::String & GetAddedToClusterTime() const
Definition NodeInfo.h:52
AWS_KAFKA_API NodeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNodeARN(NodeARNT &&value)
Definition NodeInfo.h:111
NodeInfo & WithBrokerNodeInfo(BrokerNodeInfoT &&value)
Definition NodeInfo.h:71
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ZookeeperNodeInfoHasBeenSet() const
Definition NodeInfo.h:135
NodeInfo & WithInstanceType(InstanceTypeT &&value)
Definition NodeInfo.h:99
const Aws::String & GetNodeARN() const
Definition NodeInfo.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue