AWS SDK for C++  1.9.15
AWS SDK for C++
ModifyVpnTunnelOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
44 
48  inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
49 
53  inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
54 
58  inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
59 
63  inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
64 
68  inline ModifyVpnTunnelOptionsRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
69 
73  inline ModifyVpnTunnelOptionsRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
74 
78  inline ModifyVpnTunnelOptionsRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
79 
80 
84  inline const Aws::String& GetVpnTunnelOutsideIpAddress() const{ return m_vpnTunnelOutsideIpAddress; }
85 
89  inline bool VpnTunnelOutsideIpAddressHasBeenSet() const { return m_vpnTunnelOutsideIpAddressHasBeenSet; }
90 
94  inline void SetVpnTunnelOutsideIpAddress(const Aws::String& value) { m_vpnTunnelOutsideIpAddressHasBeenSet = true; m_vpnTunnelOutsideIpAddress = value; }
95 
99  inline void SetVpnTunnelOutsideIpAddress(Aws::String&& value) { m_vpnTunnelOutsideIpAddressHasBeenSet = true; m_vpnTunnelOutsideIpAddress = std::move(value); }
100 
104  inline void SetVpnTunnelOutsideIpAddress(const char* value) { m_vpnTunnelOutsideIpAddressHasBeenSet = true; m_vpnTunnelOutsideIpAddress.assign(value); }
105 
109  inline ModifyVpnTunnelOptionsRequest& WithVpnTunnelOutsideIpAddress(const Aws::String& value) { SetVpnTunnelOutsideIpAddress(value); return *this;}
110 
114  inline ModifyVpnTunnelOptionsRequest& WithVpnTunnelOutsideIpAddress(Aws::String&& value) { SetVpnTunnelOutsideIpAddress(std::move(value)); return *this;}
115 
119  inline ModifyVpnTunnelOptionsRequest& WithVpnTunnelOutsideIpAddress(const char* value) { SetVpnTunnelOutsideIpAddress(value); return *this;}
120 
121 
125  inline const ModifyVpnTunnelOptionsSpecification& GetTunnelOptions() const{ return m_tunnelOptions; }
126 
130  inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; }
131 
135  inline void SetTunnelOptions(const ModifyVpnTunnelOptionsSpecification& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = value; }
136 
140  inline void SetTunnelOptions(ModifyVpnTunnelOptionsSpecification&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::move(value); }
141 
145  inline ModifyVpnTunnelOptionsRequest& WithTunnelOptions(const ModifyVpnTunnelOptionsSpecification& value) { SetTunnelOptions(value); return *this;}
146 
150  inline ModifyVpnTunnelOptionsRequest& WithTunnelOptions(ModifyVpnTunnelOptionsSpecification&& value) { SetTunnelOptions(std::move(value)); return *this;}
151 
152 
159  inline bool GetDryRun() const{ return m_dryRun; }
160 
167  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
168 
175  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
176 
183  inline ModifyVpnTunnelOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
184 
185  private:
186 
187  Aws::String m_vpnConnectionId;
188  bool m_vpnConnectionIdHasBeenSet;
189 
190  Aws::String m_vpnTunnelOutsideIpAddress;
191  bool m_vpnTunnelOutsideIpAddressHasBeenSet;
192 
193  ModifyVpnTunnelOptionsSpecification m_tunnelOptions;
194  bool m_tunnelOptionsHasBeenSet;
195 
196  bool m_dryRun;
197  bool m_dryRunHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace EC2
202 } // namespace Aws
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnConnectionId
ModifyVpnTunnelOptionsRequest & WithVpnConnectionId(const char *value)
Definition: ModifyVpnTunnelOptionsRequest.h:78
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnTunnelOptionsRequest.h:53
Aws::EC2::Model::ModifyVpnTunnelOptionsSpecification
Definition: ModifyVpnTunnelOptionsSpecification.h:41
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnTunnelOutsideIpAddress
ModifyVpnTunnelOptionsRequest & WithVpnTunnelOutsideIpAddress(const char *value)
Definition: ModifyVpnTunnelOptionsRequest.h:119
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(const char *value)
Definition: ModifyVpnTunnelOptionsRequest.h:63
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnTunnelOutsideIpAddress
void SetVpnTunnelOutsideIpAddress(const char *value)
Definition: ModifyVpnTunnelOptionsRequest.h:104
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVpnTunnelOptionsRequest.h:159
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::GetVpnConnectionId
const Aws::String & GetVpnConnectionId() const
Definition: ModifyVpnTunnelOptionsRequest.h:43
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::GetTunnelOptions
const ModifyVpnTunnelOptionsSpecification & GetTunnelOptions() const
Definition: ModifyVpnTunnelOptionsRequest.h:125
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpnTunnelOptionsRequest.h:31
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest
Definition: ModifyVpnTunnelOptionsRequest.h:23
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVpnTunnelOptionsRequest.h:167
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnConnectionId
ModifyVpnTunnelOptionsRequest & WithVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnTunnelOptionsRequest.h:68
ModifyVpnTunnelOptionsSpecification.h
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithDryRun
ModifyVpnTunnelOptionsRequest & WithDryRun(bool value)
Definition: ModifyVpnTunnelOptionsRequest.h:183
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnTunnelOutsideIpAddress
void SetVpnTunnelOutsideIpAddress(const Aws::String &value)
Definition: ModifyVpnTunnelOptionsRequest.h:94
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:58
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnTunnelOutsideIpAddress
ModifyVpnTunnelOptionsRequest & WithVpnTunnelOutsideIpAddress(const Aws::String &value)
Definition: ModifyVpnTunnelOptionsRequest.h:109
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetVpnTunnelOutsideIpAddress
void SetVpnTunnelOutsideIpAddress(Aws::String &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:99
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::VpnConnectionIdHasBeenSet
bool VpnConnectionIdHasBeenSet() const
Definition: ModifyVpnTunnelOptionsRequest.h:48
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnConnectionId
ModifyVpnTunnelOptionsRequest & WithVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:73
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::TunnelOptionsHasBeenSet
bool TunnelOptionsHasBeenSet() const
Definition: ModifyVpnTunnelOptionsRequest.h:130
EC2Request.h
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetTunnelOptions
void SetTunnelOptions(ModifyVpnTunnelOptionsSpecification &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:140
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithTunnelOptions
ModifyVpnTunnelOptionsRequest & WithTunnelOptions(ModifyVpnTunnelOptionsSpecification &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:150
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::VpnTunnelOutsideIpAddressHasBeenSet
bool VpnTunnelOutsideIpAddressHasBeenSet() const
Definition: ModifyVpnTunnelOptionsRequest.h:89
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVpnTunnelOptionsRequest.h:175
AWSString.h
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithVpnTunnelOutsideIpAddress
ModifyVpnTunnelOptionsRequest & WithVpnTunnelOutsideIpAddress(Aws::String &&value)
Definition: ModifyVpnTunnelOptionsRequest.h:114
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::SetTunnelOptions
void SetTunnelOptions(const ModifyVpnTunnelOptionsSpecification &value)
Definition: ModifyVpnTunnelOptionsRequest.h:135
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::WithTunnelOptions
ModifyVpnTunnelOptionsRequest & WithTunnelOptions(const ModifyVpnTunnelOptionsSpecification &value)
Definition: ModifyVpnTunnelOptionsRequest.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::ModifyVpnTunnelOptionsRequest
ModifyVpnTunnelOptionsRequest()
Aws::EC2::Model::ModifyVpnTunnelOptionsRequest::GetVpnTunnelOutsideIpAddress
const Aws::String & GetVpnTunnelOutsideIpAddress() const
Definition: ModifyVpnTunnelOptionsRequest.h:84