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>
60 template <
typename TunnelIns
ideC
idrT = Aws::String>
62 m_tunnelInsideCidrHasBeenSet =
true;
63 m_tunnelInsideCidr = std::forward<TunnelInsideCidrT>(value);
65 template <
typename TunnelIns
ideC
idrT = Aws::String>
81 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
83 m_tunnelInsideIpv6CidrHasBeenSet =
true;
84 m_tunnelInsideIpv6Cidr = std::forward<TunnelInsideIpv6CidrT>(value);
86 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
102 template <
typename PreSharedKeyT = Aws::String>
104 m_preSharedKeyHasBeenSet =
true;
105 m_preSharedKey = std::forward<PreSharedKeyT>(value);
107 template <
typename PreSharedKeyT = Aws::String>
123 m_phase1LifetimeSecondsHasBeenSet =
true;
124 m_phase1LifetimeSeconds = value;
142 m_phase2LifetimeSecondsHasBeenSet =
true;
143 m_phase2LifetimeSeconds = value;
163 m_rekeyMarginTimeSecondsHasBeenSet =
true;
164 m_rekeyMarginTimeSeconds = value;
182 m_rekeyFuzzPercentageHasBeenSet =
true;
183 m_rekeyFuzzPercentage = value;
199 m_replayWindowSizeHasBeenSet =
true;
200 m_replayWindowSize = value;
218 m_dPDTimeoutSecondsHasBeenSet =
true;
219 m_dPDTimeoutSeconds = value;
236 template <
typename DPDTimeoutActionT = Aws::String>
238 m_dPDTimeoutActionHasBeenSet =
true;
239 m_dPDTimeoutAction = std::forward<DPDTimeoutActionT>(value);
241 template <
typename DPDTimeoutActionT = Aws::String>
256 return m_phase1EncryptionAlgorithms;
259 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
261 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
262 m_phase1EncryptionAlgorithms = std::forward<Phase1EncryptionAlgorithmsT>(value);
264 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsRequestListValue>>
269 template <
typename Phase1EncryptionAlgorithmsT = Phase1EncryptionAlgorithmsRequestListValue>
271 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
272 m_phase1EncryptionAlgorithms.emplace_back(std::forward<Phase1EncryptionAlgorithmsT>(value));
285 return m_phase2EncryptionAlgorithms;
288 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
290 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
291 m_phase2EncryptionAlgorithms = std::forward<Phase2EncryptionAlgorithmsT>(value);
293 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsRequestListValue>>
298 template <
typename Phase2EncryptionAlgorithmsT = Phase2EncryptionAlgorithmsRequestListValue>
300 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
301 m_phase2EncryptionAlgorithms.emplace_back(std::forward<Phase2EncryptionAlgorithmsT>(value));
313 return m_phase1IntegrityAlgorithms;
316 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
318 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
319 m_phase1IntegrityAlgorithms = std::forward<Phase1IntegrityAlgorithmsT>(value);
321 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsRequestListValue>>
326 template <
typename Phase1IntegrityAlgorithmsT = Phase1IntegrityAlgorithmsRequestListValue>
328 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
329 m_phase1IntegrityAlgorithms.emplace_back(std::forward<Phase1IntegrityAlgorithmsT>(value));
341 return m_phase2IntegrityAlgorithms;
344 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
346 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
347 m_phase2IntegrityAlgorithms = std::forward<Phase2IntegrityAlgorithmsT>(value);
349 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsRequestListValue>>
354 template <
typename Phase2IntegrityAlgorithmsT = Phase2IntegrityAlgorithmsRequestListValue>
356 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
357 m_phase2IntegrityAlgorithms.emplace_back(std::forward<Phase2IntegrityAlgorithmsT>(value));
372 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
374 m_phase1DHGroupNumbersHasBeenSet =
true;
375 m_phase1DHGroupNumbers = std::forward<Phase1DHGroupNumbersT>(value);
377 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersRequestListValue>>
382 template <
typename Phase1DHGroupNumbersT = Phase1DHGroupNumbersRequestListValue>
384 m_phase1DHGroupNumbersHasBeenSet =
true;
385 m_phase1DHGroupNumbers.emplace_back(std::forward<Phase1DHGroupNumbersT>(value));
400 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
402 m_phase2DHGroupNumbersHasBeenSet =
true;
403 m_phase2DHGroupNumbers = std::forward<Phase2DHGroupNumbersT>(value);
405 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersRequestListValue>>
410 template <
typename Phase2DHGroupNumbersT = Phase2DHGroupNumbersRequestListValue>
412 m_phase2DHGroupNumbersHasBeenSet =
true;
413 m_phase2DHGroupNumbers.emplace_back(std::forward<Phase2DHGroupNumbersT>(value));
425 template <
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
427 m_iKEVersionsHasBeenSet =
true;
428 m_iKEVersions = std::forward<IKEVersionsT>(value);
430 template <
typename IKEVersionsT = Aws::Vector<IKEVersionsRequestListValue>>
435 template <
typename IKEVersionsT = IKEVersionsRequestListValue>
437 m_iKEVersionsHasBeenSet =
true;
438 m_iKEVersions.emplace_back(std::forward<IKEVersionsT>(value));
453 template <
typename StartupActionT = Aws::String>
455 m_startupActionHasBeenSet =
true;
456 m_startupAction = std::forward<StartupActionT>(value);
458 template <
typename StartupActionT = Aws::String>
471 template <
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
473 m_logOptionsHasBeenSet =
true;
474 m_logOptions = std::forward<LogOptionsT>(value);
476 template <
typename LogOptionsT = VpnTunnelLogOptionsSpecification>
490 m_enableTunnelLifecycleControlHasBeenSet =
true;
491 m_enableTunnelLifecycleControl = value;
505 int m_phase1LifetimeSeconds{0};
507 int m_phase2LifetimeSeconds{0};
509 int m_rekeyMarginTimeSeconds{0};
511 int m_rekeyFuzzPercentage{0};
513 int m_replayWindowSize{0};
515 int m_dPDTimeoutSeconds{0};
535 VpnTunnelLogOptionsSpecification m_logOptions;
537 bool m_enableTunnelLifecycleControl{
false};
538 bool m_tunnelInsideCidrHasBeenSet =
false;
539 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
540 bool m_preSharedKeyHasBeenSet =
false;
541 bool m_phase1LifetimeSecondsHasBeenSet =
false;
542 bool m_phase2LifetimeSecondsHasBeenSet =
false;
543 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
544 bool m_rekeyFuzzPercentageHasBeenSet =
false;
545 bool m_replayWindowSizeHasBeenSet =
false;
546 bool m_dPDTimeoutSecondsHasBeenSet =
false;
547 bool m_dPDTimeoutActionHasBeenSet =
false;
548 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
549 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
550 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
551 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
552 bool m_phase1DHGroupNumbersHasBeenSet =
false;
553 bool m_phase2DHGroupNumbersHasBeenSet =
false;
554 bool m_iKEVersionsHasBeenSet =
false;
555 bool m_startupActionHasBeenSet =
false;
556 bool m_logOptionsHasBeenSet =
false;
557 bool m_enableTunnelLifecycleControlHasBeenSet =
false;
bool Phase2LifetimeSecondsHasBeenSet() const
const Aws::Vector< Phase2EncryptionAlgorithmsRequestListValue > & GetPhase2EncryptionAlgorithms() const
ModifyVpnTunnelOptionsSpecification & WithPhase2LifetimeSeconds(int value)
const VpnTunnelLogOptionsSpecification & GetLogOptions() const
const Aws::String & GetPreSharedKey() const
ModifyVpnTunnelOptionsSpecification & WithPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
ModifyVpnTunnelOptionsSpecification & AddPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
void SetLogOptions(LogOptionsT &&value)
bool PreSharedKeyHasBeenSet() const
void SetPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
void SetTunnelInsideCidr(TunnelInsideCidrT &&value)
const Aws::Vector< IKEVersionsRequestListValue > & GetIKEVersions() const
int GetDPDTimeoutSeconds() const
bool Phase1DHGroupNumbersHasBeenSet() const
bool EnableTunnelLifecycleControlHasBeenSet() const
bool TunnelInsideCidrHasBeenSet() const
void SetPhase1LifetimeSeconds(int value)
bool RekeyMarginTimeSecondsHasBeenSet() const
const Aws::Vector< Phase2IntegrityAlgorithmsRequestListValue > & GetPhase2IntegrityAlgorithms() const
ModifyVpnTunnelOptionsSpecification & AddIKEVersions(IKEVersionsT &&value)
const Aws::String & GetStartupAction() const
ModifyVpnTunnelOptionsSpecification & WithPreSharedKey(PreSharedKeyT &&value)
ModifyVpnTunnelOptionsSpecification & WithTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
bool GetEnableTunnelLifecycleControl() const
void SetReplayWindowSize(int value)
ModifyVpnTunnelOptionsSpecification & WithReplayWindowSize(int value)
void SetPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
ModifyVpnTunnelOptionsSpecification & WithPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
int GetPhase1LifetimeSeconds() const
ModifyVpnTunnelOptionsSpecification & WithRekeyMarginTimeSeconds(int value)
AWS_EC2_API ModifyVpnTunnelOptionsSpecification()=default
bool IKEVersionsHasBeenSet() const
ModifyVpnTunnelOptionsSpecification & WithPhase1LifetimeSeconds(int value)
ModifyVpnTunnelOptionsSpecification & WithPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
ModifyVpnTunnelOptionsSpecification & WithDPDTimeoutSeconds(int value)
AWS_EC2_API ModifyVpnTunnelOptionsSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ReplayWindowSizeHasBeenSet() const
bool TunnelInsideIpv6CidrHasBeenSet() const
bool Phase1IntegrityAlgorithmsHasBeenSet() const
ModifyVpnTunnelOptionsSpecification & WithPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
void SetTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
ModifyVpnTunnelOptionsSpecification & WithPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
const Aws::String & GetDPDTimeoutAction() const
const Aws::Vector< Phase1EncryptionAlgorithmsRequestListValue > & GetPhase1EncryptionAlgorithms() const
const Aws::Vector< Phase2DHGroupNumbersRequestListValue > & GetPhase2DHGroupNumbers() const
ModifyVpnTunnelOptionsSpecification & AddPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
const Aws::Vector< Phase1IntegrityAlgorithmsRequestListValue > & GetPhase1IntegrityAlgorithms() const
ModifyVpnTunnelOptionsSpecification & WithTunnelInsideCidr(TunnelInsideCidrT &&value)
const Aws::String & GetTunnelInsideIpv6Cidr() const
void SetPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
void SetPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
bool Phase2DHGroupNumbersHasBeenSet() const
ModifyVpnTunnelOptionsSpecification & WithStartupAction(StartupActionT &&value)
bool Phase1EncryptionAlgorithmsHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDPDTimeoutSeconds(int value)
void SetEnableTunnelLifecycleControl(bool value)
void SetPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
int GetRekeyFuzzPercentage() const
void SetDPDTimeoutAction(DPDTimeoutActionT &&value)
const Aws::Vector< Phase1DHGroupNumbersRequestListValue > & GetPhase1DHGroupNumbers() const
ModifyVpnTunnelOptionsSpecification & WithLogOptions(LogOptionsT &&value)
void SetIKEVersions(IKEVersionsT &&value)
ModifyVpnTunnelOptionsSpecification & WithRekeyFuzzPercentage(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ModifyVpnTunnelOptionsSpecification & WithPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
ModifyVpnTunnelOptionsSpecification & WithEnableTunnelLifecycleControl(bool value)
void SetPreSharedKey(PreSharedKeyT &&value)
ModifyVpnTunnelOptionsSpecification & WithDPDTimeoutAction(DPDTimeoutActionT &&value)
ModifyVpnTunnelOptionsSpecification & WithIKEVersions(IKEVersionsT &&value)
bool StartupActionHasBeenSet() const
void SetRekeyMarginTimeSeconds(int value)
ModifyVpnTunnelOptionsSpecification & AddPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
ModifyVpnTunnelOptionsSpecification & AddPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
bool DPDTimeoutActionHasBeenSet() const
int GetRekeyMarginTimeSeconds() const
bool Phase1LifetimeSecondsHasBeenSet() const
void SetStartupAction(StartupActionT &&value)
const Aws::String & GetTunnelInsideCidr() const
bool Phase2IntegrityAlgorithmsHasBeenSet() const
void SetPhase2LifetimeSeconds(int value)
int GetPhase2LifetimeSeconds() const
AWS_EC2_API ModifyVpnTunnelOptionsSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
bool Phase2EncryptionAlgorithmsHasBeenSet() const
bool LogOptionsHasBeenSet() const
ModifyVpnTunnelOptionsSpecification & AddPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
ModifyVpnTunnelOptionsSpecification & AddPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
int GetReplayWindowSize() const
void SetRekeyFuzzPercentage(int value)
bool RekeyFuzzPercentageHasBeenSet() const
void SetPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
bool DPDTimeoutSecondsHasBeenSet() 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