AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddedToClusterTime(const Aws::String& value) { m_addedToClusterTimeHasBeenSet = true; m_addedToClusterTime = value; }
55 inline void SetAddedToClusterTime(Aws::String&& value) { m_addedToClusterTimeHasBeenSet = true; m_addedToClusterTime = std::move(value); }
56 inline void SetAddedToClusterTime(const char* value) { m_addedToClusterTimeHasBeenSet = true; m_addedToClusterTime.assign(value); }
57 inline NodeInfo& WithAddedToClusterTime(const Aws::String& value) { SetAddedToClusterTime(value); return *this;}
58 inline NodeInfo& WithAddedToClusterTime(Aws::String&& value) { SetAddedToClusterTime(std::move(value)); return *this;}
59 inline NodeInfo& WithAddedToClusterTime(const char* value) { SetAddedToClusterTime(value); return *this;}
61
63
68 inline const BrokerNodeInfo& GetBrokerNodeInfo() const{ return m_brokerNodeInfo; }
69 inline bool BrokerNodeInfoHasBeenSet() const { return m_brokerNodeInfoHasBeenSet; }
70 inline void SetBrokerNodeInfo(const BrokerNodeInfo& value) { m_brokerNodeInfoHasBeenSet = true; m_brokerNodeInfo = value; }
71 inline void SetBrokerNodeInfo(BrokerNodeInfo&& value) { m_brokerNodeInfoHasBeenSet = true; m_brokerNodeInfo = std::move(value); }
72 inline NodeInfo& WithBrokerNodeInfo(const BrokerNodeInfo& value) { SetBrokerNodeInfo(value); return *this;}
73 inline NodeInfo& WithBrokerNodeInfo(BrokerNodeInfo&& value) { SetBrokerNodeInfo(std::move(value)); return *this;}
75
77
82 inline const ControllerNodeInfo& GetControllerNodeInfo() const{ return m_controllerNodeInfo; }
83 inline bool ControllerNodeInfoHasBeenSet() const { return m_controllerNodeInfoHasBeenSet; }
84 inline void SetControllerNodeInfo(const ControllerNodeInfo& value) { m_controllerNodeInfoHasBeenSet = true; m_controllerNodeInfo = value; }
85 inline void SetControllerNodeInfo(ControllerNodeInfo&& value) { m_controllerNodeInfoHasBeenSet = true; m_controllerNodeInfo = std::move(value); }
86 inline NodeInfo& WithControllerNodeInfo(const ControllerNodeInfo& value) { SetControllerNodeInfo(value); return *this;}
87 inline NodeInfo& WithControllerNodeInfo(ControllerNodeInfo&& value) { SetControllerNodeInfo(std::move(value)); return *this;}
89
91
96 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
97 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
98 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
99 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
100 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
101 inline NodeInfo& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
102 inline NodeInfo& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
103 inline NodeInfo& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
105
107
112 inline const Aws::String& GetNodeARN() const{ return m_nodeARN; }
113 inline bool NodeARNHasBeenSet() const { return m_nodeARNHasBeenSet; }
114 inline void SetNodeARN(const Aws::String& value) { m_nodeARNHasBeenSet = true; m_nodeARN = value; }
115 inline void SetNodeARN(Aws::String&& value) { m_nodeARNHasBeenSet = true; m_nodeARN = std::move(value); }
116 inline void SetNodeARN(const char* value) { m_nodeARNHasBeenSet = true; m_nodeARN.assign(value); }
117 inline NodeInfo& WithNodeARN(const Aws::String& value) { SetNodeARN(value); return *this;}
118 inline NodeInfo& WithNodeARN(Aws::String&& value) { SetNodeARN(std::move(value)); return *this;}
119 inline NodeInfo& WithNodeARN(const char* value) { SetNodeARN(value); return *this;}
121
123
128 inline const NodeType& GetNodeType() const{ return m_nodeType; }
129 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
130 inline void SetNodeType(const NodeType& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
131 inline void SetNodeType(NodeType&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
132 inline NodeInfo& WithNodeType(const NodeType& value) { SetNodeType(value); return *this;}
133 inline NodeInfo& WithNodeType(NodeType&& value) { SetNodeType(std::move(value)); return *this;}
135
137
142 inline const ZookeeperNodeInfo& GetZookeeperNodeInfo() const{ return m_zookeeperNodeInfo; }
143 inline bool ZookeeperNodeInfoHasBeenSet() const { return m_zookeeperNodeInfoHasBeenSet; }
144 inline void SetZookeeperNodeInfo(const ZookeeperNodeInfo& value) { m_zookeeperNodeInfoHasBeenSet = true; m_zookeeperNodeInfo = value; }
145 inline void SetZookeeperNodeInfo(ZookeeperNodeInfo&& value) { m_zookeeperNodeInfoHasBeenSet = true; m_zookeeperNodeInfo = std::move(value); }
146 inline NodeInfo& WithZookeeperNodeInfo(const ZookeeperNodeInfo& value) { SetZookeeperNodeInfo(value); return *this;}
147 inline NodeInfo& WithZookeeperNodeInfo(ZookeeperNodeInfo&& value) { SetZookeeperNodeInfo(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_addedToClusterTime;
152 bool m_addedToClusterTimeHasBeenSet = false;
153
154 BrokerNodeInfo m_brokerNodeInfo;
155 bool m_brokerNodeInfoHasBeenSet = false;
156
157 ControllerNodeInfo m_controllerNodeInfo;
158 bool m_controllerNodeInfoHasBeenSet = false;
159
160 Aws::String m_instanceType;
161 bool m_instanceTypeHasBeenSet = false;
162
163 Aws::String m_nodeARN;
164 bool m_nodeARNHasBeenSet = false;
165
166 NodeType m_nodeType;
167 bool m_nodeTypeHasBeenSet = false;
168
169 ZookeeperNodeInfo m_zookeeperNodeInfo;
170 bool m_zookeeperNodeInfoHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Kafka
175} // namespace Aws
NodeInfo & WithNodeARN(const Aws::String &value)
Definition NodeInfo.h:117
const ZookeeperNodeInfo & GetZookeeperNodeInfo() const
Definition NodeInfo.h:142
void SetNodeARN(Aws::String &&value)
Definition NodeInfo.h:115
bool AddedToClusterTimeHasBeenSet() const
Definition NodeInfo.h:53
void SetZookeeperNodeInfo(const ZookeeperNodeInfo &value)
Definition NodeInfo.h:144
const ControllerNodeInfo & GetControllerNodeInfo() const
Definition NodeInfo.h:82
const NodeType & GetNodeType() const
Definition NodeInfo.h:128
void SetBrokerNodeInfo(const BrokerNodeInfo &value)
Definition NodeInfo.h:70
NodeInfo & WithNodeARN(Aws::String &&value)
Definition NodeInfo.h:118
void SetControllerNodeInfo(ControllerNodeInfo &&value)
Definition NodeInfo.h:85
const Aws::String & GetInstanceType() const
Definition NodeInfo.h:96
NodeInfo & WithInstanceType(const Aws::String &value)
Definition NodeInfo.h:101
void SetZookeeperNodeInfo(ZookeeperNodeInfo &&value)
Definition NodeInfo.h:145
void SetAddedToClusterTime(Aws::String &&value)
Definition NodeInfo.h:55
void SetAddedToClusterTime(const Aws::String &value)
Definition NodeInfo.h:54
NodeInfo & WithInstanceType(Aws::String &&value)
Definition NodeInfo.h:102
bool ControllerNodeInfoHasBeenSet() const
Definition NodeInfo.h:83
NodeInfo & WithBrokerNodeInfo(BrokerNodeInfo &&value)
Definition NodeInfo.h:73
NodeInfo & WithZookeeperNodeInfo(const ZookeeperNodeInfo &value)
Definition NodeInfo.h:146
NodeInfo & WithInstanceType(const char *value)
Definition NodeInfo.h:103
NodeInfo & WithZookeeperNodeInfo(ZookeeperNodeInfo &&value)
Definition NodeInfo.h:147
const BrokerNodeInfo & GetBrokerNodeInfo() const
Definition NodeInfo.h:68
AWS_KAFKA_API NodeInfo(Aws::Utils::Json::JsonView jsonValue)
NodeInfo & WithNodeARN(const char *value)
Definition NodeInfo.h:119
bool InstanceTypeHasBeenSet() const
Definition NodeInfo.h:97
NodeInfo & WithNodeType(const NodeType &value)
Definition NodeInfo.h:132
bool BrokerNodeInfoHasBeenSet() const
Definition NodeInfo.h:69
NodeInfo & WithAddedToClusterTime(const char *value)
Definition NodeInfo.h:59
void SetNodeARN(const char *value)
Definition NodeInfo.h:116
void SetInstanceType(const Aws::String &value)
Definition NodeInfo.h:98
void SetControllerNodeInfo(const ControllerNodeInfo &value)
Definition NodeInfo.h:84
bool NodeTypeHasBeenSet() const
Definition NodeInfo.h:129
NodeInfo & WithNodeType(NodeType &&value)
Definition NodeInfo.h:133
NodeInfo & WithControllerNodeInfo(const ControllerNodeInfo &value)
Definition NodeInfo.h:86
NodeInfo & WithBrokerNodeInfo(const BrokerNodeInfo &value)
Definition NodeInfo.h:72
void SetAddedToClusterTime(const char *value)
Definition NodeInfo.h:56
bool NodeARNHasBeenSet() const
Definition NodeInfo.h:113
void SetBrokerNodeInfo(BrokerNodeInfo &&value)
Definition NodeInfo.h:71
void SetInstanceType(const char *value)
Definition NodeInfo.h:100
void SetNodeType(NodeType &&value)
Definition NodeInfo.h:131
NodeInfo & WithControllerNodeInfo(ControllerNodeInfo &&value)
Definition NodeInfo.h:87
void SetNodeARN(const Aws::String &value)
Definition NodeInfo.h:114
void SetInstanceType(Aws::String &&value)
Definition NodeInfo.h:99
const Aws::String & GetAddedToClusterTime() const
Definition NodeInfo.h:52
AWS_KAFKA_API NodeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeInfo & WithAddedToClusterTime(const Aws::String &value)
Definition NodeInfo.h:57
void SetNodeType(const NodeType &value)
Definition NodeInfo.h:130
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ZookeeperNodeInfoHasBeenSet() const
Definition NodeInfo.h:143
NodeInfo & WithAddedToClusterTime(Aws::String &&value)
Definition NodeInfo.h:58
const Aws::String & GetNodeARN() const
Definition NodeInfo.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue