AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyVpnTunnelOptionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ModifyVpnTunnelOptionsSpecification.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API ModifyVpnTunnelOptionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyVpnTunnelOptions"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetVpnConnectionId() const { return m_vpnConnectionId; }
45 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
46 template<typename VpnConnectionIdT = Aws::String>
47 void SetVpnConnectionId(VpnConnectionIdT&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::forward<VpnConnectionIdT>(value); }
48 template<typename VpnConnectionIdT = Aws::String>
49 ModifyVpnTunnelOptionsRequest& WithVpnConnectionId(VpnConnectionIdT&& value) { SetVpnConnectionId(std::forward<VpnConnectionIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetVpnTunnelOutsideIpAddress() const { return m_vpnTunnelOutsideIpAddress; }
57 inline bool VpnTunnelOutsideIpAddressHasBeenSet() const { return m_vpnTunnelOutsideIpAddressHasBeenSet; }
58 template<typename VpnTunnelOutsideIpAddressT = Aws::String>
59 void SetVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT&& value) { m_vpnTunnelOutsideIpAddressHasBeenSet = true; m_vpnTunnelOutsideIpAddress = std::forward<VpnTunnelOutsideIpAddressT>(value); }
60 template<typename VpnTunnelOutsideIpAddressT = Aws::String>
61 ModifyVpnTunnelOptionsRequest& WithVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT&& value) { SetVpnTunnelOutsideIpAddress(std::forward<VpnTunnelOutsideIpAddressT>(value)); return *this;}
63
65
68 inline const ModifyVpnTunnelOptionsSpecification& GetTunnelOptions() const { return m_tunnelOptions; }
69 inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
70 template<typename TunnelOptionsT = ModifyVpnTunnelOptionsSpecification>
71 void SetTunnelOptions(TunnelOptionsT&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::forward<TunnelOptionsT>(value); }
72 template<typename TunnelOptionsT = ModifyVpnTunnelOptionsSpecification>
73 ModifyVpnTunnelOptionsRequest& WithTunnelOptions(TunnelOptionsT&& value) { SetTunnelOptions(std::forward<TunnelOptionsT>(value)); return *this;}
75
77
83 inline bool GetDryRun() const { return m_dryRun; }
84 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
85 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
86 inline ModifyVpnTunnelOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
88
90
95 inline bool GetSkipTunnelReplacement() const { return m_skipTunnelReplacement; }
96 inline bool SkipTunnelReplacementHasBeenSet() const { return m_skipTunnelReplacementHasBeenSet; }
97 inline void SetSkipTunnelReplacement(bool value) { m_skipTunnelReplacementHasBeenSet = true; m_skipTunnelReplacement = value; }
100
102
107 inline const Aws::String& GetPreSharedKeyStorage() const { return m_preSharedKeyStorage; }
108 inline bool PreSharedKeyStorageHasBeenSet() const { return m_preSharedKeyStorageHasBeenSet; }
109 template<typename PreSharedKeyStorageT = Aws::String>
110 void SetPreSharedKeyStorage(PreSharedKeyStorageT&& value) { m_preSharedKeyStorageHasBeenSet = true; m_preSharedKeyStorage = std::forward<PreSharedKeyStorageT>(value); }
111 template<typename PreSharedKeyStorageT = Aws::String>
112 ModifyVpnTunnelOptionsRequest& WithPreSharedKeyStorage(PreSharedKeyStorageT&& value) { SetPreSharedKeyStorage(std::forward<PreSharedKeyStorageT>(value)); return *this;}
114 private:
115
116 Aws::String m_vpnConnectionId;
117 bool m_vpnConnectionIdHasBeenSet = false;
118
119 Aws::String m_vpnTunnelOutsideIpAddress;
120 bool m_vpnTunnelOutsideIpAddressHasBeenSet = false;
121
123 bool m_tunnelOptionsHasBeenSet = false;
124
125 bool m_dryRun{false};
126 bool m_dryRunHasBeenSet = false;
127
128 bool m_skipTunnelReplacement{false};
129 bool m_skipTunnelReplacementHasBeenSet = false;
130
131 Aws::String m_preSharedKeyStorage;
132 bool m_preSharedKeyStorageHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
ModifyVpnTunnelOptionsRequest & WithPreSharedKeyStorage(PreSharedKeyStorageT &&value)
ModifyVpnTunnelOptionsRequest & WithVpnConnectionId(VpnConnectionIdT &&value)
void SetVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
ModifyVpnTunnelOptionsRequest & WithVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyVpnTunnelOptionsRequest & WithTunnelOptions(TunnelOptionsT &&value)
ModifyVpnTunnelOptionsRequest & WithSkipTunnelReplacement(bool value)
const ModifyVpnTunnelOptionsSpecification & GetTunnelOptions() const
ModifyVpnTunnelOptionsRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String