AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BrokerNodeGroupInfo.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/BrokerAZDistribution.h>
11#include <aws/kafka/model/ConnectivityInfo.h>
12#include <aws/kafka/model/StorageInfo.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
35 public:
36 AWS_KAFKA_API BrokerNodeGroupInfo() = default;
39 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
53 inline BrokerAZDistribution GetBrokerAZDistribution() const { return m_brokerAZDistribution; }
54 inline bool BrokerAZDistributionHasBeenSet() const { return m_brokerAZDistributionHasBeenSet; }
56 m_brokerAZDistributionHasBeenSet = true;
57 m_brokerAZDistribution = value;
58 }
61 return *this;
62 }
64
66
74 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
75 inline bool ClientSubnetsHasBeenSet() const { return m_clientSubnetsHasBeenSet; }
76 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
77 void SetClientSubnets(ClientSubnetsT&& value) {
78 m_clientSubnetsHasBeenSet = true;
79 m_clientSubnets = std::forward<ClientSubnetsT>(value);
80 }
81 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
82 BrokerNodeGroupInfo& WithClientSubnets(ClientSubnetsT&& value) {
83 SetClientSubnets(std::forward<ClientSubnetsT>(value));
84 return *this;
85 }
86 template <typename ClientSubnetsT = Aws::String>
87 BrokerNodeGroupInfo& AddClientSubnets(ClientSubnetsT&& value) {
88 m_clientSubnetsHasBeenSet = true;
89 m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value));
90 return *this;
91 }
93
95
104 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
105 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
106 template <typename InstanceTypeT = Aws::String>
107 void SetInstanceType(InstanceTypeT&& value) {
108 m_instanceTypeHasBeenSet = true;
109 m_instanceType = std::forward<InstanceTypeT>(value);
110 }
111 template <typename InstanceTypeT = Aws::String>
112 BrokerNodeGroupInfo& WithInstanceType(InstanceTypeT&& value) {
113 SetInstanceType(std::forward<InstanceTypeT>(value));
114 return *this;
115 }
117
119
127 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
128 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
129 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
130 void SetSecurityGroups(SecurityGroupsT&& value) {
131 m_securityGroupsHasBeenSet = true;
132 m_securityGroups = std::forward<SecurityGroupsT>(value);
133 }
134 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
135 BrokerNodeGroupInfo& WithSecurityGroups(SecurityGroupsT&& value) {
136 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
137 return *this;
138 }
139 template <typename SecurityGroupsT = Aws::String>
140 BrokerNodeGroupInfo& AddSecurityGroups(SecurityGroupsT&& value) {
141 m_securityGroupsHasBeenSet = true;
142 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
143 return *this;
144 }
146
148
154 inline const StorageInfo& GetStorageInfo() const { return m_storageInfo; }
155 inline bool StorageInfoHasBeenSet() const { return m_storageInfoHasBeenSet; }
156 template <typename StorageInfoT = StorageInfo>
157 void SetStorageInfo(StorageInfoT&& value) {
158 m_storageInfoHasBeenSet = true;
159 m_storageInfo = std::forward<StorageInfoT>(value);
160 }
161 template <typename StorageInfoT = StorageInfo>
162 BrokerNodeGroupInfo& WithStorageInfo(StorageInfoT&& value) {
163 SetStorageInfo(std::forward<StorageInfoT>(value));
164 return *this;
165 }
167
169
174 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
175 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
176 template <typename ConnectivityInfoT = ConnectivityInfo>
177 void SetConnectivityInfo(ConnectivityInfoT&& value) {
178 m_connectivityInfoHasBeenSet = true;
179 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
180 }
181 template <typename ConnectivityInfoT = ConnectivityInfo>
182 BrokerNodeGroupInfo& WithConnectivityInfo(ConnectivityInfoT&& value) {
183 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
184 return *this;
185 }
187
189
195 inline const Aws::Vector<Aws::String>& GetZoneIds() const { return m_zoneIds; }
196 inline bool ZoneIdsHasBeenSet() const { return m_zoneIdsHasBeenSet; }
197 template <typename ZoneIdsT = Aws::Vector<Aws::String>>
198 void SetZoneIds(ZoneIdsT&& value) {
199 m_zoneIdsHasBeenSet = true;
200 m_zoneIds = std::forward<ZoneIdsT>(value);
201 }
202 template <typename ZoneIdsT = Aws::Vector<Aws::String>>
203 BrokerNodeGroupInfo& WithZoneIds(ZoneIdsT&& value) {
204 SetZoneIds(std::forward<ZoneIdsT>(value));
205 return *this;
206 }
207 template <typename ZoneIdsT = Aws::String>
208 BrokerNodeGroupInfo& AddZoneIds(ZoneIdsT&& value) {
209 m_zoneIdsHasBeenSet = true;
210 m_zoneIds.emplace_back(std::forward<ZoneIdsT>(value));
211 return *this;
212 }
214 private:
216
217 Aws::Vector<Aws::String> m_clientSubnets;
218
219 Aws::String m_instanceType;
220
221 Aws::Vector<Aws::String> m_securityGroups;
222
223 StorageInfo m_storageInfo;
224
225 ConnectivityInfo m_connectivityInfo;
226
227 Aws::Vector<Aws::String> m_zoneIds;
228 bool m_brokerAZDistributionHasBeenSet = false;
229 bool m_clientSubnetsHasBeenSet = false;
230 bool m_instanceTypeHasBeenSet = false;
231 bool m_securityGroupsHasBeenSet = false;
232 bool m_storageInfoHasBeenSet = false;
233 bool m_connectivityInfoHasBeenSet = false;
234 bool m_zoneIdsHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Kafka
239} // namespace Aws
BrokerNodeGroupInfo & AddClientSubnets(ClientSubnetsT &&value)
BrokerNodeGroupInfo & AddZoneIds(ZoneIdsT &&value)
BrokerNodeGroupInfo & WithStorageInfo(StorageInfoT &&value)
void SetClientSubnets(ClientSubnetsT &&value)
BrokerNodeGroupInfo & WithConnectivityInfo(ConnectivityInfoT &&value)
BrokerNodeGroupInfo & WithInstanceType(InstanceTypeT &&value)
BrokerAZDistribution GetBrokerAZDistribution() const
AWS_KAFKA_API BrokerNodeGroupInfo()=default
const Aws::Vector< Aws::String > & GetZoneIds() const
BrokerNodeGroupInfo & WithBrokerAZDistribution(BrokerAZDistribution value)
BrokerNodeGroupInfo & WithClientSubnets(ClientSubnetsT &&value)
void SetBrokerAZDistribution(BrokerAZDistribution value)
const ConnectivityInfo & GetConnectivityInfo() const
BrokerNodeGroupInfo & WithZoneIds(ZoneIdsT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API BrokerNodeGroupInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
BrokerNodeGroupInfo & AddSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AWS_KAFKA_API BrokerNodeGroupInfo(Aws::Utils::Json::JsonView jsonValue)
const StorageInfo & GetStorageInfo() const
BrokerNodeGroupInfo & WithSecurityGroups(SecurityGroupsT &&value)
void SetInstanceType(InstanceTypeT &&value)
void SetConnectivityInfo(ConnectivityInfoT &&value)
const Aws::Vector< Aws::String > & GetClientSubnets() const
const Aws::String & GetInstanceType() const
void SetSecurityGroups(SecurityGroupsT &&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