AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BrokerNodeInfo.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/BrokerSoftwareInfo.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kafka
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_KAFKA_API BrokerNodeInfo() = default;
41 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::String& GetAttachedENIId() const { return m_attachedENIId; }
52 inline bool AttachedENIIdHasBeenSet() const { return m_attachedENIIdHasBeenSet; }
53 template<typename AttachedENIIdT = Aws::String>
54 void SetAttachedENIId(AttachedENIIdT&& value) { m_attachedENIIdHasBeenSet = true; m_attachedENIId = std::forward<AttachedENIIdT>(value); }
55 template<typename AttachedENIIdT = Aws::String>
56 BrokerNodeInfo& WithAttachedENIId(AttachedENIIdT&& value) { SetAttachedENIId(std::forward<AttachedENIIdT>(value)); return *this;}
58
60
65 inline double GetBrokerId() const { return m_brokerId; }
66 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; }
67 inline void SetBrokerId(double value) { m_brokerIdHasBeenSet = true; m_brokerId = value; }
68 inline BrokerNodeInfo& WithBrokerId(double value) { SetBrokerId(value); return *this;}
70
72
78 inline const Aws::String& GetClientSubnet() const { return m_clientSubnet; }
79 inline bool ClientSubnetHasBeenSet() const { return m_clientSubnetHasBeenSet; }
80 template<typename ClientSubnetT = Aws::String>
81 void SetClientSubnet(ClientSubnetT&& value) { m_clientSubnetHasBeenSet = true; m_clientSubnet = std::forward<ClientSubnetT>(value); }
82 template<typename ClientSubnetT = Aws::String>
83 BrokerNodeInfo& WithClientSubnet(ClientSubnetT&& value) { SetClientSubnet(std::forward<ClientSubnetT>(value)); return *this;}
85
87
92 inline const Aws::String& GetClientVpcIpAddress() const { return m_clientVpcIpAddress; }
93 inline bool ClientVpcIpAddressHasBeenSet() const { return m_clientVpcIpAddressHasBeenSet; }
94 template<typename ClientVpcIpAddressT = Aws::String>
95 void SetClientVpcIpAddress(ClientVpcIpAddressT&& value) { m_clientVpcIpAddressHasBeenSet = true; m_clientVpcIpAddress = std::forward<ClientVpcIpAddressT>(value); }
96 template<typename ClientVpcIpAddressT = Aws::String>
97 BrokerNodeInfo& WithClientVpcIpAddress(ClientVpcIpAddressT&& value) { SetClientVpcIpAddress(std::forward<ClientVpcIpAddressT>(value)); return *this;}
99
101
107 inline const BrokerSoftwareInfo& GetCurrentBrokerSoftwareInfo() const { return m_currentBrokerSoftwareInfo; }
108 inline bool CurrentBrokerSoftwareInfoHasBeenSet() const { return m_currentBrokerSoftwareInfoHasBeenSet; }
109 template<typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
110 void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) { m_currentBrokerSoftwareInfoHasBeenSet = true; m_currentBrokerSoftwareInfo = std::forward<CurrentBrokerSoftwareInfoT>(value); }
111 template<typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
112 BrokerNodeInfo& WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) { SetCurrentBrokerSoftwareInfo(std::forward<CurrentBrokerSoftwareInfoT>(value)); return *this;}
114
116
121 inline const Aws::Vector<Aws::String>& GetEndpoints() const { return m_endpoints; }
122 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
123 template<typename EndpointsT = Aws::Vector<Aws::String>>
124 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::forward<EndpointsT>(value); }
125 template<typename EndpointsT = Aws::Vector<Aws::String>>
126 BrokerNodeInfo& WithEndpoints(EndpointsT&& value) { SetEndpoints(std::forward<EndpointsT>(value)); return *this;}
127 template<typename EndpointsT = Aws::String>
128 BrokerNodeInfo& AddEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace_back(std::forward<EndpointsT>(value)); return *this; }
130 private:
131
132 Aws::String m_attachedENIId;
133 bool m_attachedENIIdHasBeenSet = false;
134
135 double m_brokerId{0.0};
136 bool m_brokerIdHasBeenSet = false;
137
138 Aws::String m_clientSubnet;
139 bool m_clientSubnetHasBeenSet = false;
140
141 Aws::String m_clientVpcIpAddress;
142 bool m_clientVpcIpAddressHasBeenSet = false;
143
144 BrokerSoftwareInfo m_currentBrokerSoftwareInfo;
145 bool m_currentBrokerSoftwareInfoHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_endpoints;
148 bool m_endpointsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Kafka
153} // 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