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/IKEVersionsListValue.h>
12#include <aws/ec2/model/Phase1DHGroupNumbersListValue.h>
13#include <aws/ec2/model/Phase1EncryptionAlgorithmsListValue.h>
14#include <aws/ec2/model/Phase1IntegrityAlgorithmsListValue.h>
15#include <aws/ec2/model/Phase2DHGroupNumbersListValue.h>
16#include <aws/ec2/model/Phase2EncryptionAlgorithmsListValue.h>
17#include <aws/ec2/model/Phase2IntegrityAlgorithmsListValue.h>
18#include <aws/ec2/model/VpnTunnelLogOptions.h>
51 template <
typename Outs
ideIpAddressT = Aws::String>
53 m_outsideIpAddressHasBeenSet =
true;
54 m_outsideIpAddress = std::forward<OutsideIpAddressT>(value);
56 template <
typename Outs
ideIpAddressT = Aws::String>
69 template <
typename TunnelIns
ideC
idrT = Aws::String>
71 m_tunnelInsideCidrHasBeenSet =
true;
72 m_tunnelInsideCidr = std::forward<TunnelInsideCidrT>(value);
74 template <
typename TunnelIns
ideC
idrT = Aws::String>
87 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
89 m_tunnelInsideIpv6CidrHasBeenSet =
true;
90 m_tunnelInsideIpv6Cidr = std::forward<TunnelInsideIpv6CidrT>(value);
92 template <
typename TunnelIns
ideIpv6C
idrT = Aws::String>
106 template <
typename PreSharedKeyT = Aws::String>
108 m_preSharedKeyHasBeenSet =
true;
109 m_preSharedKey = std::forward<PreSharedKeyT>(value);
111 template <
typename PreSharedKeyT = Aws::String>
125 m_phase1LifetimeSecondsHasBeenSet =
true;
126 m_phase1LifetimeSeconds = value;
141 m_phase2LifetimeSecondsHasBeenSet =
true;
142 m_phase2LifetimeSeconds = value;
159 m_rekeyMarginTimeSecondsHasBeenSet =
true;
160 m_rekeyMarginTimeSeconds = value;
177 m_rekeyFuzzPercentageHasBeenSet =
true;
178 m_rekeyFuzzPercentage = value;
193 m_replayWindowSizeHasBeenSet =
true;
194 m_replayWindowSize = value;
209 m_dpdTimeoutSecondsHasBeenSet =
true;
210 m_dpdTimeoutSeconds = value;
224 template <
typename DpdTimeoutActionT = Aws::String>
226 m_dpdTimeoutActionHasBeenSet =
true;
227 m_dpdTimeoutAction = std::forward<DpdTimeoutActionT>(value);
229 template <
typename DpdTimeoutActionT = Aws::String>
242 return m_phase1EncryptionAlgorithms;
245 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsListValue>>
247 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
248 m_phase1EncryptionAlgorithms = std::forward<Phase1EncryptionAlgorithmsT>(value);
250 template <
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsListValue>>
255 template <
typename Phase1EncryptionAlgorithmsT = Phase1EncryptionAlgorithmsListValue>
257 m_phase1EncryptionAlgorithmsHasBeenSet =
true;
258 m_phase1EncryptionAlgorithms.emplace_back(std::forward<Phase1EncryptionAlgorithmsT>(value));
269 return m_phase2EncryptionAlgorithms;
272 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsListValue>>
274 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
275 m_phase2EncryptionAlgorithms = std::forward<Phase2EncryptionAlgorithmsT>(value);
277 template <
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsListValue>>
282 template <
typename Phase2EncryptionAlgorithmsT = Phase2EncryptionAlgorithmsListValue>
284 m_phase2EncryptionAlgorithmsHasBeenSet =
true;
285 m_phase2EncryptionAlgorithms.emplace_back(std::forward<Phase2EncryptionAlgorithmsT>(value));
297 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsListValue>>
299 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
300 m_phase1IntegrityAlgorithms = std::forward<Phase1IntegrityAlgorithmsT>(value);
302 template <
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsListValue>>
307 template <
typename Phase1IntegrityAlgorithmsT = Phase1IntegrityAlgorithmsListValue>
309 m_phase1IntegrityAlgorithmsHasBeenSet =
true;
310 m_phase1IntegrityAlgorithms.emplace_back(std::forward<Phase1IntegrityAlgorithmsT>(value));
322 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsListValue>>
324 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
325 m_phase2IntegrityAlgorithms = std::forward<Phase2IntegrityAlgorithmsT>(value);
327 template <
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsListValue>>
332 template <
typename Phase2IntegrityAlgorithmsT = Phase2IntegrityAlgorithmsListValue>
334 m_phase2IntegrityAlgorithmsHasBeenSet =
true;
335 m_phase2IntegrityAlgorithms.emplace_back(std::forward<Phase2IntegrityAlgorithmsT>(value));
347 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersListValue>>
349 m_phase1DHGroupNumbersHasBeenSet =
true;
350 m_phase1DHGroupNumbers = std::forward<Phase1DHGroupNumbersT>(value);
352 template <
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersListValue>>
357 template <
typename Phase1DHGroupNumbersT = Phase1DHGroupNumbersListValue>
359 m_phase1DHGroupNumbersHasBeenSet =
true;
360 m_phase1DHGroupNumbers.emplace_back(std::forward<Phase1DHGroupNumbersT>(value));
372 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersListValue>>
374 m_phase2DHGroupNumbersHasBeenSet =
true;
375 m_phase2DHGroupNumbers = std::forward<Phase2DHGroupNumbersT>(value);
377 template <
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersListValue>>
382 template <
typename Phase2DHGroupNumbersT = Phase2DHGroupNumbersListValue>
384 m_phase2DHGroupNumbersHasBeenSet =
true;
385 m_phase2DHGroupNumbers.emplace_back(std::forward<Phase2DHGroupNumbersT>(value));
396 template <
typename IkeVersionsT = Aws::Vector<IKEVersionsListValue>>
398 m_ikeVersionsHasBeenSet =
true;
399 m_ikeVersions = std::forward<IkeVersionsT>(value);
401 template <
typename IkeVersionsT = Aws::Vector<IKEVersionsListValue>>
406 template <
typename IkeVersionsT = IKEVersionsListValue>
408 m_ikeVersionsHasBeenSet =
true;
409 m_ikeVersions.emplace_back(std::forward<IkeVersionsT>(value));
421 template <
typename StartupActionT = Aws::String>
423 m_startupActionHasBeenSet =
true;
424 m_startupAction = std::forward<StartupActionT>(value);
426 template <
typename StartupActionT = Aws::String>
439 template <
typename LogOptionsT = VpnTunnelLogOptions>
441 m_logOptionsHasBeenSet =
true;
442 m_logOptions = std::forward<LogOptionsT>(value);
444 template <
typename LogOptionsT = VpnTunnelLogOptions>
458 m_enableTunnelLifecycleControlHasBeenSet =
true;
459 m_enableTunnelLifecycleControl = value;
475 int m_phase1LifetimeSeconds{0};
477 int m_phase2LifetimeSeconds{0};
479 int m_rekeyMarginTimeSeconds{0};
481 int m_rekeyFuzzPercentage{0};
483 int m_replayWindowSize{0};
485 int m_dpdTimeoutSeconds{0};
505 VpnTunnelLogOptions m_logOptions;
507 bool m_enableTunnelLifecycleControl{
false};
508 bool m_outsideIpAddressHasBeenSet =
false;
509 bool m_tunnelInsideCidrHasBeenSet =
false;
510 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
511 bool m_preSharedKeyHasBeenSet =
false;
512 bool m_phase1LifetimeSecondsHasBeenSet =
false;
513 bool m_phase2LifetimeSecondsHasBeenSet =
false;
514 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
515 bool m_rekeyFuzzPercentageHasBeenSet =
false;
516 bool m_replayWindowSizeHasBeenSet =
false;
517 bool m_dpdTimeoutSecondsHasBeenSet =
false;
518 bool m_dpdTimeoutActionHasBeenSet =
false;
519 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
520 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
521 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
522 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
523 bool m_phase1DHGroupNumbersHasBeenSet =
false;
524 bool m_phase2DHGroupNumbersHasBeenSet =
false;
525 bool m_ikeVersionsHasBeenSet =
false;
526 bool m_startupActionHasBeenSet =
false;
527 bool m_logOptionsHasBeenSet =
false;
528 bool m_enableTunnelLifecycleControlHasBeenSet =
false;
bool LogOptionsHasBeenSet() const
bool ReplayWindowSizeHasBeenSet() const
const Aws::String & GetTunnelInsideIpv6Cidr() const
void SetIkeVersions(IkeVersionsT &&value)
TunnelOption & AddPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
bool PreSharedKeyHasBeenSet() const
int GetPhase1LifetimeSeconds() const
const Aws::String & GetOutsideIpAddress() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
TunnelOption & WithDpdTimeoutSeconds(int value)
const Aws::String & GetStartupAction() const
void SetDpdTimeoutSeconds(int value)
TunnelOption & WithLogOptions(LogOptionsT &&value)
TunnelOption & WithTunnelInsideCidr(TunnelInsideCidrT &&value)
TunnelOption & AddPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
TunnelOption & WithPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&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 SetPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
const Aws::Vector< Phase2DHGroupNumbersListValue > & GetPhase2DHGroupNumbers() const
void SetPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&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
TunnelOption & WithDpdTimeoutAction(DpdTimeoutActionT &&value)
bool GetEnableTunnelLifecycleControl() const
const Aws::Vector< Phase1IntegrityAlgorithmsListValue > & GetPhase1IntegrityAlgorithms() const
AWS_EC2_API TunnelOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< IKEVersionsListValue > & GetIkeVersions() const
void SetStartupAction(StartupActionT &&value)
bool DpdTimeoutSecondsHasBeenSet() const
TunnelOption & WithPreSharedKey(PreSharedKeyT &&value)
TunnelOption & AddPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT &&value)
int GetPhase2LifetimeSeconds() const
void SetPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
TunnelOption & WithPhase1LifetimeSeconds(int value)
void SetTunnelInsideCidr(TunnelInsideCidrT &&value)
bool Phase2DHGroupNumbersHasBeenSet() const
TunnelOption & WithPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&value)
bool Phase2LifetimeSecondsHasBeenSet() const
AWS_EC2_API TunnelOption()=default
TunnelOption & WithPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
int GetDpdTimeoutSeconds() const
TunnelOption & WithStartupAction(StartupActionT &&value)
TunnelOption & WithEnableTunnelLifecycleControl(bool value)
const Aws::String & GetPreSharedKey() const
const VpnTunnelLogOptions & GetLogOptions() const
bool IkeVersionsHasBeenSet() const
TunnelOption & WithIkeVersions(IkeVersionsT &&value)
void SetPreSharedKey(PreSharedKeyT &&value)
TunnelOption & AddPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
void SetRekeyMarginTimeSeconds(int value)
bool RekeyMarginTimeSecondsHasBeenSet() const
bool Phase2EncryptionAlgorithmsHasBeenSet() const
bool TunnelInsideCidrHasBeenSet() const
AWS_EC2_API TunnelOption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
void SetLogOptions(LogOptionsT &&value)
TunnelOption & AddIkeVersions(IkeVersionsT &&value)
TunnelOption & WithPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT &&value)
bool StartupActionHasBeenSet() const
TunnelOption & WithOutsideIpAddress(OutsideIpAddressT &&value)
const Aws::String & GetDpdTimeoutAction() const
TunnelOption & WithTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
TunnelOption & WithPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT &&value)
bool Phase1LifetimeSecondsHasBeenSet() const
void SetTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT &&value)
void SetPhase2LifetimeSeconds(int value)
TunnelOption & AddPhase1DHGroupNumbers(Phase1DHGroupNumbersT &&value)
bool Phase1DHGroupNumbersHasBeenSet() const
const Aws::Vector< Phase1DHGroupNumbersListValue > & GetPhase1DHGroupNumbers() const
TunnelOption & WithRekeyMarginTimeSeconds(int value)
TunnelOption & WithPhase2LifetimeSeconds(int value)
void SetOutsideIpAddress(OutsideIpAddressT &&value)
void SetEnableTunnelLifecycleControl(bool value)
int GetRekeyFuzzPercentage() const
const Aws::Vector< Phase2EncryptionAlgorithmsListValue > & GetPhase2EncryptionAlgorithms() const
TunnelOption & AddPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
TunnelOption & WithReplayWindowSize(int value)
bool TunnelInsideIpv6CidrHasBeenSet() const
bool Phase2IntegrityAlgorithmsHasBeenSet() const
int GetRekeyMarginTimeSeconds() const
void SetRekeyFuzzPercentage(int value)
void SetDpdTimeoutAction(DpdTimeoutActionT &&value)
TunnelOption & WithPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT &&value)
bool Phase1EncryptionAlgorithmsHasBeenSet() const
void SetPhase2DHGroupNumbers(Phase2DHGroupNumbersT &&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