AWS SDK for C++  1.9.106
AWS SDK for C++
VpnConnectionOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline bool GetEnableAcceleration() const{ return m_enableAcceleration; }
49 
53  inline bool EnableAccelerationHasBeenSet() const { return m_enableAccelerationHasBeenSet; }
54 
58  inline void SetEnableAcceleration(bool value) { m_enableAccelerationHasBeenSet = true; m_enableAcceleration = value; }
59 
63  inline VpnConnectionOptions& WithEnableAcceleration(bool value) { SetEnableAcceleration(value); return *this;}
64 
65 
70  inline bool GetStaticRoutesOnly() const{ return m_staticRoutesOnly; }
71 
76  inline bool StaticRoutesOnlyHasBeenSet() const { return m_staticRoutesOnlyHasBeenSet; }
77 
82  inline void SetStaticRoutesOnly(bool value) { m_staticRoutesOnlyHasBeenSet = true; m_staticRoutesOnly = value; }
83 
88  inline VpnConnectionOptions& WithStaticRoutesOnly(bool value) { SetStaticRoutesOnly(value); return *this;}
89 
90 
95  inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; }
96 
101  inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; }
102 
107  inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; }
108 
113  inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); }
114 
119  inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); }
120 
125  inline VpnConnectionOptions& WithLocalIpv4NetworkCidr(const Aws::String& value) { SetLocalIpv4NetworkCidr(value); return *this;}
126 
131  inline VpnConnectionOptions& WithLocalIpv4NetworkCidr(Aws::String&& value) { SetLocalIpv4NetworkCidr(std::move(value)); return *this;}
132 
137  inline VpnConnectionOptions& WithLocalIpv4NetworkCidr(const char* value) { SetLocalIpv4NetworkCidr(value); return *this;}
138 
139 
143  inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; }
144 
148  inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; }
149 
153  inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; }
154 
158  inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); }
159 
163  inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); }
164 
168  inline VpnConnectionOptions& WithRemoteIpv4NetworkCidr(const Aws::String& value) { SetRemoteIpv4NetworkCidr(value); return *this;}
169 
173  inline VpnConnectionOptions& WithRemoteIpv4NetworkCidr(Aws::String&& value) { SetRemoteIpv4NetworkCidr(std::move(value)); return *this;}
174 
178  inline VpnConnectionOptions& WithRemoteIpv4NetworkCidr(const char* value) { SetRemoteIpv4NetworkCidr(value); return *this;}
179 
180 
185  inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; }
186 
191  inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; }
192 
197  inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; }
198 
203  inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); }
204 
209  inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); }
210 
215  inline VpnConnectionOptions& WithLocalIpv6NetworkCidr(const Aws::String& value) { SetLocalIpv6NetworkCidr(value); return *this;}
216 
221  inline VpnConnectionOptions& WithLocalIpv6NetworkCidr(Aws::String&& value) { SetLocalIpv6NetworkCidr(std::move(value)); return *this;}
222 
227  inline VpnConnectionOptions& WithLocalIpv6NetworkCidr(const char* value) { SetLocalIpv6NetworkCidr(value); return *this;}
228 
229 
233  inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; }
234 
238  inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; }
239 
243  inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; }
244 
248  inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); }
249 
253  inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); }
254 
258  inline VpnConnectionOptions& WithRemoteIpv6NetworkCidr(const Aws::String& value) { SetRemoteIpv6NetworkCidr(value); return *this;}
259 
263  inline VpnConnectionOptions& WithRemoteIpv6NetworkCidr(Aws::String&& value) { SetRemoteIpv6NetworkCidr(std::move(value)); return *this;}
264 
268  inline VpnConnectionOptions& WithRemoteIpv6NetworkCidr(const char* value) { SetRemoteIpv6NetworkCidr(value); return *this;}
269 
270 
274  inline const TunnelInsideIpVersion& GetTunnelInsideIpVersion() const{ return m_tunnelInsideIpVersion; }
275 
279  inline bool TunnelInsideIpVersionHasBeenSet() const { return m_tunnelInsideIpVersionHasBeenSet; }
280 
284  inline void SetTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = value; }
285 
289  inline void SetTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = std::move(value); }
290 
294  inline VpnConnectionOptions& WithTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { SetTunnelInsideIpVersion(value); return *this;}
295 
299  inline VpnConnectionOptions& WithTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { SetTunnelInsideIpVersion(std::move(value)); return *this;}
300 
301 
305  inline const Aws::Vector<TunnelOption>& GetTunnelOptions() const{ return m_tunnelOptions; }
306 
310  inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
311 
315  inline void SetTunnelOptions(const Aws::Vector<TunnelOption>& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = value; }
316 
320  inline void SetTunnelOptions(Aws::Vector<TunnelOption>&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::move(value); }
321 
325  inline VpnConnectionOptions& WithTunnelOptions(const Aws::Vector<TunnelOption>& value) { SetTunnelOptions(value); return *this;}
326 
330  inline VpnConnectionOptions& WithTunnelOptions(Aws::Vector<TunnelOption>&& value) { SetTunnelOptions(std::move(value)); return *this;}
331 
335  inline VpnConnectionOptions& AddTunnelOptions(const TunnelOption& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(value); return *this; }
336 
340  inline VpnConnectionOptions& AddTunnelOptions(TunnelOption&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(std::move(value)); return *this; }
341 
342  private:
343 
344  bool m_enableAcceleration;
345  bool m_enableAccelerationHasBeenSet;
346 
347  bool m_staticRoutesOnly;
348  bool m_staticRoutesOnlyHasBeenSet;
349 
350  Aws::String m_localIpv4NetworkCidr;
351  bool m_localIpv4NetworkCidrHasBeenSet;
352 
353  Aws::String m_remoteIpv4NetworkCidr;
354  bool m_remoteIpv4NetworkCidrHasBeenSet;
355 
356  Aws::String m_localIpv6NetworkCidr;
357  bool m_localIpv6NetworkCidrHasBeenSet;
358 
359  Aws::String m_remoteIpv6NetworkCidr;
360  bool m_remoteIpv6NetworkCidrHasBeenSet;
361 
362  TunnelInsideIpVersion m_tunnelInsideIpVersion;
363  bool m_tunnelInsideIpVersionHasBeenSet;
364 
365  Aws::Vector<TunnelOption> m_tunnelOptions;
366  bool m_tunnelOptionsHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace EC2
371 } // namespace Aws
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv6NetworkCidr
VpnConnectionOptions & WithLocalIpv6NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:227
Aws::EC2::Model::VpnConnectionOptions::GetTunnelInsideIpVersion
const TunnelInsideIpVersion & GetTunnelInsideIpVersion() const
Definition: VpnConnectionOptions.h:274
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:113
Aws::EC2::Model::TunnelInsideIpVersion
TunnelInsideIpVersion
Definition: TunnelInsideIpVersion.h:17
Aws::EC2::Model::VpnConnectionOptions::GetTunnelOptions
const Aws::Vector< TunnelOption > & GetTunnelOptions() const
Definition: VpnConnectionOptions.h:305
Aws::EC2::Model::VpnConnectionOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::VpnConnectionOptions::GetRemoteIpv6NetworkCidr
const Aws::String & GetRemoteIpv6NetworkCidr() const
Definition: VpnConnectionOptions.h:233
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv4NetworkCidr
VpnConnectionOptions & WithLocalIpv4NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:137
TunnelOption.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VpnConnectionOptions::WithStaticRoutesOnly
VpnConnectionOptions & WithStaticRoutesOnly(bool value)
Definition: VpnConnectionOptions.h:88
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:163
Aws::EC2::Model::VpnConnectionOptions::WithTunnelOptions
VpnConnectionOptions & WithTunnelOptions(const Aws::Vector< TunnelOption > &value)
Definition: VpnConnectionOptions.h:325
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::VpnConnectionOptions::TunnelOptionsHasBeenSet
bool TunnelOptionsHasBeenSet() const
Definition: VpnConnectionOptions.h:310
AWSStreamFwd.h
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv4NetworkCidr
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:168
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:243
Aws::EC2::Model::VpnConnectionOptions::EnableAccelerationHasBeenSet
bool EnableAccelerationHasBeenSet() const
Definition: VpnConnectionOptions.h:53
TunnelInsideIpVersion.h
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv4NetworkCidr
VpnConnectionOptions & WithLocalIpv4NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:131
AWSVector.h
Aws::EC2::Model::VpnConnectionOptions::GetEnableAcceleration
bool GetEnableAcceleration() const
Definition: VpnConnectionOptions.h:48
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VpnConnectionOptions::GetStaticRoutesOnly
bool GetStaticRoutesOnly() const
Definition: VpnConnectionOptions.h:70
Aws::EC2::Model::VpnConnectionOptions::AddTunnelOptions
VpnConnectionOptions & AddTunnelOptions(const TunnelOption &value)
Definition: VpnConnectionOptions.h:335
Aws::EC2::Model::VpnConnectionOptions
Definition: VpnConnectionOptions.h:35
Aws::EC2::Model::VpnConnectionOptions::TunnelInsideIpVersionHasBeenSet
bool TunnelInsideIpVersionHasBeenSet() const
Definition: VpnConnectionOptions.h:279
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:153
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:107
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:203
Aws::EC2::Model::VpnConnectionOptions::RemoteIpv4NetworkCidrHasBeenSet
bool RemoteIpv4NetworkCidrHasBeenSet() const
Definition: VpnConnectionOptions.h:148
Aws::EC2::Model::VpnConnectionOptions::SetTunnelInsideIpVersion
void SetTunnelInsideIpVersion(TunnelInsideIpVersion &&value)
Definition: VpnConnectionOptions.h:289
Aws::EC2::Model::VpnConnectionOptions::WithEnableAcceleration
VpnConnectionOptions & WithEnableAcceleration(bool value)
Definition: VpnConnectionOptions.h:63
Aws::EC2::Model::VpnConnectionOptions::SetEnableAcceleration
void SetEnableAcceleration(bool value)
Definition: VpnConnectionOptions.h:58
Aws::EC2::Model::VpnConnectionOptions::LocalIpv4NetworkCidrHasBeenSet
bool LocalIpv4NetworkCidrHasBeenSet() const
Definition: VpnConnectionOptions.h:101
Aws::EC2::Model::VpnConnectionOptions::RemoteIpv6NetworkCidrHasBeenSet
bool RemoteIpv6NetworkCidrHasBeenSet() const
Definition: VpnConnectionOptions.h:238
Aws::EC2::Model::VpnConnectionOptions::GetLocalIpv6NetworkCidr
const Aws::String & GetLocalIpv6NetworkCidr() const
Definition: VpnConnectionOptions.h:185
Aws::EC2::Model::VpnConnectionOptions::VpnConnectionOptions
VpnConnectionOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:248
AWSString.h
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv4NetworkCidr
VpnConnectionOptions & WithLocalIpv4NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:125
Aws::EC2::Model::VpnConnectionOptions::WithTunnelOptions
VpnConnectionOptions & WithTunnelOptions(Aws::Vector< TunnelOption > &&value)
Definition: VpnConnectionOptions.h:330
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv6NetworkCidr
VpnConnectionOptions & WithLocalIpv6NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:215
Aws::EC2::Model::TunnelOption
Definition: TunnelOption.h:40
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:119
Aws::EC2::Model::VpnConnectionOptions::SetTunnelInsideIpVersion
void SetTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
Definition: VpnConnectionOptions.h:284
Aws::EC2::Model::VpnConnectionOptions::SetStaticRoutesOnly
void SetStaticRoutesOnly(bool value)
Definition: VpnConnectionOptions.h:82
Aws::EC2::Model::VpnConnectionOptions::AddTunnelOptions
VpnConnectionOptions & AddTunnelOptions(TunnelOption &&value)
Definition: VpnConnectionOptions.h:340
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:197
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv6NetworkCidr
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:268
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VpnConnectionOptions::SetTunnelOptions
void SetTunnelOptions(Aws::Vector< TunnelOption > &&value)
Definition: VpnConnectionOptions.h:320
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv6NetworkCidr
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(const Aws::String &value)
Definition: VpnConnectionOptions.h:258
Aws::EC2::Model::VpnConnectionOptions::StaticRoutesOnlyHasBeenSet
bool StaticRoutesOnlyHasBeenSet() const
Definition: VpnConnectionOptions.h:76
Aws::EC2::Model::VpnConnectionOptions::SetTunnelOptions
void SetTunnelOptions(const Aws::Vector< TunnelOption > &value)
Definition: VpnConnectionOptions.h:315
Aws::EC2::Model::VpnConnectionOptions::LocalIpv6NetworkCidrHasBeenSet
bool LocalIpv6NetworkCidrHasBeenSet() const
Definition: VpnConnectionOptions.h:191
Aws::EC2::Model::VpnConnectionOptions::GetRemoteIpv4NetworkCidr
const Aws::String & GetRemoteIpv4NetworkCidr() const
Definition: VpnConnectionOptions.h:143
Aws::EC2::Model::VpnConnectionOptions::WithTunnelInsideIpVersion
VpnConnectionOptions & WithTunnelInsideIpVersion(const TunnelInsideIpVersion &value)
Definition: VpnConnectionOptions.h:294
Aws::EC2::Model::VpnConnectionOptions::VpnConnectionOptions
VpnConnectionOptions()
Aws::EC2::Model::VpnConnectionOptions::WithTunnelInsideIpVersion
VpnConnectionOptions & WithTunnelInsideIpVersion(TunnelInsideIpVersion &&value)
Definition: VpnConnectionOptions.h:299
Aws::EC2::Model::VpnConnectionOptions::WithLocalIpv6NetworkCidr
VpnConnectionOptions & WithLocalIpv6NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:221
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv4NetworkCidr
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:178
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VpnConnectionOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv4NetworkCidr
VpnConnectionOptions & WithRemoteIpv4NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:173
Aws::EC2::Model::VpnConnectionOptions::GetLocalIpv4NetworkCidr
const Aws::String & GetLocalIpv4NetworkCidr() const
Definition: VpnConnectionOptions.h:95
Aws::EC2::Model::VpnConnectionOptions::WithRemoteIpv6NetworkCidr
VpnConnectionOptions & WithRemoteIpv6NetworkCidr(Aws::String &&value)
Definition: VpnConnectionOptions.h:263
Aws::EC2::Model::VpnConnectionOptions::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:209
EC2_EXPORTS.h
Aws::EC2::Model::VpnConnectionOptions::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(const char *value)
Definition: VpnConnectionOptions.h:253
Aws::EC2::Model::VpnConnectionOptions::operator=
VpnConnectionOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)