AWS SDK for C++  1.9.15
AWS SDK for C++
ModifyVpnConnectionOptionsRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ModifyVpnConnectionOptions"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
43 
47  inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
48 
52  inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
53 
57  inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
58 
62  inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
63 
67  inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
68 
72  inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
73 
77  inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
78 
79 
84  inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; }
85 
90  inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; }
91 
96  inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; }
97 
102  inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); }
103 
108  inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); }
109 
114  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(const Aws::String& value) { SetLocalIpv4NetworkCidr(value); return *this;}
115 
120  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(Aws::String&& value) { SetLocalIpv4NetworkCidr(std::move(value)); return *this;}
121 
126  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(const char* value) { SetLocalIpv4NetworkCidr(value); return *this;}
127 
128 
133  inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; }
134 
139  inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; }
140 
145  inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; }
146 
151  inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); }
152 
157  inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); }
158 
163  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(const Aws::String& value) { SetRemoteIpv4NetworkCidr(value); return *this;}
164 
169  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(Aws::String&& value) { SetRemoteIpv4NetworkCidr(std::move(value)); return *this;}
170 
175  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(const char* value) { SetRemoteIpv4NetworkCidr(value); return *this;}
176 
177 
182  inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; }
183 
188  inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; }
189 
194  inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; }
195 
200  inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); }
201 
206  inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); }
207 
212  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(const Aws::String& value) { SetLocalIpv6NetworkCidr(value); return *this;}
213 
218  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(Aws::String&& value) { SetLocalIpv6NetworkCidr(std::move(value)); return *this;}
219 
224  inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(const char* value) { SetLocalIpv6NetworkCidr(value); return *this;}
225 
226 
231  inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; }
232 
237  inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; }
238 
243  inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; }
244 
249  inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); }
250 
255  inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); }
256 
261  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(const Aws::String& value) { SetRemoteIpv6NetworkCidr(value); return *this;}
262 
267  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(Aws::String&& value) { SetRemoteIpv6NetworkCidr(std::move(value)); return *this;}
268 
273  inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(const char* value) { SetRemoteIpv6NetworkCidr(value); return *this;}
274 
275 
282  inline bool GetDryRun() const{ return m_dryRun; }
283 
290  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
291 
298  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
299 
306  inline ModifyVpnConnectionOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
307 
308  private:
309 
310  Aws::String m_vpnConnectionId;
311  bool m_vpnConnectionIdHasBeenSet;
312 
313  Aws::String m_localIpv4NetworkCidr;
314  bool m_localIpv4NetworkCidrHasBeenSet;
315 
316  Aws::String m_remoteIpv4NetworkCidr;
317  bool m_remoteIpv4NetworkCidrHasBeenSet;
318 
319  Aws::String m_localIpv6NetworkCidr;
320  bool m_localIpv6NetworkCidrHasBeenSet;
321 
322  Aws::String m_remoteIpv6NetworkCidr;
323  bool m_remoteIpv6NetworkCidrHasBeenSet;
324 
325  bool m_dryRun;
326  bool m_dryRunHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace EC2
331 } // namespace Aws
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:62
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:290
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv6NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:273
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:52
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::LocalIpv6NetworkCidrHasBeenSet
bool LocalIpv6NetworkCidrHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:188
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithVpnConnectionId
ModifyVpnConnectionOptionsRequest & WithVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:67
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:96
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:200
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:145
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithVpnConnectionId
ModifyVpnConnectionOptionsRequest & WithVpnConnectionId(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:77
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv6NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:224
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::RemoteIpv6NetworkCidrHasBeenSet
bool RemoteIpv6NetworkCidrHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:237
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::ModifyVpnConnectionOptionsRequest
ModifyVpnConnectionOptionsRequest()
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:157
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::VpnConnectionIdHasBeenSet
bool VpnConnectionIdHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:47
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv4NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:175
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetRemoteIpv4NetworkCidr
const Aws::String & GetRemoteIpv4NetworkCidr() const
Definition: ModifyVpnConnectionOptionsRequest.h:133
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVpnConnectionOptionsRequest.h:298
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetVpnConnectionId
const Aws::String & GetVpnConnectionId() const
Definition: ModifyVpnConnectionOptionsRequest.h:42
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv4NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:114
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv4NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:120
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:243
EC2Request.h
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:249
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetLocalIpv4NetworkCidr
const Aws::String & GetLocalIpv4NetworkCidr() const
Definition: ModifyVpnConnectionOptionsRequest.h:84
AWSString.h
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpnConnectionOptionsRequest.h:30
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv6NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:267
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:108
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest
Definition: ModifyVpnConnectionOptionsRequest.h:22
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv4NetworkCidr
void SetLocalIpv4NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:102
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetRemoteIpv6NetworkCidr
const Aws::String & GetRemoteIpv6NetworkCidr() const
Definition: ModifyVpnConnectionOptionsRequest.h:231
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVpnConnectionOptionsRequest.h:282
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv6NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:261
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:194
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv4NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::GetLocalIpv6NetworkCidr
const Aws::String & GetLocalIpv6NetworkCidr() const
Definition: ModifyVpnConnectionOptionsRequest.h:182
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetLocalIpv6NetworkCidr
void SetLocalIpv6NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:206
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithRemoteIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithRemoteIpv4NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:169
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv6NetworkCidr
void SetRemoteIpv6NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:255
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithVpnConnectionId
ModifyVpnConnectionOptionsRequest & WithVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:72
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::RemoteIpv4NetworkCidrHasBeenSet
bool RemoteIpv4NetworkCidrHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:139
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithDryRun
ModifyVpnConnectionOptionsRequest & WithDryRun(bool value)
Definition: ModifyVpnConnectionOptionsRequest.h:306
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv6NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:218
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv4NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv4NetworkCidr(const char *value)
Definition: ModifyVpnConnectionOptionsRequest.h:126
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::LocalIpv4NetworkCidrHasBeenSet
bool LocalIpv4NetworkCidrHasBeenSet() const
Definition: ModifyVpnConnectionOptionsRequest.h:90
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetVpnConnectionId
void SetVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:57
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::SetRemoteIpv4NetworkCidr
void SetRemoteIpv4NetworkCidr(Aws::String &&value)
Definition: ModifyVpnConnectionOptionsRequest.h:151
Aws::EC2::Model::ModifyVpnConnectionOptionsRequest::WithLocalIpv6NetworkCidr
ModifyVpnConnectionOptionsRequest & WithLocalIpv6NetworkCidr(const Aws::String &value)
Definition: ModifyVpnConnectionOptionsRequest.h:212