AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpnConnectionOptionsSpecification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/TunnelInsideIpVersion.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/VpnTunnelOptionsSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline bool GetEnableAcceleration() const{ return m_enableAcceleration; }
51 inline bool EnableAccelerationHasBeenSet() const { return m_enableAccelerationHasBeenSet; }
52 inline void SetEnableAcceleration(bool value) { m_enableAccelerationHasBeenSet = true; m_enableAcceleration = value; }
55
57
61 inline const TunnelInsideIpVersion& GetTunnelInsideIpVersion() const{ return m_tunnelInsideIpVersion; }
62 inline bool TunnelInsideIpVersionHasBeenSet() const { return m_tunnelInsideIpVersionHasBeenSet; }
63 inline void SetTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = value; }
64 inline void SetTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = std::move(value); }
68
70
73 inline const Aws::Vector<VpnTunnelOptionsSpecification>& GetTunnelOptions() const{ return m_tunnelOptions; }
74 inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
75 inline void SetTunnelOptions(const Aws::Vector<VpnTunnelOptionsSpecification>& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = value; }
76 inline void SetTunnelOptions(Aws::Vector<VpnTunnelOptionsSpecification>&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::move(value); }
79 inline VpnConnectionOptionsSpecification& AddTunnelOptions(const VpnTunnelOptionsSpecification& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(value); return *this; }
80 inline VpnConnectionOptionsSpecification& AddTunnelOptions(VpnTunnelOptionsSpecification&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(std::move(value)); return *this; }
82
84
88 inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; }
89 inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; }
90 inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; }
91 inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); }
92 inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); }
97
99
103 inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; }
104 inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; }
105 inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; }
106 inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); }
107 inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); }
112
114
118 inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; }
119 inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; }
120 inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; }
121 inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); }
122 inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); }
127
129
133 inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; }
134 inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; }
135 inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; }
136 inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); }
137 inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); }
142
144
149 inline const Aws::String& GetOutsideIpAddressType() const{ return m_outsideIpAddressType; }
150 inline bool OutsideIpAddressTypeHasBeenSet() const { return m_outsideIpAddressTypeHasBeenSet; }
151 inline void SetOutsideIpAddressType(const Aws::String& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = value; }
152 inline void SetOutsideIpAddressType(Aws::String&& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = std::move(value); }
153 inline void SetOutsideIpAddressType(const char* value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType.assign(value); }
158
160
164 inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
165 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
166 inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
167 inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
168 inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
173
175
181 inline bool GetStaticRoutesOnly() const{ return m_staticRoutesOnly; }
182 inline bool StaticRoutesOnlyHasBeenSet() const { return m_staticRoutesOnlyHasBeenSet; }
183 inline void SetStaticRoutesOnly(bool value) { m_staticRoutesOnlyHasBeenSet = true; m_staticRoutesOnly = value; }
186 private:
187
188 bool m_enableAcceleration;
189 bool m_enableAccelerationHasBeenSet = false;
190
191 TunnelInsideIpVersion m_tunnelInsideIpVersion;
192 bool m_tunnelInsideIpVersionHasBeenSet = false;
193
195 bool m_tunnelOptionsHasBeenSet = false;
196
197 Aws::String m_localIpv4NetworkCidr;
198 bool m_localIpv4NetworkCidrHasBeenSet = false;
199
200 Aws::String m_remoteIpv4NetworkCidr;
201 bool m_remoteIpv4NetworkCidrHasBeenSet = false;
202
203 Aws::String m_localIpv6NetworkCidr;
204 bool m_localIpv6NetworkCidrHasBeenSet = false;
205
206 Aws::String m_remoteIpv6NetworkCidr;
207 bool m_remoteIpv6NetworkCidrHasBeenSet = false;
208
209 Aws::String m_outsideIpAddressType;
210 bool m_outsideIpAddressTypeHasBeenSet = false;
211
212 Aws::String m_transportTransitGatewayAttachmentId;
213 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
214
215 bool m_staticRoutesOnly;
216 bool m_staticRoutesOnlyHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace EC2
221} // namespace Aws
VpnConnectionOptionsSpecification & AddTunnelOptions(const VpnTunnelOptionsSpecification &value)
VpnConnectionOptionsSpecification & WithTunnelOptions(const Aws::Vector< VpnTunnelOptionsSpecification > &value)
VpnConnectionOptionsSpecification & WithTransportTransitGatewayAttachmentId(const char *value)
VpnConnectionOptionsSpecification & WithRemoteIpv6NetworkCidr(Aws::String &&value)
VpnConnectionOptionsSpecification & WithOutsideIpAddressType(const Aws::String &value)
VpnConnectionOptionsSpecification & WithTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
VpnConnectionOptionsSpecification & WithLocalIpv4NetworkCidr(const char *value)
VpnConnectionOptionsSpecification & WithOutsideIpAddressType(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpnConnectionOptionsSpecification & WithRemoteIpv4NetworkCidr(const Aws::String &value)
VpnConnectionOptionsSpecification & WithOutsideIpAddressType(const char *value)
void SetTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
VpnConnectionOptionsSpecification & WithRemoteIpv4NetworkCidr(Aws::String &&value)
VpnConnectionOptionsSpecification & WithRemoteIpv6NetworkCidr(const Aws::String &value)
VpnConnectionOptionsSpecification & WithLocalIpv6NetworkCidr(Aws::String &&value)
AWS_EC2_API VpnConnectionOptionsSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VpnConnectionOptionsSpecification & WithStaticRoutesOnly(bool value)
VpnConnectionOptionsSpecification & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
VpnConnectionOptionsSpecification & WithEnableAcceleration(bool value)
VpnConnectionOptionsSpecification & WithLocalIpv6NetworkCidr(const Aws::String &value)
void SetTunnelOptions(Aws::Vector< VpnTunnelOptionsSpecification > &&value)
VpnConnectionOptionsSpecification & WithRemoteIpv4NetworkCidr(const char *value)
VpnConnectionOptionsSpecification & WithRemoteIpv6NetworkCidr(const char *value)
AWS_EC2_API VpnConnectionOptionsSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpnConnectionOptionsSpecification & AddTunnelOptions(VpnTunnelOptionsSpecification &&value)
VpnConnectionOptionsSpecification & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
VpnConnectionOptionsSpecification & WithLocalIpv6NetworkCidr(const char *value)
VpnConnectionOptionsSpecification & WithTunnelOptions(Aws::Vector< VpnTunnelOptionsSpecification > &&value)
VpnConnectionOptionsSpecification & WithLocalIpv4NetworkCidr(Aws::String &&value)
const Aws::Vector< VpnTunnelOptionsSpecification > & GetTunnelOptions() const
VpnConnectionOptionsSpecification & WithLocalIpv4NetworkCidr(const Aws::String &value)
void SetTunnelOptions(const Aws::Vector< VpnTunnelOptionsSpecification > &value)
VpnConnectionOptionsSpecification & WithTunnelInsideIpVersion(TunnelInsideIpVersion &&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