AWS SDK for C++  1.9.125
AWS SDK for C++
ModifyVpnConnectionRequest.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 "ModifyVpnConnection"; }
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 ModifyVpnConnectionRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
68 
72  inline ModifyVpnConnectionRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
73 
77  inline ModifyVpnConnectionRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
78 
79 
83  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
84 
88  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
89 
93  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
94 
98  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
99 
103  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
104 
108  inline ModifyVpnConnectionRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
109 
113  inline ModifyVpnConnectionRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
114 
118  inline ModifyVpnConnectionRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
119 
120 
124  inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
125 
129  inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
130 
134  inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
135 
139  inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
140 
144  inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
145 
149  inline ModifyVpnConnectionRequest& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
150 
154  inline ModifyVpnConnectionRequest& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
155 
159  inline ModifyVpnConnectionRequest& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
160 
161 
166  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
167 
172  inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
173 
178  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
179 
184  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
185 
190  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
191 
196  inline ModifyVpnConnectionRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
197 
202  inline ModifyVpnConnectionRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
203 
208  inline ModifyVpnConnectionRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
209 
210 
217  inline bool GetDryRun() const{ return m_dryRun; }
218 
225  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
226 
233  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
234 
241  inline ModifyVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
242 
243  private:
244 
245  Aws::String m_vpnConnectionId;
246  bool m_vpnConnectionIdHasBeenSet;
247 
248  Aws::String m_transitGatewayId;
249  bool m_transitGatewayIdHasBeenSet;
250 
251  Aws::String m_customerGatewayId;
252  bool m_customerGatewayIdHasBeenSet;
253 
254  Aws::String m_vpnGatewayId;
255  bool m_vpnGatewayIdHasBeenSet;
256 
257  bool m_dryRun;
258  bool m_dryRunHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace EC2
263 } // namespace Aws
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnGatewayId
ModifyVpnConnectionRequest & WithVpnGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:202
Aws::EC2::Model::ModifyVpnConnectionRequest::WithTransitGatewayId
ModifyVpnConnectionRequest & WithTransitGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:108
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyVpnConnectionRequest::WithDryRun
ModifyVpnConnectionRequest & WithDryRun(bool value)
Definition: ModifyVpnConnectionRequest.h:241
Aws::EC2::Model::ModifyVpnConnectionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyVpnConnectionRequest.h:225
Aws::EC2::Model::ModifyVpnConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyVpnConnectionRequest.h:30
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:184
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnGatewayId
ModifyVpnConnectionRequest & WithVpnGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:196
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnGatewayId
ModifyVpnConnectionRequest & WithVpnGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:208
Aws::EC2::Model::ModifyVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:103
Aws::EC2::Model::ModifyVpnConnectionRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyVpnConnectionRequest.h:217
Aws::EC2::Model::ModifyVpnConnectionRequest::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: ModifyVpnConnectionRequest.h:88
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnConnectionId
ModifyVpnConnectionRequest & WithVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:72
Aws::EC2::Model::ModifyVpnConnectionRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyVpnConnectionRequest.h:233
Aws::EC2::Model::ModifyVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:98
Aws::EC2::Model::ModifyVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:134
Aws::EC2::Model::ModifyVpnConnectionRequest::VpnConnectionIdHasBeenSet
bool VpnConnectionIdHasBeenSet() const
Definition: ModifyVpnConnectionRequest.h:47
Aws::EC2::Model::ModifyVpnConnectionRequest::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:93
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(const char *value)
Definition: ModifyVpnConnectionRequest.h:62
Aws::EC2::Model::ModifyVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:139
Aws::EC2::Model::ModifyVpnConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyVpnConnectionRequest::ModifyVpnConnectionRequest
ModifyVpnConnectionRequest()
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:52
EC2Request.h
Aws::EC2::Model::ModifyVpnConnectionRequest::WithCustomerGatewayId
ModifyVpnConnectionRequest & WithCustomerGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:149
Aws::EC2::Model::ModifyVpnConnectionRequest::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: ModifyVpnConnectionRequest.h:83
Aws::EC2::Model::ModifyVpnConnectionRequest
Definition: ModifyVpnConnectionRequest.h:22
AWSString.h
Aws::EC2::Model::ModifyVpnConnectionRequest::WithCustomerGatewayId
ModifyVpnConnectionRequest & WithCustomerGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:159
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnConnectionId
ModifyVpnConnectionRequest & WithVpnConnectionId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:67
Aws::EC2::Model::ModifyVpnConnectionRequest::VpnGatewayIdHasBeenSet
bool VpnGatewayIdHasBeenSet() const
Definition: ModifyVpnConnectionRequest.h:172
Aws::EC2::Model::ModifyVpnConnectionRequest::WithCustomerGatewayId
ModifyVpnConnectionRequest & WithCustomerGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:154
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:190
Aws::EC2::Model::ModifyVpnConnectionRequest::SetCustomerGatewayId
void SetCustomerGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:144
Aws::EC2::Model::ModifyVpnConnectionRequest::GetCustomerGatewayId
const Aws::String & GetCustomerGatewayId() const
Definition: ModifyVpnConnectionRequest.h:124
Aws::EC2::Model::ModifyVpnConnectionRequest::CustomerGatewayIdHasBeenSet
bool CustomerGatewayIdHasBeenSet() const
Definition: ModifyVpnConnectionRequest.h:129
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnConnectionId
void SetVpnConnectionId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyVpnConnectionRequest::WithTransitGatewayId
ModifyVpnConnectionRequest & WithTransitGatewayId(const char *value)
Definition: ModifyVpnConnectionRequest.h:118
Aws::EC2::Model::ModifyVpnConnectionRequest::GetVpnConnectionId
const Aws::String & GetVpnConnectionId() const
Definition: ModifyVpnConnectionRequest.h:42
Aws::EC2::Model::ModifyVpnConnectionRequest::WithVpnConnectionId
ModifyVpnConnectionRequest & WithVpnConnectionId(const char *value)
Definition: ModifyVpnConnectionRequest.h:77
Aws::EC2::Model::ModifyVpnConnectionRequest::SetVpnGatewayId
void SetVpnGatewayId(const Aws::String &value)
Definition: ModifyVpnConnectionRequest.h:178
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyVpnConnectionRequest::GetVpnGatewayId
const Aws::String & GetVpnGatewayId() const
Definition: ModifyVpnConnectionRequest.h:166
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::ModifyVpnConnectionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyVpnConnectionRequest::WithTransitGatewayId
ModifyVpnConnectionRequest & WithTransitGatewayId(Aws::String &&value)
Definition: ModifyVpnConnectionRequest.h:113