AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NetworkInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/EnaSupport.h>
12#include <aws/ec2/model/EfaInfo.h>
13#include <aws/ec2/model/FlexibleEnaQueuesSupport.h>
14#include <aws/ec2/model/NetworkCardInfo.h>
15#include <aws/ec2/model/BandwidthWeightingType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_EC2_API NetworkInfo() = default;
42 AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_EC2_API NetworkInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetNetworkPerformance() const { return m_networkPerformance; }
54 inline bool NetworkPerformanceHasBeenSet() const { return m_networkPerformanceHasBeenSet; }
55 template<typename NetworkPerformanceT = Aws::String>
56 void SetNetworkPerformance(NetworkPerformanceT&& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = std::forward<NetworkPerformanceT>(value); }
57 template<typename NetworkPerformanceT = Aws::String>
58 NetworkInfo& WithNetworkPerformance(NetworkPerformanceT&& value) { SetNetworkPerformance(std::forward<NetworkPerformanceT>(value)); return *this;}
60
62
65 inline int GetMaximumNetworkInterfaces() const { return m_maximumNetworkInterfaces; }
66 inline bool MaximumNetworkInterfacesHasBeenSet() const { return m_maximumNetworkInterfacesHasBeenSet; }
67 inline void SetMaximumNetworkInterfaces(int value) { m_maximumNetworkInterfacesHasBeenSet = true; m_maximumNetworkInterfaces = value; }
68 inline NetworkInfo& WithMaximumNetworkInterfaces(int value) { SetMaximumNetworkInterfaces(value); return *this;}
70
72
76 inline int GetMaximumNetworkCards() const { return m_maximumNetworkCards; }
77 inline bool MaximumNetworkCardsHasBeenSet() const { return m_maximumNetworkCardsHasBeenSet; }
78 inline void SetMaximumNetworkCards(int value) { m_maximumNetworkCardsHasBeenSet = true; m_maximumNetworkCards = value; }
79 inline NetworkInfo& WithMaximumNetworkCards(int value) { SetMaximumNetworkCards(value); return *this;}
81
83
86 inline int GetDefaultNetworkCardIndex() const { return m_defaultNetworkCardIndex; }
87 inline bool DefaultNetworkCardIndexHasBeenSet() const { return m_defaultNetworkCardIndexHasBeenSet; }
88 inline void SetDefaultNetworkCardIndex(int value) { m_defaultNetworkCardIndexHasBeenSet = true; m_defaultNetworkCardIndex = value; }
89 inline NetworkInfo& WithDefaultNetworkCardIndex(int value) { SetDefaultNetworkCardIndex(value); return *this;}
91
93
96 inline const Aws::Vector<NetworkCardInfo>& GetNetworkCards() const { return m_networkCards; }
97 inline bool NetworkCardsHasBeenSet() const { return m_networkCardsHasBeenSet; }
98 template<typename NetworkCardsT = Aws::Vector<NetworkCardInfo>>
99 void SetNetworkCards(NetworkCardsT&& value) { m_networkCardsHasBeenSet = true; m_networkCards = std::forward<NetworkCardsT>(value); }
100 template<typename NetworkCardsT = Aws::Vector<NetworkCardInfo>>
101 NetworkInfo& WithNetworkCards(NetworkCardsT&& value) { SetNetworkCards(std::forward<NetworkCardsT>(value)); return *this;}
102 template<typename NetworkCardsT = NetworkCardInfo>
103 NetworkInfo& AddNetworkCards(NetworkCardsT&& value) { m_networkCardsHasBeenSet = true; m_networkCards.emplace_back(std::forward<NetworkCardsT>(value)); return *this; }
105
107
110 inline int GetIpv4AddressesPerInterface() const { return m_ipv4AddressesPerInterface; }
111 inline bool Ipv4AddressesPerInterfaceHasBeenSet() const { return m_ipv4AddressesPerInterfaceHasBeenSet; }
112 inline void SetIpv4AddressesPerInterface(int value) { m_ipv4AddressesPerInterfaceHasBeenSet = true; m_ipv4AddressesPerInterface = value; }
115
117
120 inline int GetIpv6AddressesPerInterface() const { return m_ipv6AddressesPerInterface; }
121 inline bool Ipv6AddressesPerInterfaceHasBeenSet() const { return m_ipv6AddressesPerInterfaceHasBeenSet; }
122 inline void SetIpv6AddressesPerInterface(int value) { m_ipv6AddressesPerInterfaceHasBeenSet = true; m_ipv6AddressesPerInterface = value; }
125
127
130 inline bool GetIpv6Supported() const { return m_ipv6Supported; }
131 inline bool Ipv6SupportedHasBeenSet() const { return m_ipv6SupportedHasBeenSet; }
132 inline void SetIpv6Supported(bool value) { m_ipv6SupportedHasBeenSet = true; m_ipv6Supported = value; }
133 inline NetworkInfo& WithIpv6Supported(bool value) { SetIpv6Supported(value); return *this;}
135
137
140 inline EnaSupport GetEnaSupport() const { return m_enaSupport; }
141 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
142 inline void SetEnaSupport(EnaSupport value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
143 inline NetworkInfo& WithEnaSupport(EnaSupport value) { SetEnaSupport(value); return *this;}
145
147
150 inline bool GetEfaSupported() const { return m_efaSupported; }
151 inline bool EfaSupportedHasBeenSet() const { return m_efaSupportedHasBeenSet; }
152 inline void SetEfaSupported(bool value) { m_efaSupportedHasBeenSet = true; m_efaSupported = value; }
153 inline NetworkInfo& WithEfaSupported(bool value) { SetEfaSupported(value); return *this;}
155
157
160 inline const EfaInfo& GetEfaInfo() const { return m_efaInfo; }
161 inline bool EfaInfoHasBeenSet() const { return m_efaInfoHasBeenSet; }
162 template<typename EfaInfoT = EfaInfo>
163 void SetEfaInfo(EfaInfoT&& value) { m_efaInfoHasBeenSet = true; m_efaInfo = std::forward<EfaInfoT>(value); }
164 template<typename EfaInfoT = EfaInfo>
165 NetworkInfo& WithEfaInfo(EfaInfoT&& value) { SetEfaInfo(std::forward<EfaInfoT>(value)); return *this;}
167
169
173 inline bool GetEncryptionInTransitSupported() const { return m_encryptionInTransitSupported; }
174 inline bool EncryptionInTransitSupportedHasBeenSet() const { return m_encryptionInTransitSupportedHasBeenSet; }
175 inline void SetEncryptionInTransitSupported(bool value) { m_encryptionInTransitSupportedHasBeenSet = true; m_encryptionInTransitSupported = value; }
178
180
186 inline bool GetEnaSrdSupported() const { return m_enaSrdSupported; }
187 inline bool EnaSrdSupportedHasBeenSet() const { return m_enaSrdSupportedHasBeenSet; }
188 inline void SetEnaSrdSupported(bool value) { m_enaSrdSupportedHasBeenSet = true; m_enaSrdSupported = value; }
189 inline NetworkInfo& WithEnaSrdSupported(bool value) { SetEnaSrdSupported(value); return *this;}
191
193
197 inline const Aws::Vector<BandwidthWeightingType>& GetBandwidthWeightings() const { return m_bandwidthWeightings; }
198 inline bool BandwidthWeightingsHasBeenSet() const { return m_bandwidthWeightingsHasBeenSet; }
199 template<typename BandwidthWeightingsT = Aws::Vector<BandwidthWeightingType>>
200 void SetBandwidthWeightings(BandwidthWeightingsT&& value) { m_bandwidthWeightingsHasBeenSet = true; m_bandwidthWeightings = std::forward<BandwidthWeightingsT>(value); }
201 template<typename BandwidthWeightingsT = Aws::Vector<BandwidthWeightingType>>
202 NetworkInfo& WithBandwidthWeightings(BandwidthWeightingsT&& value) { SetBandwidthWeightings(std::forward<BandwidthWeightingsT>(value)); return *this;}
203 inline NetworkInfo& AddBandwidthWeightings(BandwidthWeightingType value) { m_bandwidthWeightingsHasBeenSet = true; m_bandwidthWeightings.push_back(value); return *this; }
205
207
210 inline FlexibleEnaQueuesSupport GetFlexibleEnaQueuesSupport() const { return m_flexibleEnaQueuesSupport; }
211 inline bool FlexibleEnaQueuesSupportHasBeenSet() const { return m_flexibleEnaQueuesSupportHasBeenSet; }
212 inline void SetFlexibleEnaQueuesSupport(FlexibleEnaQueuesSupport value) { m_flexibleEnaQueuesSupportHasBeenSet = true; m_flexibleEnaQueuesSupport = value; }
215 private:
216
217 Aws::String m_networkPerformance;
218 bool m_networkPerformanceHasBeenSet = false;
219
220 int m_maximumNetworkInterfaces{0};
221 bool m_maximumNetworkInterfacesHasBeenSet = false;
222
223 int m_maximumNetworkCards{0};
224 bool m_maximumNetworkCardsHasBeenSet = false;
225
226 int m_defaultNetworkCardIndex{0};
227 bool m_defaultNetworkCardIndexHasBeenSet = false;
228
229 Aws::Vector<NetworkCardInfo> m_networkCards;
230 bool m_networkCardsHasBeenSet = false;
231
232 int m_ipv4AddressesPerInterface{0};
233 bool m_ipv4AddressesPerInterfaceHasBeenSet = false;
234
235 int m_ipv6AddressesPerInterface{0};
236 bool m_ipv6AddressesPerInterfaceHasBeenSet = false;
237
238 bool m_ipv6Supported{false};
239 bool m_ipv6SupportedHasBeenSet = false;
240
241 EnaSupport m_enaSupport{EnaSupport::NOT_SET};
242 bool m_enaSupportHasBeenSet = false;
243
244 bool m_efaSupported{false};
245 bool m_efaSupportedHasBeenSet = false;
246
247 EfaInfo m_efaInfo;
248 bool m_efaInfoHasBeenSet = false;
249
250 bool m_encryptionInTransitSupported{false};
251 bool m_encryptionInTransitSupportedHasBeenSet = false;
252
253 bool m_enaSrdSupported{false};
254 bool m_enaSrdSupportedHasBeenSet = false;
255
256 Aws::Vector<BandwidthWeightingType> m_bandwidthWeightings;
257 bool m_bandwidthWeightingsHasBeenSet = false;
258
260 bool m_flexibleEnaQueuesSupportHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace EC2
265} // 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:78
void SetFlexibleEnaQueuesSupport(FlexibleEnaQueuesSupport value)
bool MaximumNetworkCardsHasBeenSet() const
Definition NetworkInfo.h:77
int GetMaximumNetworkInterfaces() const
Definition NetworkInfo.h:65
bool EfaSupportedHasBeenSet() const
int GetDefaultNetworkCardIndex() const
Definition NetworkInfo.h:86
NetworkInfo & WithFlexibleEnaQueuesSupport(FlexibleEnaQueuesSupport value)
AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool NetworkPerformanceHasBeenSet() const
Definition NetworkInfo.h:54
NetworkInfo & WithNetworkPerformance(NetworkPerformanceT &&value)
Definition NetworkInfo.h:58
int GetIpv6AddressesPerInterface() const
NetworkInfo & WithIpv6Supported(bool value)
bool NetworkCardsHasBeenSet() const
Definition NetworkInfo.h:97
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:68
bool DefaultNetworkCardIndexHasBeenSet() const
Definition NetworkInfo.h:87
NetworkInfo & WithMaximumNetworkCards(int value)
Definition NetworkInfo.h:79
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)
Definition NetworkInfo.h:89
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)
Definition NetworkInfo.h:99
EnaSupport GetEnaSupport() const
const EfaInfo & GetEfaInfo() const
const Aws::Vector< NetworkCardInfo > & GetNetworkCards() const
Definition NetworkInfo.h:96
void SetDefaultNetworkCardIndex(int value)
Definition NetworkInfo.h:88
bool EnaSrdSupportedHasBeenSet() const
NetworkInfo & WithEnaSupport(EnaSupport value)
const Aws::String & GetNetworkPerformance() const
Definition NetworkInfo.h:53
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:56
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