AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/NetworkCardInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_EC2_API NetworkInfo();
40 AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API NetworkInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetNetworkPerformance() const{ return m_networkPerformance; }
52 inline bool NetworkPerformanceHasBeenSet() const { return m_networkPerformanceHasBeenSet; }
53 inline void SetNetworkPerformance(const Aws::String& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = value; }
54 inline void SetNetworkPerformance(Aws::String&& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = std::move(value); }
55 inline void SetNetworkPerformance(const char* value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance.assign(value); }
56 inline NetworkInfo& WithNetworkPerformance(const Aws::String& value) { SetNetworkPerformance(value); return *this;}
57 inline NetworkInfo& WithNetworkPerformance(Aws::String&& value) { SetNetworkPerformance(std::move(value)); return *this;}
58 inline NetworkInfo& WithNetworkPerformance(const char* value) { SetNetworkPerformance(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 inline void SetNetworkCards(const Aws::Vector<NetworkCardInfo>& value) { m_networkCardsHasBeenSet = true; m_networkCards = value; }
99 inline void SetNetworkCards(Aws::Vector<NetworkCardInfo>&& value) { m_networkCardsHasBeenSet = true; m_networkCards = std::move(value); }
100 inline NetworkInfo& WithNetworkCards(const Aws::Vector<NetworkCardInfo>& value) { SetNetworkCards(value); return *this;}
101 inline NetworkInfo& WithNetworkCards(Aws::Vector<NetworkCardInfo>&& value) { SetNetworkCards(std::move(value)); return *this;}
102 inline NetworkInfo& AddNetworkCards(const NetworkCardInfo& value) { m_networkCardsHasBeenSet = true; m_networkCards.push_back(value); return *this; }
103 inline NetworkInfo& AddNetworkCards(NetworkCardInfo&& value) { m_networkCardsHasBeenSet = true; m_networkCards.push_back(std::move(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 const EnaSupport& GetEnaSupport() const{ return m_enaSupport; }
141 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
142 inline void SetEnaSupport(const EnaSupport& value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
143 inline void SetEnaSupport(EnaSupport&& value) { m_enaSupportHasBeenSet = true; m_enaSupport = std::move(value); }
144 inline NetworkInfo& WithEnaSupport(const EnaSupport& value) { SetEnaSupport(value); return *this;}
145 inline NetworkInfo& WithEnaSupport(EnaSupport&& value) { SetEnaSupport(std::move(value)); return *this;}
147
149
152 inline bool GetEfaSupported() const{ return m_efaSupported; }
153 inline bool EfaSupportedHasBeenSet() const { return m_efaSupportedHasBeenSet; }
154 inline void SetEfaSupported(bool value) { m_efaSupportedHasBeenSet = true; m_efaSupported = value; }
155 inline NetworkInfo& WithEfaSupported(bool value) { SetEfaSupported(value); return *this;}
157
159
162 inline const EfaInfo& GetEfaInfo() const{ return m_efaInfo; }
163 inline bool EfaInfoHasBeenSet() const { return m_efaInfoHasBeenSet; }
164 inline void SetEfaInfo(const EfaInfo& value) { m_efaInfoHasBeenSet = true; m_efaInfo = value; }
165 inline void SetEfaInfo(EfaInfo&& value) { m_efaInfoHasBeenSet = true; m_efaInfo = std::move(value); }
166 inline NetworkInfo& WithEfaInfo(const EfaInfo& value) { SetEfaInfo(value); return *this;}
167 inline NetworkInfo& WithEfaInfo(EfaInfo&& value) { SetEfaInfo(std::move(value)); return *this;}
169
171
175 inline bool GetEncryptionInTransitSupported() const{ return m_encryptionInTransitSupported; }
176 inline bool EncryptionInTransitSupportedHasBeenSet() const { return m_encryptionInTransitSupportedHasBeenSet; }
177 inline void SetEncryptionInTransitSupported(bool value) { m_encryptionInTransitSupportedHasBeenSet = true; m_encryptionInTransitSupported = value; }
180
182
188 inline bool GetEnaSrdSupported() const{ return m_enaSrdSupported; }
189 inline bool EnaSrdSupportedHasBeenSet() const { return m_enaSrdSupportedHasBeenSet; }
190 inline void SetEnaSrdSupported(bool value) { m_enaSrdSupportedHasBeenSet = true; m_enaSrdSupported = value; }
191 inline NetworkInfo& WithEnaSrdSupported(bool value) { SetEnaSrdSupported(value); return *this;}
193 private:
194
195 Aws::String m_networkPerformance;
196 bool m_networkPerformanceHasBeenSet = false;
197
198 int m_maximumNetworkInterfaces;
199 bool m_maximumNetworkInterfacesHasBeenSet = false;
200
201 int m_maximumNetworkCards;
202 bool m_maximumNetworkCardsHasBeenSet = false;
203
204 int m_defaultNetworkCardIndex;
205 bool m_defaultNetworkCardIndexHasBeenSet = false;
206
207 Aws::Vector<NetworkCardInfo> m_networkCards;
208 bool m_networkCardsHasBeenSet = false;
209
210 int m_ipv4AddressesPerInterface;
211 bool m_ipv4AddressesPerInterfaceHasBeenSet = false;
212
213 int m_ipv6AddressesPerInterface;
214 bool m_ipv6AddressesPerInterfaceHasBeenSet = false;
215
216 bool m_ipv6Supported;
217 bool m_ipv6SupportedHasBeenSet = false;
218
219 EnaSupport m_enaSupport;
220 bool m_enaSupportHasBeenSet = false;
221
222 bool m_efaSupported;
223 bool m_efaSupportedHasBeenSet = false;
224
225 EfaInfo m_efaInfo;
226 bool m_efaInfoHasBeenSet = false;
227
228 bool m_encryptionInTransitSupported;
229 bool m_encryptionInTransitSupportedHasBeenSet = false;
230
231 bool m_enaSrdSupported;
232 bool m_enaSrdSupportedHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace EC2
237} // namespace Aws
NetworkInfo & WithNetworkPerformance(const char *value)
Definition NetworkInfo.h:58
NetworkInfo & WithIpv6AddressesPerInterface(int value)
NetworkInfo & WithEfaSupported(bool value)
void SetEfaSupported(bool value)
bool MaximumNetworkInterfacesHasBeenSet() const
Definition NetworkInfo.h:66
void SetMaximumNetworkCards(int value)
Definition NetworkInfo.h:78
bool MaximumNetworkCardsHasBeenSet() const
Definition NetworkInfo.h:77
int GetMaximumNetworkInterfaces() const
Definition NetworkInfo.h:65
bool EfaSupportedHasBeenSet() const
int GetDefaultNetworkCardIndex() const
Definition NetworkInfo.h:86
AWS_EC2_API NetworkInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEfaInfo(EfaInfo &&value)
NetworkInfo & WithNetworkCards(Aws::Vector< NetworkCardInfo > &&value)
bool NetworkPerformanceHasBeenSet() const
Definition NetworkInfo.h:52
int GetIpv6AddressesPerInterface() const
void SetNetworkPerformance(Aws::String &&value)
Definition NetworkInfo.h:54
NetworkInfo & WithIpv6Supported(bool value)
NetworkInfo & WithNetworkCards(const Aws::Vector< NetworkCardInfo > &value)
bool NetworkCardsHasBeenSet() const
Definition NetworkInfo.h:97
NetworkInfo & WithEnaSupport(EnaSupport &&value)
void SetEncryptionInTransitSupported(bool value)
void SetNetworkPerformance(const Aws::String &value)
Definition NetworkInfo.h:53
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)
NetworkInfo & AddNetworkCards(const NetworkCardInfo &value)
AWS_EC2_API NetworkInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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 & WithEfaInfo(const EfaInfo &value)
NetworkInfo & WithEfaInfo(EfaInfo &&value)
NetworkInfo & WithEnaSrdSupported(bool value)
void SetMaximumNetworkInterfaces(int value)
Definition NetworkInfo.h:67
NetworkInfo & AddNetworkCards(NetworkCardInfo &&value)
NetworkInfo & WithEnaSupport(const EnaSupport &value)
bool GetEncryptionInTransitSupported() const
void SetEfaInfo(const EfaInfo &value)
NetworkInfo & WithIpv4AddressesPerInterface(int value)
NetworkInfo & WithDefaultNetworkCardIndex(int value)
Definition NetworkInfo.h:89
void SetNetworkPerformance(const char *value)
Definition NetworkInfo.h:55
const EnaSupport & GetEnaSupport() const
void SetEnaSrdSupported(bool value)
void SetEnaSupport(const EnaSupport &value)
bool Ipv6SupportedHasBeenSet() 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
const Aws::String & GetNetworkPerformance() const
Definition NetworkInfo.h:51
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetIpv4AddressesPerInterface() const
void SetIpv6Supported(bool value)
void SetNetworkCards(Aws::Vector< NetworkCardInfo > &&value)
Definition NetworkInfo.h:99
NetworkInfo & WithNetworkPerformance(const Aws::String &value)
Definition NetworkInfo.h:56
NetworkInfo & WithEncryptionInTransitSupported(bool value)
void SetEnaSupport(EnaSupport &&value)
NetworkInfo & WithNetworkPerformance(Aws::String &&value)
Definition NetworkInfo.h:57
void SetNetworkCards(const Aws::Vector< NetworkCardInfo > &value)
Definition NetworkInfo.h:98
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