AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BrokerNodeInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/BrokerSoftwareInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
32 public:
33 AWS_KAFKA_API BrokerNodeInfo() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetAttachedENIId() const { return m_attachedENIId; }
46 inline bool AttachedENIIdHasBeenSet() const { return m_attachedENIIdHasBeenSet; }
47 template <typename AttachedENIIdT = Aws::String>
48 void SetAttachedENIId(AttachedENIIdT&& value) {
49 m_attachedENIIdHasBeenSet = true;
50 m_attachedENIId = std::forward<AttachedENIIdT>(value);
51 }
52 template <typename AttachedENIIdT = Aws::String>
53 BrokerNodeInfo& WithAttachedENIId(AttachedENIIdT&& value) {
54 SetAttachedENIId(std::forward<AttachedENIIdT>(value));
55 return *this;
56 }
58
60
65 inline double GetBrokerId() const { return m_brokerId; }
66 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
67 inline void SetBrokerId(double value) {
68 m_brokerIdHasBeenSet = true;
69 m_brokerId = value;
70 }
71 inline BrokerNodeInfo& WithBrokerId(double value) {
72 SetBrokerId(value);
73 return *this;
74 }
76
78
84 inline const Aws::String& GetClientSubnet() const { return m_clientSubnet; }
85 inline bool ClientSubnetHasBeenSet() const { return m_clientSubnetHasBeenSet; }
86 template <typename ClientSubnetT = Aws::String>
87 void SetClientSubnet(ClientSubnetT&& value) {
88 m_clientSubnetHasBeenSet = true;
89 m_clientSubnet = std::forward<ClientSubnetT>(value);
90 }
91 template <typename ClientSubnetT = Aws::String>
92 BrokerNodeInfo& WithClientSubnet(ClientSubnetT&& value) {
93 SetClientSubnet(std::forward<ClientSubnetT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::String& GetClientVpcIpAddress() const { return m_clientVpcIpAddress; }
105 inline bool ClientVpcIpAddressHasBeenSet() const { return m_clientVpcIpAddressHasBeenSet; }
106 template <typename ClientVpcIpAddressT = Aws::String>
107 void SetClientVpcIpAddress(ClientVpcIpAddressT&& value) {
108 m_clientVpcIpAddressHasBeenSet = true;
109 m_clientVpcIpAddress = std::forward<ClientVpcIpAddressT>(value);
110 }
111 template <typename ClientVpcIpAddressT = Aws::String>
112 BrokerNodeInfo& WithClientVpcIpAddress(ClientVpcIpAddressT&& value) {
113 SetClientVpcIpAddress(std::forward<ClientVpcIpAddressT>(value));
114 return *this;
115 }
117
119
125 inline const BrokerSoftwareInfo& GetCurrentBrokerSoftwareInfo() const { return m_currentBrokerSoftwareInfo; }
126 inline bool CurrentBrokerSoftwareInfoHasBeenSet() const { return m_currentBrokerSoftwareInfoHasBeenSet; }
127 template <typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
128 void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) {
129 m_currentBrokerSoftwareInfoHasBeenSet = true;
130 m_currentBrokerSoftwareInfo = std::forward<CurrentBrokerSoftwareInfoT>(value);
131 }
132 template <typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
133 BrokerNodeInfo& WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) {
134 SetCurrentBrokerSoftwareInfo(std::forward<CurrentBrokerSoftwareInfoT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::Vector<Aws::String>& GetEndpoints() const { return m_endpoints; }
146 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
147 template <typename EndpointsT = Aws::Vector<Aws::String>>
148 void SetEndpoints(EndpointsT&& value) {
149 m_endpointsHasBeenSet = true;
150 m_endpoints = std::forward<EndpointsT>(value);
151 }
152 template <typename EndpointsT = Aws::Vector<Aws::String>>
153 BrokerNodeInfo& WithEndpoints(EndpointsT&& value) {
154 SetEndpoints(std::forward<EndpointsT>(value));
155 return *this;
156 }
157 template <typename EndpointsT = Aws::String>
158 BrokerNodeInfo& AddEndpoints(EndpointsT&& value) {
159 m_endpointsHasBeenSet = true;
160 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_attachedENIId;
166
167 double m_brokerId{0.0};
168
169 Aws::String m_clientSubnet;
170
171 Aws::String m_clientVpcIpAddress;
172
173 BrokerSoftwareInfo m_currentBrokerSoftwareInfo;
174
175 Aws::Vector<Aws::String> m_endpoints;
176 bool m_attachedENIIdHasBeenSet = false;
177 bool m_brokerIdHasBeenSet = false;
178 bool m_clientSubnetHasBeenSet = false;
179 bool m_clientVpcIpAddressHasBeenSet = false;
180 bool m_currentBrokerSoftwareInfoHasBeenSet = false;
181 bool m_endpointsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Kafka
186} // namespace Aws
const BrokerSoftwareInfo & GetCurrentBrokerSoftwareInfo() const
BrokerNodeInfo & WithAttachedENIId(AttachedENIIdT &&value)
void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
BrokerNodeInfo & AddEndpoints(EndpointsT &&value)
void SetClientSubnet(ClientSubnetT &&value)
BrokerNodeInfo & WithEndpoints(EndpointsT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
BrokerNodeInfo & WithClientVpcIpAddress(ClientVpcIpAddressT &&value)
AWS_KAFKA_API BrokerNodeInfo()=default
AWS_KAFKA_API BrokerNodeInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientVpcIpAddress() const
void SetEndpoints(EndpointsT &&value)
const Aws::Vector< Aws::String > & GetEndpoints() const
AWS_KAFKA_API BrokerNodeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
BrokerNodeInfo & WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
void SetAttachedENIId(AttachedENIIdT &&value)
BrokerNodeInfo & WithBrokerId(double value)
BrokerNodeInfo & WithClientSubnet(ClientSubnetT &&value)
const Aws::String & GetAttachedENIId() const
const Aws::String & GetClientSubnet() const
void SetClientVpcIpAddress(ClientVpcIpAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue