AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyVpnConnectionRequest.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 <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace 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 "ModifyVpnConnection"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
44 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
45 inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
46 inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
47 inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
49 inline ModifyVpnConnectionRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
50 inline ModifyVpnConnectionRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
52
54
57 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
58 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
59 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
60 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
61 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
63 inline ModifyVpnConnectionRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
64 inline ModifyVpnConnectionRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
66
68
71 inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
72 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
73 inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
74 inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
75 inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
77 inline ModifyVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
78 inline ModifyVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
80
82
86 inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
87 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
88 inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
89 inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
90 inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
91 inline ModifyVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
92 inline ModifyVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
93 inline ModifyVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
95
97
103 inline bool GetDryRun() const{ return m_dryRun; }
104 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
105 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
106 inline ModifyVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
108 private:
109
110 Aws::String m_vpnConnectionId;
111 bool m_vpnConnectionIdHasBeenSet = false;
112
113 Aws::String m_transitGatewayId;
114 bool m_transitGatewayIdHasBeenSet = false;
115
116 Aws::String m_customerGatewayId;
117 bool m_customerGatewayIdHasBeenSet = false;
118
119 Aws::String m_vpnGatewayId;
120 bool m_vpnGatewayIdHasBeenSet = false;
121
122 bool m_dryRun;
123 bool m_dryRunHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
ModifyVpnConnectionRequest & WithVpnConnectionId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ModifyVpnConnectionRequest & WithVpnConnectionId(const char *value)
ModifyVpnConnectionRequest & WithVpnConnectionId(Aws::String &&value)
ModifyVpnConnectionRequest & WithTransitGatewayId(const char *value)
ModifyVpnConnectionRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyVpnConnectionRequest & WithTransitGatewayId(Aws::String &&value)
ModifyVpnConnectionRequest & WithVpnGatewayId(const Aws::String &value)
ModifyVpnConnectionRequest & WithCustomerGatewayId(const char *value)
ModifyVpnConnectionRequest & WithCustomerGatewayId(Aws::String &&value)
ModifyVpnConnectionRequest & WithVpnGatewayId(const char *value)
ModifyVpnConnectionRequest & WithCustomerGatewayId(const Aws::String &value)
ModifyVpnConnectionRequest & WithVpnGatewayId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyVpnConnectionRequest & WithTransitGatewayId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String