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/VpnTunnelLogOptionsSpecification.h>
12#include <aws/ec2/model/Phase1EncryptionAlgorithmsRequestListValue.h>
13#include <aws/ec2/model/Phase2EncryptionAlgorithmsRequestListValue.h>
14#include <aws/ec2/model/Phase1IntegrityAlgorithmsRequestListValue.h>
15#include <aws/ec2/model/Phase2IntegrityAlgorithmsRequestListValue.h>
16#include <aws/ec2/model/Phase1DHGroupNumbersRequestListValue.h>
17#include <aws/ec2/model/Phase2DHGroupNumbersRequestListValue.h>
18#include <aws/ec2/model/IKEVersionsRequestListValue.h>
65 template<
typename TunnelIns
ideC
idrT = Aws::String>
66 void SetTunnelInsideCidr(TunnelInsideCidrT&& value) { m_tunnelInsideCidrHasBeenSet =
true; m_tunnelInsideCidr = std::forward<TunnelInsideCidrT>(value); }
67 template<
typename TunnelIns
ideC
idrT = Aws::String>
80 template<
typename TunnelIns
ideIpv6C
idrT = Aws::String>
81 void SetTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT&& value) { m_tunnelInsideIpv6CidrHasBeenSet =
true; m_tunnelInsideIpv6Cidr = std::forward<TunnelInsideIpv6CidrT>(value); }
82 template<
typename TunnelIns
ideIpv6C
idrT = Aws::String>
95 template<
typename PreSharedKeyT = Aws::String>
96 void SetPreSharedKey(PreSharedKeyT&& value) { m_preSharedKeyHasBeenSet =
true; m_preSharedKey = std::forward<PreSharedKeyT>(value); }
97 template<
typename PreSharedKeyT = Aws::String>
161 inline void SetReplayWindowSize(
int value) { m_replayWindowSizeHasBeenSet =
true; m_replayWindowSize = value; }
172 inline void SetDPDTimeoutSeconds(
int value) { m_dPDTimeoutSecondsHasBeenSet =
true; m_dPDTimeoutSeconds = value; }
185 template<
typename DPDTimeoutActionT = Aws::String>
186 void SetDPDTimeoutAction(DPDTimeoutActionT&& value) { m_dPDTimeoutActionHasBeenSet =
true; m_dPDTimeoutAction = std::forward<DPDTimeoutActionT>(value); }
187 template<
typename DPDTimeoutActionT = Aws::String>
200 template<
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
201 void SetPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT&& value) { m_phase1EncryptionAlgorithmsHasBeenSet =
true; m_phase1EncryptionAlgorithms = std::forward<Phase1EncryptionAlgorithmsT>(value); }
202 template<
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
204 template<
typename Phase1EncryptionAlgorithmsT = Phase1EncryptionAlgorithmsRequestListValue>
217 template<
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
218 void SetPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT&& value) { m_phase2EncryptionAlgorithmsHasBeenSet =
true; m_phase2EncryptionAlgorithms = std::forward<Phase2EncryptionAlgorithmsT>(value); }
219 template<
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
221 template<
typename Phase2EncryptionAlgorithmsT = Phase2EncryptionAlgorithmsRequestListValue>
233 template<
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
234 void SetPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT&& value) { m_phase1IntegrityAlgorithmsHasBeenSet =
true; m_phase1IntegrityAlgorithms = std::forward<Phase1IntegrityAlgorithmsT>(value); }
235 template<
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
237 template<
typename Phase1IntegrityAlgorithmsT = Phase1IntegrityAlgorithmsRequestListValue>
249 template<
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
250 void SetPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT&& value) { m_phase2IntegrityAlgorithmsHasBeenSet =
true; m_phase2IntegrityAlgorithms = std::forward<Phase2IntegrityAlgorithmsT>(value); }
251 template<
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
253 template<
typename Phase2IntegrityAlgorithmsT = Phase2IntegrityAlgorithmsRequestListValue>
267 template<
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
268 void SetPhase1DHGroupNumbers(Phase1DHGroupNumbersT&& value) { m_phase1DHGroupNumbersHasBeenSet =
true; m_phase1DHGroupNumbers = std::forward<Phase1DHGroupNumbersT>(value); }
269 template<
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
271 template<
typename Phase1DHGroupNumbersT = Phase1DHGroupNumbersRequestListValue>
285 template<
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
286 void SetPhase2DHGroupNumbers(Phase2DHGroupNumbersT&& value) { m_phase2DHGroupNumbersHasBeenSet =
true; m_phase2DHGroupNumbers = std::forward<Phase2DHGroupNumbersT>(value); }
287 template<
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
289 template<
typename Phase2DHGroupNumbersT = Phase2DHGroupNumbersRequestListValue>
300 template<
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
301 void SetIKEVersions(IKEVersionsT&& value) { m_iKEVersionsHasBeenSet =
true; m_iKEVersions = std::forward<IKEVersionsT>(value); }
302 template<
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
304 template<
typename IKEVersionsT = IKEVersionsRequestListValue>
318 template<
typename StartupActionT = Aws::String>
319 void SetStartupAction(StartupActionT&& value) { m_startupActionHasBeenSet =
true; m_startupAction = std::forward<StartupActionT>(value); }
320 template<
typename StartupActionT = Aws::String>
330 template<
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
331 void SetLogOptions(LogOptionsT&& value) { m_logOptionsHasBeenSet =
true; m_logOptions = std::forward<LogOptionsT>(value); }
332 template<
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
348 bool m_tunnelInsideCidrHasBeenSet =
false;
351 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
354 bool m_preSharedKeyHasBeenSet =
false;
356 int m_phase1LifetimeSeconds{0};
357 bool m_phase1LifetimeSecondsHasBeenSet =
false;
359 int m_phase2LifetimeSeconds{0};
360 bool m_phase2LifetimeSecondsHasBeenSet =
false;
362 int m_rekeyMarginTimeSeconds{0};
363 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
365 int m_rekeyFuzzPercentage{0};
366 bool m_rekeyFuzzPercentageHasBeenSet =
false;
368 int m_replayWindowSize{0};
369 bool m_replayWindowSizeHasBeenSet =
false;
371 int m_dPDTimeoutSeconds{0};
372 bool m_dPDTimeoutSecondsHasBeenSet =
false;
375 bool m_dPDTimeoutActionHasBeenSet =
false;
378 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
381 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
384 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
387 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
390 bool m_phase1DHGroupNumbersHasBeenSet =
false;
393 bool m_phase2DHGroupNumbersHasBeenSet =
false;
396 bool m_iKEVersionsHasBeenSet =
false;
399 bool m_startupActionHasBeenSet =
false;
401 VpnTunnelLogOptionsSpecification m_logOptions;
402 bool m_logOptionsHasBeenSet =
false;
404 bool m_enableTunnelLifecycleControl{
false};
405 bool m_enableTunnelLifecycleControlHasBeenSet =
false;
bool IKEVersionsHasBeenSet() const
const Aws::String & GetTunnelInsideIpv6Cidr() const
int GetReplayWindowSize() const
VpnTunnelOptionsSpecification & AddPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
void SetPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
bool Phase1EncryptionAlgorithmsHasBeenSet() const
void SetEnableTunnelLifecycleControl(bool value)
bool LogOptionsHasBeenSet() const
bool Phase2DHGroupNumbersHasBeenSet() const
void SetPhase2LifetimeSeconds(int value)
bool DPDTimeoutActionHasBeenSet() const
VpnTunnelOptionsSpecification & WithPreSharedKey(PreSharedKeyT &&value)
VpnTunnelOptionsSpecification & AddIKEVersions(IKEVersionsT &&value)
VpnTunnelOptionsSpecification & WithLogOptions(LogOptionsT &&value)
bool StartupActionHasBeenSet() const
const VpnTunnelLogOptionsSpecification & GetLogOptions() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpnTunnelOptionsSpecification & WithIKEVersions(IKEVersionsT &&value)
VpnTunnelOptionsSpecification & WithPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
void SetReplayWindowSize(int value)
const Aws::Vector< Phase2DHGroupNumbersRequestListValue > & GetPhase2DHGroupNumbers() const
void SetIKEVersions(IKEVersionsT &&value)
bool ReplayWindowSizeHasBeenSet() const
int GetRekeyMarginTimeSeconds() const
VpnTunnelOptionsSpecification & WithPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
bool Phase2IntegrityAlgorithmsHasBeenSet() const
VpnTunnelOptionsSpecification & WithRekeyFuzzPercentage(int value)
void SetLogOptions(LogOptionsT &&value)
VpnTunnelOptionsSpecification & WithPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
VpnTunnelOptionsSpecification & AddPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
void SetPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
VpnTunnelOptionsSpecification & WithPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
VpnTunnelOptionsSpecification & WithPhase1LifetimeSeconds(int value)
AWS_EC2_API VpnTunnelOptionsSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
int GetRekeyFuzzPercentage() const
bool RekeyFuzzPercentageHasBeenSet() const
bool PreSharedKeyHasBeenSet() const
bool GetEnableTunnelLifecycleControl() const
const Aws::Vector< Phase1IntegrityAlgorithmsRequestListValue > & GetPhase1IntegrityAlgorithms() const
VpnTunnelOptionsSpecification & WithRekeyMarginTimeSeconds(int value)
void SetStartupAction(StartupActionT &&value)
VpnTunnelOptionsSpecification & AddPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
const Aws::Vector< Phase2EncryptionAlgorithmsRequestListValue > & GetPhase2EncryptionAlgorithms() const
VpnTunnelOptionsSpecification & WithDPDTimeoutSeconds(int value)
void SetPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API VpnTunnelOptionsSpecification()=default
int GetPhase1LifetimeSeconds() const
VpnTunnelOptionsSpecification & WithDPDTimeoutAction(DPDTimeoutActionT &&value)
AWS_EC2_API VpnTunnelOptionsSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
VpnTunnelOptionsSpecification & WithPhase2LifetimeSeconds(int value)
bool TunnelInsideIpv6CidrHasBeenSet() const
int GetPhase2LifetimeSeconds() const
void SetRekeyMarginTimeSeconds(int value)
const Aws::Vector< IKEVersionsRequestListValue > & GetIKEVersions() const
VpnTunnelOptionsSpecification & WithStartupAction(StartupActionT &&value)
void SetPreSharedKey(PreSharedKeyT &&value)
VpnTunnelOptionsSpecification & WithPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
VpnTunnelOptionsSpecification & WithPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
bool TunnelInsideCidrHasBeenSet() const
const Aws::Vector< Phase1DHGroupNumbersRequestListValue > & GetPhase1DHGroupNumbers() const
void SetDPDTimeoutSeconds(int value)
bool RekeyMarginTimeSecondsHasBeenSet() const
bool Phase2LifetimeSecondsHasBeenSet() const
const Aws::String & GetStartupAction() const
void SetPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
VpnTunnelOptionsSpecification & WithTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
bool Phase1LifetimeSecondsHasBeenSet() const
VpnTunnelOptionsSpecification & WithReplayWindowSize(int value)
void SetDPDTimeoutAction(DPDTimeoutActionT &&value)
const Aws::Vector< Phase2IntegrityAlgorithmsRequestListValue > & GetPhase2IntegrityAlgorithms() const
VpnTunnelOptionsSpecification & AddPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
VpnTunnelOptionsSpecification & AddPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
void SetPhase1LifetimeSeconds(int value)
void SetPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
const Aws::String & GetDPDTimeoutAction() const
void SetRekeyFuzzPercentage(int value)
const Aws::String & GetPreSharedKey() const
const Aws::Vector< Phase1EncryptionAlgorithmsRequestListValue > & GetPhase1EncryptionAlgorithms() const
bool DPDTimeoutSecondsHasBeenSet() const
bool Phase1DHGroupNumbersHasBeenSet() const
bool Phase2EncryptionAlgorithmsHasBeenSet() const
VpnTunnelOptionsSpecification & WithTunnelInsideCidr(TunnelInsideCidrT &&value)
VpnTunnelOptionsSpecification & AddPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
const Aws::String & GetTunnelInsideCidr() const
bool Phase1IntegrityAlgorithmsHasBeenSet() const
bool EnableTunnelLifecycleControlHasBeenSet() const
void SetTunnelInsideCidr(TunnelInsideCidrT &&value)
VpnTunnelOptionsSpecification & WithEnableTunnelLifecycleControl(bool value)
void SetTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
int GetDPDTimeoutSeconds() 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