AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/BandwidthWeightingType.h>
12#include <aws/ec2/model/EfaInfo.h>
13#include <aws/ec2/model/EnaSupport.h>
14#include <aws/ec2/model/FlexibleEnaQueuesSupport.h>
15#include <aws/ec2/model/NetworkCardInfo.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
27
35 public:
36 AWS_EC2_API NetworkInfo() = default;
37 AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API NetworkInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetNetworkPerformance() const { return m_networkPerformance; }
48 inline bool NetworkPerformanceHasBeenSet() const { return m_networkPerformanceHasBeenSet; }
49 template <typename NetworkPerformanceT = Aws::String>
50 void SetNetworkPerformance(NetworkPerformanceT&& value) {
51 m_networkPerformanceHasBeenSet = true;
52 m_networkPerformance = std::forward<NetworkPerformanceT>(value);
53 }
54 template <typename NetworkPerformanceT = Aws::String>
55 NetworkInfo& WithNetworkPerformance(NetworkPerformanceT&& value) {
56 SetNetworkPerformance(std::forward<NetworkPerformanceT>(value));
57 return *this;
58 }
60
62
65 inline int GetMaximumNetworkInterfaces() const { return m_maximumNetworkInterfaces; }
66 inline bool MaximumNetworkInterfacesHasBeenSet() const { return m_maximumNetworkInterfacesHasBeenSet; }
67 inline void SetMaximumNetworkInterfaces(int value) {
68 m_maximumNetworkInterfacesHasBeenSet = true;
69 m_maximumNetworkInterfaces = value;
70 }
73 return *this;
74 }
76
78
82 inline int GetMaximumNetworkCards() const { return m_maximumNetworkCards; }
83 inline bool MaximumNetworkCardsHasBeenSet() const { return m_maximumNetworkCardsHasBeenSet; }
84 inline void SetMaximumNetworkCards(int value) {
85 m_maximumNetworkCardsHasBeenSet = true;
86 m_maximumNetworkCards = value;
87 }
90 return *this;
91 }
93
95
98 inline int GetDefaultNetworkCardIndex() const { return m_defaultNetworkCardIndex; }
99 inline bool DefaultNetworkCardIndexHasBeenSet() const { return m_defaultNetworkCardIndexHasBeenSet; }
100 inline void SetDefaultNetworkCardIndex(int value) {
101 m_defaultNetworkCardIndexHasBeenSet = true;
102 m_defaultNetworkCardIndex = value;
103 }
106 return *this;
107 }
109
111
114 inline const Aws::Vector<NetworkCardInfo>& GetNetworkCards() const { return m_networkCards; }
115 inline bool NetworkCardsHasBeenSet() const { return m_networkCardsHasBeenSet; }
116 template <typename NetworkCardsT = Aws::Vector<NetworkCardInfo>>
117 void SetNetworkCards(NetworkCardsT&& value) {
118 m_networkCardsHasBeenSet = true;
119 m_networkCards = std::forward<NetworkCardsT>(value);
120 }
121 template <typename NetworkCardsT = Aws::Vector<NetworkCardInfo>>
122 NetworkInfo& WithNetworkCards(NetworkCardsT&& value) {
123 SetNetworkCards(std::forward<NetworkCardsT>(value));
124 return *this;
125 }
126 template <typename NetworkCardsT = NetworkCardInfo>
127 NetworkInfo& AddNetworkCards(NetworkCardsT&& value) {
128 m_networkCardsHasBeenSet = true;
129 m_networkCards.emplace_back(std::forward<NetworkCardsT>(value));
130 return *this;
131 }
133
135
138 inline int GetIpv4AddressesPerInterface() const { return m_ipv4AddressesPerInterface; }
139 inline bool Ipv4AddressesPerInterfaceHasBeenSet() const { return m_ipv4AddressesPerInterfaceHasBeenSet; }
140 inline void SetIpv4AddressesPerInterface(int value) {
141 m_ipv4AddressesPerInterfaceHasBeenSet = true;
142 m_ipv4AddressesPerInterface = value;
143 }
146 return *this;
147 }
149
151
154 inline int GetIpv6AddressesPerInterface() const { return m_ipv6AddressesPerInterface; }
155 inline bool Ipv6AddressesPerInterfaceHasBeenSet() const { return m_ipv6AddressesPerInterfaceHasBeenSet; }
156 inline void SetIpv6AddressesPerInterface(int value) {
157 m_ipv6AddressesPerInterfaceHasBeenSet = true;
158 m_ipv6AddressesPerInterface = value;
159 }
162 return *this;
163 }
165
167
170 inline bool GetIpv6Supported() const { return m_ipv6Supported; }
171 inline bool Ipv6SupportedHasBeenSet() const { return m_ipv6SupportedHasBeenSet; }
172 inline void SetIpv6Supported(bool value) {
173 m_ipv6SupportedHasBeenSet = true;
174 m_ipv6Supported = value;
175 }
176 inline NetworkInfo& WithIpv6Supported(bool value) {
177 SetIpv6Supported(value);
178 return *this;
179 }
181
183
186 inline EnaSupport GetEnaSupport() const { return m_enaSupport; }
187 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
188 inline void SetEnaSupport(EnaSupport value) {
189 m_enaSupportHasBeenSet = true;
190 m_enaSupport = value;
191 }
193 SetEnaSupport(value);
194 return *this;
195 }
197
199
202 inline bool GetEfaSupported() const { return m_efaSupported; }
203 inline bool EfaSupportedHasBeenSet() const { return m_efaSupportedHasBeenSet; }
204 inline void SetEfaSupported(bool value) {
205 m_efaSupportedHasBeenSet = true;
206 m_efaSupported = value;
207 }
208 inline NetworkInfo& WithEfaSupported(bool value) {
209 SetEfaSupported(value);
210 return *this;
211 }
213
215
218 inline const EfaInfo& GetEfaInfo() const { return m_efaInfo; }
219 inline bool EfaInfoHasBeenSet() const { return m_efaInfoHasBeenSet; }
220 template <typename EfaInfoT = EfaInfo>
221 void SetEfaInfo(EfaInfoT&& value) {
222 m_efaInfoHasBeenSet = true;
223 m_efaInfo = std::forward<EfaInfoT>(value);
224 }
225 template <typename EfaInfoT = EfaInfo>
226 NetworkInfo& WithEfaInfo(EfaInfoT&& value) {
227 SetEfaInfo(std::forward<EfaInfoT>(value));
228 return *this;
229 }
231
233
237 inline bool GetEncryptionInTransitSupported() const { return m_encryptionInTransitSupported; }
238 inline bool EncryptionInTransitSupportedHasBeenSet() const { return m_encryptionInTransitSupportedHasBeenSet; }
239 inline void SetEncryptionInTransitSupported(bool value) {
240 m_encryptionInTransitSupportedHasBeenSet = true;
241 m_encryptionInTransitSupported = value;
242 }
245 return *this;
246 }
248
250
256 inline bool GetEnaSrdSupported() const { return m_enaSrdSupported; }
257 inline bool EnaSrdSupportedHasBeenSet() const { return m_enaSrdSupportedHasBeenSet; }
258 inline void SetEnaSrdSupported(bool value) {
259 m_enaSrdSupportedHasBeenSet = true;
260 m_enaSrdSupported = value;
261 }
262 inline NetworkInfo& WithEnaSrdSupported(bool value) {
263 SetEnaSrdSupported(value);
264 return *this;
265 }
267
269
273 inline const Aws::Vector<BandwidthWeightingType>& GetBandwidthWeightings() const { return m_bandwidthWeightings; }
274 inline bool BandwidthWeightingsHasBeenSet() const { return m_bandwidthWeightingsHasBeenSet; }
275 template <typename BandwidthWeightingsT = Aws::Vector<BandwidthWeightingType>>
276 void SetBandwidthWeightings(BandwidthWeightingsT&& value) {
277 m_bandwidthWeightingsHasBeenSet = true;
278 m_bandwidthWeightings = std::forward<BandwidthWeightingsT>(value);
279 }
280 template <typename BandwidthWeightingsT = Aws::Vector<BandwidthWeightingType>>
281 NetworkInfo& WithBandwidthWeightings(BandwidthWeightingsT&& value) {
282 SetBandwidthWeightings(std::forward<BandwidthWeightingsT>(value));
283 return *this;
284 }
286 m_bandwidthWeightingsHasBeenSet = true;
287 m_bandwidthWeightings.push_back(value);
288 return *this;
289 }
291
293
296 inline FlexibleEnaQueuesSupport GetFlexibleEnaQueuesSupport() const { return m_flexibleEnaQueuesSupport; }
297 inline bool FlexibleEnaQueuesSupportHasBeenSet() const { return m_flexibleEnaQueuesSupportHasBeenSet; }
299 m_flexibleEnaQueuesSupportHasBeenSet = true;
300 m_flexibleEnaQueuesSupport = value;
301 }
304 return *this;
305 }
307 private:
308 Aws::String m_networkPerformance;
309
310 int m_maximumNetworkInterfaces{0};
311
312 int m_maximumNetworkCards{0};
313
314 int m_defaultNetworkCardIndex{0};
315
316 Aws::Vector<NetworkCardInfo> m_networkCards;
317
318 int m_ipv4AddressesPerInterface{0};
319
320 int m_ipv6AddressesPerInterface{0};
321
322 bool m_ipv6Supported{false};
323
324 EnaSupport m_enaSupport{EnaSupport::NOT_SET};
325
326 bool m_efaSupported{false};
327
328 EfaInfo m_efaInfo;
329
330 bool m_encryptionInTransitSupported{false};
331
332 bool m_enaSrdSupported{false};
333
334 Aws::Vector<BandwidthWeightingType> m_bandwidthWeightings;
335
337 bool m_networkPerformanceHasBeenSet = false;
338 bool m_maximumNetworkInterfacesHasBeenSet = false;
339 bool m_maximumNetworkCardsHasBeenSet = false;
340 bool m_defaultNetworkCardIndexHasBeenSet = false;
341 bool m_networkCardsHasBeenSet = false;
342 bool m_ipv4AddressesPerInterfaceHasBeenSet = false;
343 bool m_ipv6AddressesPerInterfaceHasBeenSet = false;
344 bool m_ipv6SupportedHasBeenSet = false;
345 bool m_enaSupportHasBeenSet = false;
346 bool m_efaSupportedHasBeenSet = false;
347 bool m_efaInfoHasBeenSet = false;
348 bool m_encryptionInTransitSupportedHasBeenSet = false;
349 bool m_enaSrdSupportedHasBeenSet = false;
350 bool m_bandwidthWeightingsHasBeenSet = false;
351 bool m_flexibleEnaQueuesSupportHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace EC2
356} // namespace Aws
NetworkInfo & WithIpv6AddressesPerInterface(int value)
void SetBandwidthWeightings(BandwidthWeightingsT &&value)
NetworkInfo & WithEfaSupported(bool value)
void SetEfaSupported(bool value)
FlexibleEnaQueuesSupport GetFlexibleEnaQueuesSupport() const
bool MaximumNetworkInterfacesHasBeenSet() const
Definition NetworkInfo.h:66
void SetMaximumNetworkCards(int value)
Definition NetworkInfo.h:84
void SetFlexibleEnaQueuesSupport(FlexibleEnaQueuesSupport value)
bool MaximumNetworkCardsHasBeenSet() const
Definition NetworkInfo.h:83
int GetMaximumNetworkInterfaces() const
Definition NetworkInfo.h:65
bool EfaSupportedHasBeenSet() const
int GetDefaultNetworkCardIndex() const
Definition NetworkInfo.h:98
NetworkInfo & WithFlexibleEnaQueuesSupport(FlexibleEnaQueuesSupport value)
AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool NetworkPerformanceHasBeenSet() const
Definition NetworkInfo.h:48
NetworkInfo & WithNetworkPerformance(NetworkPerformanceT &&value)
Definition NetworkInfo.h:55
int GetIpv6AddressesPerInterface() const
NetworkInfo & WithIpv6Supported(bool value)
bool NetworkCardsHasBeenSet() const
NetworkInfo & WithEfaInfo(EfaInfoT &&value)
NetworkInfo & AddNetworkCards(NetworkCardsT &&value)
void SetEncryptionInTransitSupported(bool value)
bool Ipv4AddressesPerInterfaceHasBeenSet() const
bool Ipv6AddressesPerInterfaceHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetIpv4AddressesPerInterface(int value)
AWS_EC2_API NetworkInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEnaSupport(EnaSupport value)
NetworkInfo & WithMaximumNetworkInterfaces(int value)
Definition NetworkInfo.h:71
bool DefaultNetworkCardIndexHasBeenSet() const
Definition NetworkInfo.h:99
NetworkInfo & WithMaximumNetworkCards(int value)
Definition NetworkInfo.h:88
void SetIpv6AddressesPerInterface(int value)
bool EncryptionInTransitSupportedHasBeenSet() const
NetworkInfo & WithEnaSrdSupported(bool value)
void SetMaximumNetworkInterfaces(int value)
Definition NetworkInfo.h:67
AWS_EC2_API NetworkInfo()=default
bool FlexibleEnaQueuesSupportHasBeenSet() const
NetworkInfo & AddBandwidthWeightings(BandwidthWeightingType value)
NetworkInfo & WithNetworkCards(NetworkCardsT &&value)
bool GetEncryptionInTransitSupported() const
NetworkInfo & WithIpv4AddressesPerInterface(int value)
NetworkInfo & WithDefaultNetworkCardIndex(int value)
const Aws::Vector< BandwidthWeightingType > & GetBandwidthWeightings() const
void SetEnaSrdSupported(bool value)
bool Ipv6SupportedHasBeenSet() const
void SetEfaInfo(EfaInfoT &&value)
bool BandwidthWeightingsHasBeenSet() const
NetworkInfo & WithBandwidthWeightings(BandwidthWeightingsT &&value)
void SetNetworkCards(NetworkCardsT &&value)
EnaSupport GetEnaSupport() const
const EfaInfo & GetEfaInfo() const
const Aws::Vector< NetworkCardInfo > & GetNetworkCards() const
void SetDefaultNetworkCardIndex(int value)
bool EnaSrdSupportedHasBeenSet() const
NetworkInfo & WithEnaSupport(EnaSupport value)
const Aws::String & GetNetworkPerformance() const
Definition NetworkInfo.h:47
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetIpv4AddressesPerInterface() const
void SetIpv6Supported(bool value)
void SetNetworkPerformance(NetworkPerformanceT &&value)
Definition NetworkInfo.h:50
NetworkInfo & WithEncryptionInTransitSupported(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream