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/VpnTunnelLogOptions.h>
12#include <aws/ec2/model/Phase1EncryptionAlgorithmsListValue.h>
13#include <aws/ec2/model/Phase2EncryptionAlgorithmsListValue.h>
14#include <aws/ec2/model/Phase1IntegrityAlgorithmsListValue.h>
15#include <aws/ec2/model/Phase2IntegrityAlgorithmsListValue.h>
16#include <aws/ec2/model/Phase1DHGroupNumbersListValue.h>
17#include <aws/ec2/model/Phase2DHGroupNumbersListValue.h>
18#include <aws/ec2/model/IKEVersionsListValue.h>
59 inline void SetOutsideIpAddress(
const char* value) { m_outsideIpAddressHasBeenSet =
true; m_outsideIpAddress.assign(value); }
73 inline void SetTunnelInsideCidr(
const char* value) { m_tunnelInsideCidrHasBeenSet =
true; m_tunnelInsideCidr.assign(value); }
87 inline void SetTunnelInsideIpv6Cidr(
const char* value) { m_tunnelInsideIpv6CidrHasBeenSet =
true; m_tunnelInsideIpv6Cidr.assign(value); }
102 inline void SetPreSharedKey(
const char* value) { m_preSharedKeyHasBeenSet =
true; m_preSharedKey.assign(value); }
158 inline void SetReplayWindowSize(
int value) { m_replayWindowSizeHasBeenSet =
true; m_replayWindowSize = value; }
168 inline void SetDpdTimeoutSeconds(
int value) { m_dpdTimeoutSecondsHasBeenSet =
true; m_dpdTimeoutSeconds = value; }
180 inline void SetDpdTimeoutAction(
const char* value) { m_dpdTimeoutActionHasBeenSet =
true; m_dpdTimeoutAction.assign(value); }
299 inline void SetStartupAction(
const char* value) { m_startupActionHasBeenSet =
true; m_startupAction.assign(value); }
329 bool m_outsideIpAddressHasBeenSet =
false;
332 bool m_tunnelInsideCidrHasBeenSet =
false;
335 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
338 bool m_preSharedKeyHasBeenSet =
false;
340 int m_phase1LifetimeSeconds;
341 bool m_phase1LifetimeSecondsHasBeenSet =
false;
343 int m_phase2LifetimeSeconds;
344 bool m_phase2LifetimeSecondsHasBeenSet =
false;
346 int m_rekeyMarginTimeSeconds;
347 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
349 int m_rekeyFuzzPercentage;
350 bool m_rekeyFuzzPercentageHasBeenSet =
false;
352 int m_replayWindowSize;
353 bool m_replayWindowSizeHasBeenSet =
false;
355 int m_dpdTimeoutSeconds;
356 bool m_dpdTimeoutSecondsHasBeenSet =
false;
359 bool m_dpdTimeoutActionHasBeenSet =
false;
362 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
365 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
368 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
371 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
374 bool m_phase1DHGroupNumbersHasBeenSet =
false;
377 bool m_phase2DHGroupNumbersHasBeenSet =
false;
380 bool m_ikeVersionsHasBeenSet =
false;
383 bool m_startupActionHasBeenSet =
false;
386 bool m_logOptionsHasBeenSet =
false;
388 bool m_enableTunnelLifecycleControl;
389 bool m_enableTunnelLifecycleControlHasBeenSet =
false;
TunnelOption & WithPreSharedKey(const char *value)
bool LogOptionsHasBeenSet() const
bool ReplayWindowSizeHasBeenSet() const
void SetTunnelInsideIpv6Cidr(const char *value)
const Aws::String & GetTunnelInsideIpv6Cidr() const
void SetPreSharedKey(const char *value)
void SetDpdTimeoutAction(const char *value)
bool PreSharedKeyHasBeenSet() const
void SetPhase1EncryptionAlgorithms(Aws::Vector< Phase1EncryptionAlgorithmsListValue > &&value)
int GetPhase1LifetimeSeconds() const
void SetPhase1DHGroupNumbers(Aws::Vector< Phase1DHGroupNumbersListValue > &&value)
const Aws::String & GetOutsideIpAddress() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TunnelOption & WithTunnelInsideCidr(const Aws::String &value)
TunnelOption & WithDpdTimeoutSeconds(int value)
TunnelOption & AddPhase2IntegrityAlgorithms(const Phase2IntegrityAlgorithmsListValue &value)
TunnelOption & WithTunnelInsideIpv6Cidr(Aws::String &&value)
TunnelOption & AddPhase1EncryptionAlgorithms(const Phase1EncryptionAlgorithmsListValue &value)
const Aws::String & GetStartupAction() const
void SetDpdTimeoutSeconds(int value)
void SetTunnelInsideIpv6Cidr(const Aws::String &value)
void SetDpdTimeoutAction(Aws::String &&value)
TunnelOption & WithTunnelInsideIpv6Cidr(const Aws::String &value)
TunnelOption & WithPhase1IntegrityAlgorithms(Aws::Vector< Phase1IntegrityAlgorithmsListValue > &&value)
TunnelOption & AddPhase2DHGroupNumbers(const Phase2DHGroupNumbersListValue &value)
TunnelOption & WithDpdTimeoutAction(const Aws::String &value)
TunnelOption & WithOutsideIpAddress(Aws::String &&value)
void SetPhase2IntegrityAlgorithms(const Aws::Vector< Phase2IntegrityAlgorithmsListValue > &value)
void SetStartupAction(const Aws::String &value)
TunnelOption & AddPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsListValue &&value)
TunnelOption & WithDpdTimeoutAction(const char *value)
TunnelOption & WithDpdTimeoutAction(Aws::String &&value)
TunnelOption & WithPhase2DHGroupNumbers(const Aws::Vector< Phase2DHGroupNumbersListValue > &value)
TunnelOption & WithPreSharedKey(const Aws::String &value)
void SetPhase1EncryptionAlgorithms(const Aws::Vector< Phase1EncryptionAlgorithmsListValue > &value)
TunnelOption & WithPhase2IntegrityAlgorithms(const Aws::Vector< Phase2IntegrityAlgorithmsListValue > &value)
void SetTunnelInsideCidr(Aws::String &&value)
bool Phase1IntegrityAlgorithmsHasBeenSet() const
const Aws::String & GetTunnelInsideCidr() const
int GetReplayWindowSize() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool EnableTunnelLifecycleControlHasBeenSet() const
void SetDpdTimeoutAction(const Aws::String &value)
const Aws::Vector< Phase2DHGroupNumbersListValue > & GetPhase2DHGroupNumbers() const
TunnelOption & WithIkeVersions(Aws::Vector< IKEVersionsListValue > &&value)
void SetPhase1IntegrityAlgorithms(const Aws::Vector< Phase1IntegrityAlgorithmsListValue > &value)
bool RekeyFuzzPercentageHasBeenSet() const
TunnelOption & WithRekeyFuzzPercentage(int value)
void SetReplayWindowSize(int value)
bool OutsideIpAddressHasBeenSet() const
void SetPhase1LifetimeSeconds(int value)
const Aws::Vector< Phase2IntegrityAlgorithmsListValue > & GetPhase2IntegrityAlgorithms() const
bool DpdTimeoutActionHasBeenSet() const
bool GetEnableTunnelLifecycleControl() const
TunnelOption & AddPhase2EncryptionAlgorithms(const Phase2EncryptionAlgorithmsListValue &value)
TunnelOption & AddPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsListValue &&value)
TunnelOption & AddPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsListValue &&value)
const Aws::Vector< Phase1IntegrityAlgorithmsListValue > & GetPhase1IntegrityAlgorithms() const
TunnelOption & WithLogOptions(VpnTunnelLogOptions &&value)
AWS_EC2_API TunnelOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TunnelOption & AddPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsListValue &&value)
const Aws::Vector< IKEVersionsListValue > & GetIkeVersions() const
TunnelOption & AddPhase1DHGroupNumbers(Phase1DHGroupNumbersListValue &&value)
void SetPhase2IntegrityAlgorithms(Aws::Vector< Phase2IntegrityAlgorithmsListValue > &&value)
bool DpdTimeoutSecondsHasBeenSet() const
TunnelOption & WithPhase1DHGroupNumbers(Aws::Vector< Phase1DHGroupNumbersListValue > &&value)
void SetPreSharedKey(Aws::String &&value)
TunnelOption & WithPreSharedKey(Aws::String &&value)
TunnelOption & WithTunnelInsideCidr(const char *value)
TunnelOption & WithTunnelInsideIpv6Cidr(const char *value)
TunnelOption & WithIkeVersions(const Aws::Vector< IKEVersionsListValue > &value)
TunnelOption & WithPhase1EncryptionAlgorithms(Aws::Vector< Phase1EncryptionAlgorithmsListValue > &&value)
int GetPhase2LifetimeSeconds() const
TunnelOption & WithPhase1LifetimeSeconds(int value)
bool Phase2DHGroupNumbersHasBeenSet() const
TunnelOption & WithPhase1IntegrityAlgorithms(const Aws::Vector< Phase1IntegrityAlgorithmsListValue > &value)
TunnelOption & WithPhase2DHGroupNumbers(Aws::Vector< Phase2DHGroupNumbersListValue > &&value)
TunnelOption & WithLogOptions(const VpnTunnelLogOptions &value)
TunnelOption & WithOutsideIpAddress(const Aws::String &value)
TunnelOption & AddIkeVersions(IKEVersionsListValue &&value)
TunnelOption & WithPhase1DHGroupNumbers(const Aws::Vector< Phase1DHGroupNumbersListValue > &value)
bool Phase2LifetimeSecondsHasBeenSet() const
int GetDpdTimeoutSeconds() const
void SetPhase2DHGroupNumbers(const Aws::Vector< Phase2DHGroupNumbersListValue > &value)
TunnelOption & WithEnableTunnelLifecycleControl(bool value)
void SetLogOptions(VpnTunnelLogOptions &&value)
void SetLogOptions(const VpnTunnelLogOptions &value)
void SetTunnelInsideCidr(const char *value)
const Aws::String & GetPreSharedKey() const
const VpnTunnelLogOptions & GetLogOptions() const
bool IkeVersionsHasBeenSet() const
void SetOutsideIpAddress(const Aws::String &value)
TunnelOption & WithPhase2IntegrityAlgorithms(Aws::Vector< Phase2IntegrityAlgorithmsListValue > &&value)
TunnelOption & WithPhase1EncryptionAlgorithms(const Aws::Vector< Phase1EncryptionAlgorithmsListValue > &value)
TunnelOption & AddIkeVersions(const IKEVersionsListValue &value)
void SetStartupAction(const char *value)
void SetRekeyMarginTimeSeconds(int value)
void SetTunnelInsideCidr(const Aws::String &value)
TunnelOption & WithOutsideIpAddress(const char *value)
void SetTunnelInsideIpv6Cidr(Aws::String &&value)
void SetPhase1IntegrityAlgorithms(Aws::Vector< Phase1IntegrityAlgorithmsListValue > &&value)
bool RekeyMarginTimeSecondsHasBeenSet() const
bool Phase2EncryptionAlgorithmsHasBeenSet() const
bool TunnelInsideCidrHasBeenSet() const
AWS_EC2_API TunnelOption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIkeVersions(const Aws::Vector< IKEVersionsListValue > &value)
void SetOutsideIpAddress(const char *value)
TunnelOption & WithPhase2EncryptionAlgorithms(const Aws::Vector< Phase2EncryptionAlgorithmsListValue > &value)
bool StartupActionHasBeenSet() const
TunnelOption & AddPhase2DHGroupNumbers(Phase2DHGroupNumbersListValue &&value)
const Aws::String & GetDpdTimeoutAction() const
bool Phase1LifetimeSecondsHasBeenSet() const
TunnelOption & AddPhase1DHGroupNumbers(const Phase1DHGroupNumbersListValue &value)
AWS_EC2_API TunnelOption()
TunnelOption & WithPhase2EncryptionAlgorithms(Aws::Vector< Phase2EncryptionAlgorithmsListValue > &&value)
TunnelOption & WithTunnelInsideCidr(Aws::String &&value)
void SetPhase2EncryptionAlgorithms(const Aws::Vector< Phase2EncryptionAlgorithmsListValue > &value)
void SetPhase2LifetimeSeconds(int value)
TunnelOption & WithStartupAction(const Aws::String &value)
bool Phase1DHGroupNumbersHasBeenSet() const
TunnelOption & AddPhase1IntegrityAlgorithms(const Phase1IntegrityAlgorithmsListValue &value)
const Aws::Vector< Phase1DHGroupNumbersListValue > & GetPhase1DHGroupNumbers() const
void SetPreSharedKey(const Aws::String &value)
TunnelOption & WithRekeyMarginTimeSeconds(int value)
void SetOutsideIpAddress(Aws::String &&value)
TunnelOption & WithPhase2LifetimeSeconds(int value)
void SetEnableTunnelLifecycleControl(bool value)
int GetRekeyFuzzPercentage() const
const Aws::Vector< Phase2EncryptionAlgorithmsListValue > & GetPhase2EncryptionAlgorithms() const
TunnelOption & WithReplayWindowSize(int value)
bool TunnelInsideIpv6CidrHasBeenSet() const
bool Phase2IntegrityAlgorithmsHasBeenSet() const
void SetPhase2EncryptionAlgorithms(Aws::Vector< Phase2EncryptionAlgorithmsListValue > &&value)
int GetRekeyMarginTimeSeconds() const
TunnelOption & WithStartupAction(Aws::String &&value)
void SetRekeyFuzzPercentage(int value)
void SetStartupAction(Aws::String &&value)
TunnelOption & WithStartupAction(const char *value)
void SetPhase1DHGroupNumbers(const Aws::Vector< Phase1DHGroupNumbersListValue > &value)
bool Phase1EncryptionAlgorithmsHasBeenSet() const
void SetIkeVersions(Aws::Vector< IKEVersionsListValue > &&value)
void SetPhase2DHGroupNumbers(Aws::Vector< Phase2DHGroupNumbersListValue > &&value)
const Aws::Vector< Phase1EncryptionAlgorithmsListValue > & GetPhase1EncryptionAlgorithms() const
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