AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyVpnTunnelOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ModifyVpnTunnelOptionsSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API ModifyVpnTunnelOptionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyVpnTunnelOptions"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetVpnConnectionId() const { return m_vpnConnectionId; }
41 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
42 template <typename VpnConnectionIdT = Aws::String>
43 void SetVpnConnectionId(VpnConnectionIdT&& value) {
44 m_vpnConnectionIdHasBeenSet = true;
45 m_vpnConnectionId = std::forward<VpnConnectionIdT>(value);
46 }
47 template <typename VpnConnectionIdT = Aws::String>
49 SetVpnConnectionId(std::forward<VpnConnectionIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVpnTunnelOutsideIpAddress() const { return m_vpnTunnelOutsideIpAddress; }
59 inline bool VpnTunnelOutsideIpAddressHasBeenSet() const { return m_vpnTunnelOutsideIpAddressHasBeenSet; }
60 template <typename VpnTunnelOutsideIpAddressT = Aws::String>
61 void SetVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT&& value) {
62 m_vpnTunnelOutsideIpAddressHasBeenSet = true;
63 m_vpnTunnelOutsideIpAddress = std::forward<VpnTunnelOutsideIpAddressT>(value);
64 }
65 template <typename VpnTunnelOutsideIpAddressT = Aws::String>
66 ModifyVpnTunnelOptionsRequest& WithVpnTunnelOutsideIpAddress(VpnTunnelOutsideIpAddressT&& value) {
67 SetVpnTunnelOutsideIpAddress(std::forward<VpnTunnelOutsideIpAddressT>(value));
68 return *this;
69 }
71
73
76 inline const ModifyVpnTunnelOptionsSpecification& GetTunnelOptions() const { return m_tunnelOptions; }
77 inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
78 template <typename TunnelOptionsT = ModifyVpnTunnelOptionsSpecification>
79 void SetTunnelOptions(TunnelOptionsT&& value) {
80 m_tunnelOptionsHasBeenSet = true;
81 m_tunnelOptions = std::forward<TunnelOptionsT>(value);
82 }
83 template <typename TunnelOptionsT = ModifyVpnTunnelOptionsSpecification>
85 SetTunnelOptions(std::forward<TunnelOptionsT>(value));
86 return *this;
87 }
89
91
97 inline bool GetDryRun() const { return m_dryRun; }
98 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 inline void SetDryRun(bool value) {
100 m_dryRunHasBeenSet = true;
101 m_dryRun = value;
102 }
104 SetDryRun(value);
105 return *this;
106 }
108
110
115 inline bool GetSkipTunnelReplacement() const { return m_skipTunnelReplacement; }
116 inline bool SkipTunnelReplacementHasBeenSet() const { return m_skipTunnelReplacementHasBeenSet; }
117 inline void SetSkipTunnelReplacement(bool value) {
118 m_skipTunnelReplacementHasBeenSet = true;
119 m_skipTunnelReplacement = value;
120 }
123 return *this;
124 }
126
128
133 inline const Aws::String& GetPreSharedKeyStorage() const { return m_preSharedKeyStorage; }
134 inline bool PreSharedKeyStorageHasBeenSet() const { return m_preSharedKeyStorageHasBeenSet; }
135 template <typename PreSharedKeyStorageT = Aws::String>
136 void SetPreSharedKeyStorage(PreSharedKeyStorageT&& value) {
137 m_preSharedKeyStorageHasBeenSet = true;
138 m_preSharedKeyStorage = std::forward<PreSharedKeyStorageT>(value);
139 }
140 template <typename PreSharedKeyStorageT = Aws::String>
142 SetPreSharedKeyStorage(std::forward<PreSharedKeyStorageT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_vpnConnectionId;
148
149 Aws::String m_vpnTunnelOutsideIpAddress;
150
152
153 bool m_dryRun{false};
154
155 bool m_skipTunnelReplacement{false};
156
157 Aws::String m_preSharedKeyStorage;
158 bool m_vpnConnectionIdHasBeenSet = false;
159 bool m_vpnTunnelOutsideIpAddressHasBeenSet = false;
160 bool m_tunnelOptionsHasBeenSet = false;
161 bool m_dryRunHasBeenSet = false;
162 bool m_skipTunnelReplacementHasBeenSet = false;
163 bool m_preSharedKeyStorageHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EC2
168} // 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