AWS SDK for C++  1.9.108
AWS SDK for C++
NetworkInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/EfaInfo.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetNetworkPerformance() const{ return m_networkPerformance; }
51 
55  inline bool NetworkPerformanceHasBeenSet() const { return m_networkPerformanceHasBeenSet; }
56 
60  inline void SetNetworkPerformance(const Aws::String& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = value; }
61 
65  inline void SetNetworkPerformance(Aws::String&& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = std::move(value); }
66 
70  inline void SetNetworkPerformance(const char* value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance.assign(value); }
71 
75  inline NetworkInfo& WithNetworkPerformance(const Aws::String& value) { SetNetworkPerformance(value); return *this;}
76 
80  inline NetworkInfo& WithNetworkPerformance(Aws::String&& value) { SetNetworkPerformance(std::move(value)); return *this;}
81 
85  inline NetworkInfo& WithNetworkPerformance(const char* value) { SetNetworkPerformance(value); return *this;}
86 
87 
91  inline int GetMaximumNetworkInterfaces() const{ return m_maximumNetworkInterfaces; }
92 
96  inline bool MaximumNetworkInterfacesHasBeenSet() const { return m_maximumNetworkInterfacesHasBeenSet; }
97 
101  inline void SetMaximumNetworkInterfaces(int value) { m_maximumNetworkInterfacesHasBeenSet = true; m_maximumNetworkInterfaces = value; }
102 
106  inline NetworkInfo& WithMaximumNetworkInterfaces(int value) { SetMaximumNetworkInterfaces(value); return *this;}
107 
108 
113  inline int GetMaximumNetworkCards() const{ return m_maximumNetworkCards; }
114 
119  inline bool MaximumNetworkCardsHasBeenSet() const { return m_maximumNetworkCardsHasBeenSet; }
120 
125  inline void SetMaximumNetworkCards(int value) { m_maximumNetworkCardsHasBeenSet = true; m_maximumNetworkCards = value; }
126 
131  inline NetworkInfo& WithMaximumNetworkCards(int value) { SetMaximumNetworkCards(value); return *this;}
132 
133 
137  inline int GetDefaultNetworkCardIndex() const{ return m_defaultNetworkCardIndex; }
138 
142  inline bool DefaultNetworkCardIndexHasBeenSet() const { return m_defaultNetworkCardIndexHasBeenSet; }
143 
147  inline void SetDefaultNetworkCardIndex(int value) { m_defaultNetworkCardIndexHasBeenSet = true; m_defaultNetworkCardIndex = value; }
148 
152  inline NetworkInfo& WithDefaultNetworkCardIndex(int value) { SetDefaultNetworkCardIndex(value); return *this;}
153 
154 
158  inline const Aws::Vector<NetworkCardInfo>& GetNetworkCards() const{ return m_networkCards; }
159 
163  inline bool NetworkCardsHasBeenSet() const { return m_networkCardsHasBeenSet; }
164 
168  inline void SetNetworkCards(const Aws::Vector<NetworkCardInfo>& value) { m_networkCardsHasBeenSet = true; m_networkCards = value; }
169 
173  inline void SetNetworkCards(Aws::Vector<NetworkCardInfo>&& value) { m_networkCardsHasBeenSet = true; m_networkCards = std::move(value); }
174 
178  inline NetworkInfo& WithNetworkCards(const Aws::Vector<NetworkCardInfo>& value) { SetNetworkCards(value); return *this;}
179 
183  inline NetworkInfo& WithNetworkCards(Aws::Vector<NetworkCardInfo>&& value) { SetNetworkCards(std::move(value)); return *this;}
184 
188  inline NetworkInfo& AddNetworkCards(const NetworkCardInfo& value) { m_networkCardsHasBeenSet = true; m_networkCards.push_back(value); return *this; }
189 
193  inline NetworkInfo& AddNetworkCards(NetworkCardInfo&& value) { m_networkCardsHasBeenSet = true; m_networkCards.push_back(std::move(value)); return *this; }
194 
195 
199  inline int GetIpv4AddressesPerInterface() const{ return m_ipv4AddressesPerInterface; }
200 
204  inline bool Ipv4AddressesPerInterfaceHasBeenSet() const { return m_ipv4AddressesPerInterfaceHasBeenSet; }
205 
209  inline void SetIpv4AddressesPerInterface(int value) { m_ipv4AddressesPerInterfaceHasBeenSet = true; m_ipv4AddressesPerInterface = value; }
210 
214  inline NetworkInfo& WithIpv4AddressesPerInterface(int value) { SetIpv4AddressesPerInterface(value); return *this;}
215 
216 
220  inline int GetIpv6AddressesPerInterface() const{ return m_ipv6AddressesPerInterface; }
221 
225  inline bool Ipv6AddressesPerInterfaceHasBeenSet() const { return m_ipv6AddressesPerInterfaceHasBeenSet; }
226 
230  inline void SetIpv6AddressesPerInterface(int value) { m_ipv6AddressesPerInterfaceHasBeenSet = true; m_ipv6AddressesPerInterface = value; }
231 
235  inline NetworkInfo& WithIpv6AddressesPerInterface(int value) { SetIpv6AddressesPerInterface(value); return *this;}
236 
237 
241  inline bool GetIpv6Supported() const{ return m_ipv6Supported; }
242 
246  inline bool Ipv6SupportedHasBeenSet() const { return m_ipv6SupportedHasBeenSet; }
247 
251  inline void SetIpv6Supported(bool value) { m_ipv6SupportedHasBeenSet = true; m_ipv6Supported = value; }
252 
256  inline NetworkInfo& WithIpv6Supported(bool value) { SetIpv6Supported(value); return *this;}
257 
258 
262  inline const EnaSupport& GetEnaSupport() const{ return m_enaSupport; }
263 
267  inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
268 
272  inline void SetEnaSupport(const EnaSupport& value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
273 
277  inline void SetEnaSupport(EnaSupport&& value) { m_enaSupportHasBeenSet = true; m_enaSupport = std::move(value); }
278 
282  inline NetworkInfo& WithEnaSupport(const EnaSupport& value) { SetEnaSupport(value); return *this;}
283 
287  inline NetworkInfo& WithEnaSupport(EnaSupport&& value) { SetEnaSupport(std::move(value)); return *this;}
288 
289 
293  inline bool GetEfaSupported() const{ return m_efaSupported; }
294 
298  inline bool EfaSupportedHasBeenSet() const { return m_efaSupportedHasBeenSet; }
299 
303  inline void SetEfaSupported(bool value) { m_efaSupportedHasBeenSet = true; m_efaSupported = value; }
304 
308  inline NetworkInfo& WithEfaSupported(bool value) { SetEfaSupported(value); return *this;}
309 
310 
314  inline const EfaInfo& GetEfaInfo() const{ return m_efaInfo; }
315 
319  inline bool EfaInfoHasBeenSet() const { return m_efaInfoHasBeenSet; }
320 
324  inline void SetEfaInfo(const EfaInfo& value) { m_efaInfoHasBeenSet = true; m_efaInfo = value; }
325 
329  inline void SetEfaInfo(EfaInfo&& value) { m_efaInfoHasBeenSet = true; m_efaInfo = std::move(value); }
330 
334  inline NetworkInfo& WithEfaInfo(const EfaInfo& value) { SetEfaInfo(value); return *this;}
335 
339  inline NetworkInfo& WithEfaInfo(EfaInfo&& value) { SetEfaInfo(std::move(value)); return *this;}
340 
341 
346  inline bool GetEncryptionInTransitSupported() const{ return m_encryptionInTransitSupported; }
347 
352  inline bool EncryptionInTransitSupportedHasBeenSet() const { return m_encryptionInTransitSupportedHasBeenSet; }
353 
358  inline void SetEncryptionInTransitSupported(bool value) { m_encryptionInTransitSupportedHasBeenSet = true; m_encryptionInTransitSupported = value; }
359 
364  inline NetworkInfo& WithEncryptionInTransitSupported(bool value) { SetEncryptionInTransitSupported(value); return *this;}
365 
366  private:
367 
368  Aws::String m_networkPerformance;
369  bool m_networkPerformanceHasBeenSet;
370 
371  int m_maximumNetworkInterfaces;
372  bool m_maximumNetworkInterfacesHasBeenSet;
373 
374  int m_maximumNetworkCards;
375  bool m_maximumNetworkCardsHasBeenSet;
376 
377  int m_defaultNetworkCardIndex;
378  bool m_defaultNetworkCardIndexHasBeenSet;
379 
380  Aws::Vector<NetworkCardInfo> m_networkCards;
381  bool m_networkCardsHasBeenSet;
382 
383  int m_ipv4AddressesPerInterface;
384  bool m_ipv4AddressesPerInterfaceHasBeenSet;
385 
386  int m_ipv6AddressesPerInterface;
387  bool m_ipv6AddressesPerInterfaceHasBeenSet;
388 
389  bool m_ipv6Supported;
390  bool m_ipv6SupportedHasBeenSet;
391 
392  EnaSupport m_enaSupport;
393  bool m_enaSupportHasBeenSet;
394 
395  bool m_efaSupported;
396  bool m_efaSupportedHasBeenSet;
397 
398  EfaInfo m_efaInfo;
399  bool m_efaInfoHasBeenSet;
400 
401  bool m_encryptionInTransitSupported;
402  bool m_encryptionInTransitSupportedHasBeenSet;
403  };
404 
405 } // namespace Model
406 } // namespace EC2
407 } // namespace Aws
Aws::EC2::Model::NetworkInfo::WithEncryptionInTransitSupported
NetworkInfo & WithEncryptionInTransitSupported(bool value)
Definition: NetworkInfo.h:364
Aws::EC2::Model::NetworkInfo::GetMaximumNetworkCards
int GetMaximumNetworkCards() const
Definition: NetworkInfo.h:113
Aws::EC2::Model::NetworkInfo::GetIpv6Supported
bool GetIpv6Supported() const
Definition: NetworkInfo.h:241
Aws::EC2::Model::NetworkInfo::SetIpv6Supported
void SetIpv6Supported(bool value)
Definition: NetworkInfo.h:251
Aws::EC2::Model::NetworkInfo::GetEfaInfo
const EfaInfo & GetEfaInfo() const
Definition: NetworkInfo.h:314
Aws::EC2::Model::NetworkInfo::operator=
NetworkInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInfo::EncryptionInTransitSupportedHasBeenSet
bool EncryptionInTransitSupportedHasBeenSet() const
Definition: NetworkInfo.h:352
Aws::EC2::Model::NetworkInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkInfo::WithEfaInfo
NetworkInfo & WithEfaInfo(EfaInfo &&value)
Definition: NetworkInfo.h:339
Aws::EC2::Model::NetworkInfo::SetEnaSupport
void SetEnaSupport(const EnaSupport &value)
Definition: NetworkInfo.h:272
Aws::EC2::Model::NetworkInfo::WithEnaSupport
NetworkInfo & WithEnaSupport(const EnaSupport &value)
Definition: NetworkInfo.h:282
Aws::EC2::Model::NetworkInfo::AddNetworkCards
NetworkInfo & AddNetworkCards(NetworkCardInfo &&value)
Definition: NetworkInfo.h:193
Aws::EC2::Model::NetworkInfo::NetworkInfo
NetworkInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
EfaInfo.h
Aws::EC2::Model::NetworkInfo::SetEfaInfo
void SetEfaInfo(EfaInfo &&value)
Definition: NetworkInfo.h:329
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInfo::AddNetworkCards
NetworkInfo & AddNetworkCards(const NetworkCardInfo &value)
Definition: NetworkInfo.h:188
Aws::EC2::Model::NetworkCardInfo
Definition: NetworkCardInfo.h:33
Aws::EC2::Model::NetworkInfo::GetIpv6AddressesPerInterface
int GetIpv6AddressesPerInterface() const
Definition: NetworkInfo.h:220
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::NetworkInfo::WithIpv4AddressesPerInterface
NetworkInfo & WithIpv4AddressesPerInterface(int value)
Definition: NetworkInfo.h:214
Aws::EC2::Model::NetworkInfo::NetworkCardsHasBeenSet
bool NetworkCardsHasBeenSet() const
Definition: NetworkInfo.h:163
AWSVector.h
Aws::EC2::Model::NetworkInfo::SetNetworkPerformance
void SetNetworkPerformance(Aws::String &&value)
Definition: NetworkInfo.h:65
Aws::EC2::Model::NetworkInfo::GetDefaultNetworkCardIndex
int GetDefaultNetworkCardIndex() const
Definition: NetworkInfo.h:137
Aws::EC2::Model::NetworkInfo::WithEfaInfo
NetworkInfo & WithEfaInfo(const EfaInfo &value)
Definition: NetworkInfo.h:334
Aws::EC2::Model::NetworkInfo::SetIpv6AddressesPerInterface
void SetIpv6AddressesPerInterface(int value)
Definition: NetworkInfo.h:230
Aws::EC2::Model::NetworkInfo::WithNetworkCards
NetworkInfo & WithNetworkCards(const Aws::Vector< NetworkCardInfo > &value)
Definition: NetworkInfo.h:178
Aws::EC2::Model::NetworkInfo::MaximumNetworkCardsHasBeenSet
bool MaximumNetworkCardsHasBeenSet() const
Definition: NetworkInfo.h:119
Aws::EC2::Model::NetworkInfo::SetNetworkPerformance
void SetNetworkPerformance(const char *value)
Definition: NetworkInfo.h:70
Aws::EC2::Model::NetworkInfo::EnaSupportHasBeenSet
bool EnaSupportHasBeenSet() const
Definition: NetworkInfo.h:267
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkInfo::NetworkPerformanceHasBeenSet
bool NetworkPerformanceHasBeenSet() const
Definition: NetworkInfo.h:55
Aws::EC2::Model::NetworkInfo::Ipv6AddressesPerInterfaceHasBeenSet
bool Ipv6AddressesPerInterfaceHasBeenSet() const
Definition: NetworkInfo.h:225
Aws::EC2::Model::NetworkInfo::WithNetworkPerformance
NetworkInfo & WithNetworkPerformance(const char *value)
Definition: NetworkInfo.h:85
Aws::EC2::Model::NetworkInfo::SetNetworkCards
void SetNetworkCards(Aws::Vector< NetworkCardInfo > &&value)
Definition: NetworkInfo.h:173
Aws::EC2::Model::NetworkInfo::SetIpv4AddressesPerInterface
void SetIpv4AddressesPerInterface(int value)
Definition: NetworkInfo.h:209
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInfo::GetEnaSupport
const EnaSupport & GetEnaSupport() const
Definition: NetworkInfo.h:262
Aws::EC2::Model::NetworkInfo::WithEfaSupported
NetworkInfo & WithEfaSupported(bool value)
Definition: NetworkInfo.h:308
Aws::EC2::Model::NetworkInfo::SetEncryptionInTransitSupported
void SetEncryptionInTransitSupported(bool value)
Definition: NetworkInfo.h:358
Aws::EC2::Model::NetworkInfo::GetMaximumNetworkInterfaces
int GetMaximumNetworkInterfaces() const
Definition: NetworkInfo.h:91
Aws::EC2::Model::NetworkInfo
Definition: NetworkInfo.h:37
NetworkCardInfo.h
Aws::EC2::Model::NetworkInfo::SetEfaInfo
void SetEfaInfo(const EfaInfo &value)
Definition: NetworkInfo.h:324
Aws::EC2::Model::NetworkInfo::GetEfaSupported
bool GetEfaSupported() const
Definition: NetworkInfo.h:293
EnaSupport.h
Aws::EC2::Model::NetworkInfo::WithNetworkPerformance
NetworkInfo & WithNetworkPerformance(Aws::String &&value)
Definition: NetworkInfo.h:80
AWSString.h
Aws::EC2::Model::NetworkInfo::WithNetworkPerformance
NetworkInfo & WithNetworkPerformance(const Aws::String &value)
Definition: NetworkInfo.h:75
Aws::EC2::Model::NetworkInfo::MaximumNetworkInterfacesHasBeenSet
bool MaximumNetworkInterfacesHasBeenSet() const
Definition: NetworkInfo.h:96
Aws::EC2::Model::EfaInfo
Definition: EfaInfo.h:31
Aws::EC2::Model::NetworkInfo::WithMaximumNetworkInterfaces
NetworkInfo & WithMaximumNetworkInterfaces(int value)
Definition: NetworkInfo.h:106
Aws::EC2::Model::NetworkInfo::EfaSupportedHasBeenSet
bool EfaSupportedHasBeenSet() const
Definition: NetworkInfo.h:298
Aws::EC2::Model::NetworkInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkInfo::SetNetworkCards
void SetNetworkCards(const Aws::Vector< NetworkCardInfo > &value)
Definition: NetworkInfo.h:168
Aws::EC2::Model::NetworkInfo::WithIpv6AddressesPerInterface
NetworkInfo & WithIpv6AddressesPerInterface(int value)
Definition: NetworkInfo.h:235
Aws::EC2::Model::NetworkInfo::GetEncryptionInTransitSupported
bool GetEncryptionInTransitSupported() const
Definition: NetworkInfo.h:346
Aws::EC2::Model::NetworkInfo::SetEfaSupported
void SetEfaSupported(bool value)
Definition: NetworkInfo.h:303
Aws::EC2::Model::NetworkInfo::WithIpv6Supported
NetworkInfo & WithIpv6Supported(bool value)
Definition: NetworkInfo.h:256
Aws::EC2::Model::NetworkInfo::SetNetworkPerformance
void SetNetworkPerformance(const Aws::String &value)
Definition: NetworkInfo.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInfo::WithEnaSupport
NetworkInfo & WithEnaSupport(EnaSupport &&value)
Definition: NetworkInfo.h:287
Aws::EC2::Model::NetworkInfo::DefaultNetworkCardIndexHasBeenSet
bool DefaultNetworkCardIndexHasBeenSet() const
Definition: NetworkInfo.h:142
Aws::EC2::Model::NetworkInfo::GetIpv4AddressesPerInterface
int GetIpv4AddressesPerInterface() const
Definition: NetworkInfo.h:199
Aws::EC2::Model::NetworkInfo::SetEnaSupport
void SetEnaSupport(EnaSupport &&value)
Definition: NetworkInfo.h:277
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NetworkInfo::Ipv6SupportedHasBeenSet
bool Ipv6SupportedHasBeenSet() const
Definition: NetworkInfo.h:246
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkInfo::NetworkInfo
NetworkInfo()
Aws::EC2::Model::NetworkInfo::GetNetworkCards
const Aws::Vector< NetworkCardInfo > & GetNetworkCards() const
Definition: NetworkInfo.h:158
Aws::EC2::Model::NetworkInfo::SetMaximumNetworkCards
void SetMaximumNetworkCards(int value)
Definition: NetworkInfo.h:125
Aws::EC2::Model::NetworkInfo::GetNetworkPerformance
const Aws::String & GetNetworkPerformance() const
Definition: NetworkInfo.h:50
Aws::EC2::Model::NetworkInfo::SetDefaultNetworkCardIndex
void SetDefaultNetworkCardIndex(int value)
Definition: NetworkInfo.h:147
Aws::EC2::Model::NetworkInfo::WithDefaultNetworkCardIndex
NetworkInfo & WithDefaultNetworkCardIndex(int value)
Definition: NetworkInfo.h:152
Aws::EC2::Model::NetworkInfo::WithNetworkCards
NetworkInfo & WithNetworkCards(Aws::Vector< NetworkCardInfo > &&value)
Definition: NetworkInfo.h:183
Aws::EC2::Model::NetworkInfo::EfaInfoHasBeenSet
bool EfaInfoHasBeenSet() const
Definition: NetworkInfo.h:319
Aws::EC2::Model::NetworkInfo::WithMaximumNetworkCards
NetworkInfo & WithMaximumNetworkCards(int value)
Definition: NetworkInfo.h:131
Aws::EC2::Model::EnaSupport
EnaSupport
Definition: EnaSupport.h:17
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInfo::Ipv4AddressesPerInterfaceHasBeenSet
bool Ipv4AddressesPerInterfaceHasBeenSet() const
Definition: NetworkInfo.h:204
Aws::EC2::Model::NetworkInfo::SetMaximumNetworkInterfaces
void SetMaximumNetworkInterfaces(int value)
Definition: NetworkInfo.h:101