7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IKEVersionsRequestListValue.h>
12#include <aws/ec2/model/Phase1DHGroupNumbersRequestListValue.h>
13#include <aws/ec2/model/Phase1EncryptionAlgorithmsRequestListValue.h>
14#include <aws/ec2/model/Phase1IntegrityAlgorithmsRequestListValue.h>
15#include <aws/ec2/model/Phase2DHGroupNumbersRequestListValue.h>
16#include <aws/ec2/model/Phase2EncryptionAlgorithmsRequestListValue.h>
17#include <aws/ec2/model/Phase2IntegrityAlgorithmsRequestListValue.h>
18#include <aws/ec2/model/VpnTunnelLogOptionsSpecification.h>
59 template <
typename TunnelIns
ideC
idrT = Aws::String>
61 m_tunnelInsideCidrHasBeenSet =
true;
62 m_tunnelInsideCidr = std::forward<TunnelInsideCidrT>(value);
64 template <
typename TunnelIns
ideC
idrT = Aws::String>
80 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
82 m_tunnelInsideIpv6CidrHasBeenSet =
true;
83 m_tunnelInsideIpv6Cidr = std::forward<TunnelInsideIpv6CidrT>(value);
85 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
101 template <
typename PreSharedKeyT = Aws::String>
103 m_preSharedKeyHasBeenSet =
true;
104 m_preSharedKey = std::forward<PreSharedKeyT>(value);
106 template <
typename PreSharedKeyT = Aws::String>
122 m_phase1LifetimeSecondsHasBeenSet =
true;
123 m_phase1LifetimeSeconds = value;
141 m_phase2LifetimeSecondsHasBeenSet =
true;
142 m_phase2LifetimeSeconds = value;
162 m_rekeyMarginTimeSecondsHasBeenSet =
true;
163 m_rekeyMarginTimeSeconds = value;
181 m_rekeyFuzzPercentageHasBeenSet =
true;
182 m_rekeyFuzzPercentage = value;
198 m_replayWindowSizeHasBeenSet =
true;
199 m_replayWindowSize = value;
215 m_dPDTimeoutSecondsHasBeenSet =
true;
216 m_dPDTimeoutSeconds = value;
233 template <
typename DPDTimeoutActionT = Aws::String>
235 m_dPDTimeoutActionHasBeenSet =
true;
236 m_dPDTimeoutAction = std::forward<DPDTimeoutActionT>(value);
238 template <
typename DPDTimeoutActionT = Aws::String>
253 return m_phase1EncryptionAlgorithms;
256 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
258 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
259 m_phase1EncryptionAlgorithms = std::forward<Phase1EncryptionAlgorithmsT>(value);
261 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
266 template <
typename Phase1EncryptionAlgorithmsT = Phase1EncryptionAlgorithmsRequestListValue>
268 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
269 m_phase1EncryptionAlgorithms.emplace_back(std::forward<Phase1EncryptionAlgorithmsT>(value));
282 return m_phase2EncryptionAlgorithms;
285 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
287 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
288 m_phase2EncryptionAlgorithms = std::forward<Phase2EncryptionAlgorithmsT>(value);
290 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
295 template <
typename Phase2EncryptionAlgorithmsT = Phase2EncryptionAlgorithmsRequestListValue>
297 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
298 m_phase2EncryptionAlgorithms.emplace_back(std::forward<Phase2EncryptionAlgorithmsT>(value));
310 return m_phase1IntegrityAlgorithms;
313 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
315 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
316 m_phase1IntegrityAlgorithms = std::forward<Phase1IntegrityAlgorithmsT>(value);
318 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
323 template <
typename Phase1IntegrityAlgorithmsT = Phase1IntegrityAlgorithmsRequestListValue>
325 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
326 m_phase1IntegrityAlgorithms.emplace_back(std::forward<Phase1IntegrityAlgorithmsT>(value));
338 return m_phase2IntegrityAlgorithms;
341 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
343 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
344 m_phase2IntegrityAlgorithms = std::forward<Phase2IntegrityAlgorithmsT>(value);
346 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
351 template <
typename Phase2IntegrityAlgorithmsT = Phase2IntegrityAlgorithmsRequestListValue>
353 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
354 m_phase2IntegrityAlgorithms.emplace_back(std::forward<Phase2IntegrityAlgorithmsT>(value));
369 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
371 m_phase1DHGroupNumbersHasBeenSet =
true;
372 m_phase1DHGroupNumbers = std::forward<Phase1DHGroupNumbersT>(value);
374 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
379 template <
typename Phase1DHGroupNumbersT = Phase1DHGroupNumbersRequestListValue>
381 m_phase1DHGroupNumbersHasBeenSet =
true;
382 m_phase1DHGroupNumbers.emplace_back(std::forward<Phase1DHGroupNumbersT>(value));
397 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
399 m_phase2DHGroupNumbersHasBeenSet =
true;
400 m_phase2DHGroupNumbers = std::forward<Phase2DHGroupNumbersT>(value);
402 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
407 template <
typename Phase2DHGroupNumbersT = Phase2DHGroupNumbersRequestListValue>
409 m_phase2DHGroupNumbersHasBeenSet =
true;
410 m_phase2DHGroupNumbers.emplace_back(std::forward<Phase2DHGroupNumbersT>(value));
422 template <
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
424 m_iKEVersionsHasBeenSet =
true;
425 m_iKEVersions = std::forward<IKEVersionsT>(value);
427 template <
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
432 template <
typename IKEVersionsT = IKEVersionsRequestListValue>
434 m_iKEVersionsHasBeenSet =
true;
435 m_iKEVersions.emplace_back(std::forward<IKEVersionsT>(value));
450 template <
typename StartupActionT = Aws::String>
452 m_startupActionHasBeenSet =
true;
453 m_startupAction = std::forward<StartupActionT>(value);
455 template <
typename StartupActionT = Aws::String>
468 template <
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
470 m_logOptionsHasBeenSet =
true;
471 m_logOptions = std::forward<LogOptionsT>(value);
473 template <
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
487 m_enableTunnelLifecycleControlHasBeenSet =
true;
488 m_enableTunnelLifecycleControl = value;
502 int m_phase1LifetimeSeconds{0};
504 int m_phase2LifetimeSeconds{0};
506 int m_rekeyMarginTimeSeconds{0};
508 int m_rekeyFuzzPercentage{0};
510 int m_replayWindowSize{0};
512 int m_dPDTimeoutSeconds{0};
532 VpnTunnelLogOptionsSpecification m_logOptions;
534 bool m_enableTunnelLifecycleControl{
false};
535 bool m_tunnelInsideCidrHasBeenSet =
false;
536 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
537 bool m_preSharedKeyHasBeenSet =
false;
538 bool m_phase1LifetimeSecondsHasBeenSet =
false;
539 bool m_phase2LifetimeSecondsHasBeenSet =
false;
540 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
541 bool m_rekeyFuzzPercentageHasBeenSet =
false;
542 bool m_replayWindowSizeHasBeenSet =
false;
543 bool m_dPDTimeoutSecondsHasBeenSet =
false;
544 bool m_dPDTimeoutActionHasBeenSet =
false;
545 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
546 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
547 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
548 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
549 bool m_phase1DHGroupNumbersHasBeenSet =
false;
550 bool m_phase2DHGroupNumbersHasBeenSet =
false;
551 bool m_iKEVersionsHasBeenSet =
false;
552 bool m_startupActionHasBeenSet =
false;
553 bool m_logOptionsHasBeenSet =
false;
554 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