AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpnConnectionOptions.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/ec2/model/TunnelInsideIpVersion.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TunnelOption.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:
37 AWS_EC2_API VpnConnectionOptions();
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
49 inline bool GetEnableAcceleration() const{ return m_enableAcceleration; }
50 inline bool EnableAccelerationHasBeenSet() const { return m_enableAccelerationHasBeenSet; }
51 inline void SetEnableAcceleration(bool value) { m_enableAccelerationHasBeenSet = true; m_enableAcceleration = value; }
52 inline VpnConnectionOptions& WithEnableAcceleration(bool value) { SetEnableAcceleration(value); return *this;}
54
56
60 inline bool GetStaticRoutesOnly() const{ return m_staticRoutesOnly; }
61 inline bool StaticRoutesOnlyHasBeenSet() const { return m_staticRoutesOnlyHasBeenSet; }
62 inline void SetStaticRoutesOnly(bool value) { m_staticRoutesOnlyHasBeenSet = true; m_staticRoutesOnly = value; }
63 inline VpnConnectionOptions& WithStaticRoutesOnly(bool value) { SetStaticRoutesOnly(value); return *this;}
65
67
71 inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; }
72 inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; }
73 inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; }
74 inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); }
75 inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); }
77 inline VpnConnectionOptions& WithLocalIpv4NetworkCidr(Aws::String&& value) { SetLocalIpv4NetworkCidr(std::move(value)); return *this;}
78 inline VpnConnectionOptions& WithLocalIpv4NetworkCidr(const char* value) { SetLocalIpv4NetworkCidr(value); return *this;}
80
82
85 inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; }
86 inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; }
87 inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; }
88 inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); }
89 inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); }
91 inline VpnConnectionOptions& WithRemoteIpv4NetworkCidr(Aws::String&& value) { SetRemoteIpv4NetworkCidr(std::move(value)); return *this;}
92 inline VpnConnectionOptions& WithRemoteIpv4NetworkCidr(const char* value) { SetRemoteIpv4NetworkCidr(value); return *this;}
94
96
100 inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; }
101 inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; }
102 inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; }
103 inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); }
104 inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); }
106 inline VpnConnectionOptions& WithLocalIpv6NetworkCidr(Aws::String&& value) { SetLocalIpv6NetworkCidr(std::move(value)); return *this;}
107 inline VpnConnectionOptions& WithLocalIpv6NetworkCidr(const char* value) { SetLocalIpv6NetworkCidr(value); return *this;}
109
111
114 inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; }
115 inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; }
116 inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; }
117 inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); }
118 inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); }
120 inline VpnConnectionOptions& WithRemoteIpv6NetworkCidr(Aws::String&& value) { SetRemoteIpv6NetworkCidr(std::move(value)); return *this;}
121 inline VpnConnectionOptions& WithRemoteIpv6NetworkCidr(const char* value) { SetRemoteIpv6NetworkCidr(value); return *this;}
123
125
130 inline const Aws::String& GetOutsideIpAddressType() const{ return m_outsideIpAddressType; }
131 inline bool OutsideIpAddressTypeHasBeenSet() const { return m_outsideIpAddressTypeHasBeenSet; }
132 inline void SetOutsideIpAddressType(const Aws::String& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = value; }
133 inline void SetOutsideIpAddressType(Aws::String&& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = std::move(value); }
134 inline void SetOutsideIpAddressType(const char* value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType.assign(value); }
136 inline VpnConnectionOptions& WithOutsideIpAddressType(Aws::String&& value) { SetOutsideIpAddressType(std::move(value)); return *this;}
137 inline VpnConnectionOptions& WithOutsideIpAddressType(const char* value) { SetOutsideIpAddressType(value); return *this;}
139
141
144 inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
145 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
146 inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
147 inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
148 inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
153
155
158 inline const TunnelInsideIpVersion& GetTunnelInsideIpVersion() const{ return m_tunnelInsideIpVersion; }
159 inline bool TunnelInsideIpVersionHasBeenSet() const { return m_tunnelInsideIpVersionHasBeenSet; }
160 inline void SetTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = value; }
161 inline void SetTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = std::move(value); }
165
167
170 inline const Aws::Vector<TunnelOption>& GetTunnelOptions() const{ return m_tunnelOptions; }
171 inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
172 inline void SetTunnelOptions(const Aws::Vector<TunnelOption>& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = value; }
173 inline void SetTunnelOptions(Aws::Vector<TunnelOption>&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::move(value); }
175 inline VpnConnectionOptions& WithTunnelOptions(Aws::Vector<TunnelOption>&& value) { SetTunnelOptions(std::move(value)); return *this;}
176 inline VpnConnectionOptions& AddTunnelOptions(const TunnelOption& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(value); return *this; }
177 inline VpnConnectionOptions& AddTunnelOptions(TunnelOption&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(std::move(value)); return *this; }
179 private:
180
181 bool m_enableAcceleration;
182 bool m_enableAccelerationHasBeenSet = false;
183
184 bool m_staticRoutesOnly;
185 bool m_staticRoutesOnlyHasBeenSet = false;
186
187 Aws::String m_localIpv4NetworkCidr;
188 bool m_localIpv4NetworkCidrHasBeenSet = false;
189
190 Aws::String m_remoteIpv4NetworkCidr;
191 bool m_remoteIpv4NetworkCidrHasBeenSet = false;
192
193 Aws::String m_localIpv6NetworkCidr;
194 bool m_localIpv6NetworkCidrHasBeenSet = false;
195
196 Aws::String m_remoteIpv6NetworkCidr;
197 bool m_remoteIpv6NetworkCidrHasBeenSet = false;
198
199 Aws::String m_outsideIpAddressType;
200 bool m_outsideIpAddressTypeHasBeenSet = false;
201
202 Aws::String m_transportTransitGatewayAttachmentId;
203 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
204
205 TunnelInsideIpVersion m_tunnelInsideIpVersion;
206 bool m_tunnelInsideIpVersionHasBeenSet = false;
207
208 Aws::Vector<TunnelOption> m_tunnelOptions;
209 bool m_tunnelOptionsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
VpnConnectionOptions & WithLocalIpv6NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithOutsideIpAddressType(const char *value)
VpnConnectionOptions & WithLocalIpv4NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
VpnConnectionOptions & WithTransportTransitGatewayAttachmentId(const char *value)
void SetTransportTransitGatewayAttachmentId(Aws::String &&value)
void SetTunnelOptions(Aws::Vector< TunnelOption > &&value)
void SetLocalIpv4NetworkCidr(Aws::String &&value)
const Aws::String & GetLocalIpv4NetworkCidr() const
void SetLocalIpv4NetworkCidr(const char *value)
void SetRemoteIpv4NetworkCidr(const char *value)
void SetOutsideIpAddressType(const Aws::String &value)
void SetLocalIpv6NetworkCidr(const Aws::String &value)
const Aws::String & GetRemoteIpv6NetworkCidr() const
const Aws::String & GetOutsideIpAddressType() const
void SetTunnelInsideIpVersion(TunnelInsideIpVersion &&value)
void SetOutsideIpAddressType(Aws::String &&value)
VpnConnectionOptions & AddTunnelOptions(const TunnelOption &value)
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(const char *value)
VpnConnectionOptions & AddTunnelOptions(TunnelOption &&value)
VpnConnectionOptions & WithOutsideIpAddressType(const Aws::String &value)
AWS_EC2_API VpnConnectionOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(Aws::String &&value)
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(const char *value)
VpnConnectionOptions & WithTunnelInsideIpVersion(TunnelInsideIpVersion &&value)
VpnConnectionOptions & WithLocalIpv6NetworkCidr(Aws::String &&value)
const Aws::String & GetRemoteIpv4NetworkCidr() const
void SetLocalIpv4NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithTunnelOptions(const Aws::Vector< TunnelOption > &value)
VpnConnectionOptions & WithLocalIpv4NetworkCidr(Aws::String &&value)
const Aws::Vector< TunnelOption > & GetTunnelOptions() const
VpnConnectionOptions & WithLocalIpv6NetworkCidr(const char *value)
AWS_EC2_API VpnConnectionOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(Aws::String &&value)
void SetRemoteIpv6NetworkCidr(Aws::String &&value)
void SetRemoteIpv6NetworkCidr(const Aws::String &value)
void SetTransportTransitGatewayAttachmentId(const char *value)
VpnConnectionOptions & WithLocalIpv4NetworkCidr(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransportTransitGatewayAttachmentId(const Aws::String &value)
VpnConnectionOptions & WithTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
VpnConnectionOptions & WithEnableAcceleration(bool value)
const TunnelInsideIpVersion & GetTunnelInsideIpVersion() const
VpnConnectionOptions & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
VpnConnectionOptions & WithStaticRoutesOnly(bool value)
void SetRemoteIpv4NetworkCidr(Aws::String &&value)
void SetTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
void SetRemoteIpv4NetworkCidr(const Aws::String &value)
VpnConnectionOptions & WithTunnelOptions(Aws::Vector< TunnelOption > &&value)
void SetLocalIpv6NetworkCidr(Aws::String &&value)
const Aws::String & GetLocalIpv6NetworkCidr() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTunnelOptions(const Aws::Vector< TunnelOption > &value)
const Aws::String & GetTransportTransitGatewayAttachmentId() const
VpnConnectionOptions & WithOutsideIpAddressType(Aws::String &&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