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>
57 template<
typename Outs
ideIpAddressT = Aws::String>
58 void SetOutsideIpAddress(OutsideIpAddressT&& value) { m_outsideIpAddressHasBeenSet =
true; m_outsideIpAddress = std::forward<OutsideIpAddressT>(value); }
59 template<
typename Outs
ideIpAddressT = Aws::String>
69 template<
typename TunnelIns
ideC
idrT = Aws::String>
70 void SetTunnelInsideCidr(TunnelInsideCidrT&& value) { m_tunnelInsideCidrHasBeenSet =
true; m_tunnelInsideCidr = std::forward<TunnelInsideCidrT>(value); }
71 template<
typename TunnelIns
ideC
idrT = Aws::String>
81 template<
typename TunnelIns
ideIpv6C
idrT = Aws::String>
82 void SetTunnelInsideIpv6Cidr(TunnelInsideIpv6CidrT&& value) { m_tunnelInsideIpv6CidrHasBeenSet =
true; m_tunnelInsideIpv6Cidr = std::forward<TunnelInsideIpv6CidrT>(value); }
83 template<
typename TunnelIns
ideIpv6C
idrT = Aws::String>
94 template<
typename PreSharedKeyT = Aws::String>
95 void SetPreSharedKey(PreSharedKeyT&& value) { m_preSharedKeyHasBeenSet =
true; m_preSharedKey = std::forward<PreSharedKeyT>(value); }
96 template<
typename PreSharedKeyT = Aws::String>
150 inline void SetReplayWindowSize(
int value) { m_replayWindowSizeHasBeenSet =
true; m_replayWindowSize = value; }
160 inline void SetDpdTimeoutSeconds(
int value) { m_dpdTimeoutSecondsHasBeenSet =
true; m_dpdTimeoutSeconds = value; }
170 template<
typename DpdTimeoutActionT = Aws::String>
171 void SetDpdTimeoutAction(DpdTimeoutActionT&& value) { m_dpdTimeoutActionHasBeenSet =
true; m_dpdTimeoutAction = std::forward<DpdTimeoutActionT>(value); }
172 template<
typename DpdTimeoutActionT = Aws::String>
183 template<
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsListValue>>
184 void SetPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT&& value) { m_phase1EncryptionAlgorithmsHasBeenSet =
true; m_phase1EncryptionAlgorithms = std::forward<Phase1EncryptionAlgorithmsT>(value); }
185 template<
typename Phase1EncryptionAlgorithmsT = Aws::Vector<Phase1EncryptionAlgorithmsListValue>>
187 template<
typename Phase1EncryptionAlgorithmsT = Phase1EncryptionAlgorithmsListValue>
188 TunnelOption&
AddPhase1EncryptionAlgorithms(Phase1EncryptionAlgorithmsT&& value) { m_phase1EncryptionAlgorithmsHasBeenSet =
true; m_phase1EncryptionAlgorithms.emplace_back(std::forward<Phase1EncryptionAlgorithmsT>(value));
return *
this; }
198 template<
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsListValue>>
199 void SetPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT&& value) { m_phase2EncryptionAlgorithmsHasBeenSet =
true; m_phase2EncryptionAlgorithms = std::forward<Phase2EncryptionAlgorithmsT>(value); }
200 template<
typename Phase2EncryptionAlgorithmsT = Aws::Vector<Phase2EncryptionAlgorithmsListValue>>
202 template<
typename Phase2EncryptionAlgorithmsT = Phase2EncryptionAlgorithmsListValue>
203 TunnelOption&
AddPhase2EncryptionAlgorithms(Phase2EncryptionAlgorithmsT&& value) { m_phase2EncryptionAlgorithmsHasBeenSet =
true; m_phase2EncryptionAlgorithms.emplace_back(std::forward<Phase2EncryptionAlgorithmsT>(value));
return *
this; }
213 template<
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsListValue>>
214 void SetPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT&& value) { m_phase1IntegrityAlgorithmsHasBeenSet =
true; m_phase1IntegrityAlgorithms = std::forward<Phase1IntegrityAlgorithmsT>(value); }
215 template<
typename Phase1IntegrityAlgorithmsT = Aws::Vector<Phase1IntegrityAlgorithmsListValue>>
217 template<
typename Phase1IntegrityAlgorithmsT = Phase1IntegrityAlgorithmsListValue>
218 TunnelOption&
AddPhase1IntegrityAlgorithms(Phase1IntegrityAlgorithmsT&& value) { m_phase1IntegrityAlgorithmsHasBeenSet =
true; m_phase1IntegrityAlgorithms.emplace_back(std::forward<Phase1IntegrityAlgorithmsT>(value));
return *
this; }
228 template<
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsListValue>>
229 void SetPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT&& value) { m_phase2IntegrityAlgorithmsHasBeenSet =
true; m_phase2IntegrityAlgorithms = std::forward<Phase2IntegrityAlgorithmsT>(value); }
230 template<
typename Phase2IntegrityAlgorithmsT = Aws::Vector<Phase2IntegrityAlgorithmsListValue>>
232 template<
typename Phase2IntegrityAlgorithmsT = Phase2IntegrityAlgorithmsListValue>
233 TunnelOption&
AddPhase2IntegrityAlgorithms(Phase2IntegrityAlgorithmsT&& value) { m_phase2IntegrityAlgorithmsHasBeenSet =
true; m_phase2IntegrityAlgorithms.emplace_back(std::forward<Phase2IntegrityAlgorithmsT>(value));
return *
this; }
243 template<
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersListValue>>
244 void SetPhase1DHGroupNumbers(Phase1DHGroupNumbersT&& value) { m_phase1DHGroupNumbersHasBeenSet =
true; m_phase1DHGroupNumbers = std::forward<Phase1DHGroupNumbersT>(value); }
245 template<
typename Phase1DHGroupNumbersT = Aws::Vector<Phase1DHGroupNumbersListValue>>
247 template<
typename Phase1DHGroupNumbersT = Phase1DHGroupNumbersListValue>
248 TunnelOption&
AddPhase1DHGroupNumbers(Phase1DHGroupNumbersT&& value) { m_phase1DHGroupNumbersHasBeenSet =
true; m_phase1DHGroupNumbers.emplace_back(std::forward<Phase1DHGroupNumbersT>(value));
return *
this; }
258 template<
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersListValue>>
259 void SetPhase2DHGroupNumbers(Phase2DHGroupNumbersT&& value) { m_phase2DHGroupNumbersHasBeenSet =
true; m_phase2DHGroupNumbers = std::forward<Phase2DHGroupNumbersT>(value); }
260 template<
typename Phase2DHGroupNumbersT = Aws::Vector<Phase2DHGroupNumbersListValue>>
262 template<
typename Phase2DHGroupNumbersT = Phase2DHGroupNumbersListValue>
263 TunnelOption&
AddPhase2DHGroupNumbers(Phase2DHGroupNumbersT&& value) { m_phase2DHGroupNumbersHasBeenSet =
true; m_phase2DHGroupNumbers.emplace_back(std::forward<Phase2DHGroupNumbersT>(value));
return *
this; }
272 template<
typename IkeVersionsT = Aws::Vector<IKEVersionsListValue>>
273 void SetIkeVersions(IkeVersionsT&& value) { m_ikeVersionsHasBeenSet =
true; m_ikeVersions = std::forward<IkeVersionsT>(value); }
274 template<
typename IkeVersionsT = Aws::Vector<IKEVersionsListValue>>
276 template<
typename IkeVersionsT = IKEVersionsListValue>
277 TunnelOption&
AddIkeVersions(IkeVersionsT&& value) { m_ikeVersionsHasBeenSet =
true; m_ikeVersions.emplace_back(std::forward<IkeVersionsT>(value));
return *
this; }
287 template<
typename StartupActionT = Aws::String>
288 void SetStartupAction(StartupActionT&& value) { m_startupActionHasBeenSet =
true; m_startupAction = std::forward<StartupActionT>(value); }
289 template<
typename StartupActionT = Aws::String>
299 template<
typename LogOptionsT = VpnTunnelLogOptions>
300 void SetLogOptions(LogOptionsT&& value) { m_logOptionsHasBeenSet =
true; m_logOptions = std::forward<LogOptionsT>(value); }
301 template<
typename LogOptionsT = VpnTunnelLogOptions>
317 bool m_outsideIpAddressHasBeenSet =
false;
320 bool m_tunnelInsideCidrHasBeenSet =
false;
323 bool m_tunnelInsideIpv6CidrHasBeenSet =
false;
326 bool m_preSharedKeyHasBeenSet =
false;
328 int m_phase1LifetimeSeconds{0};
329 bool m_phase1LifetimeSecondsHasBeenSet =
false;
331 int m_phase2LifetimeSeconds{0};
332 bool m_phase2LifetimeSecondsHasBeenSet =
false;
334 int m_rekeyMarginTimeSeconds{0};
335 bool m_rekeyMarginTimeSecondsHasBeenSet =
false;
337 int m_rekeyFuzzPercentage{0};
338 bool m_rekeyFuzzPercentageHasBeenSet =
false;
340 int m_replayWindowSize{0};
341 bool m_replayWindowSizeHasBeenSet =
false;
343 int m_dpdTimeoutSeconds{0};
344 bool m_dpdTimeoutSecondsHasBeenSet =
false;
347 bool m_dpdTimeoutActionHasBeenSet =
false;
350 bool m_phase1EncryptionAlgorithmsHasBeenSet =
false;
353 bool m_phase2EncryptionAlgorithmsHasBeenSet =
false;
356 bool m_phase1IntegrityAlgorithmsHasBeenSet =
false;
359 bool m_phase2IntegrityAlgorithmsHasBeenSet =
false;
362 bool m_phase1DHGroupNumbersHasBeenSet =
false;
365 bool m_phase2DHGroupNumbersHasBeenSet =
false;
368 bool m_ikeVersionsHasBeenSet =
false;
371 bool m_startupActionHasBeenSet =
false;
373 VpnTunnelLogOptions m_logOptions;
374 bool m_logOptionsHasBeenSet =
false;
376 bool m_enableTunnelLifecycleControl{
false};
377 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