AWS SDK for C++  1.9.73
AWS SDK for C++
AttachVpnGatewayRequest.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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AttachVpnGateway"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
46 
50  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
51 
55  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
56 
60  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
61 
65  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
66 
70  inline AttachVpnGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
71 
75  inline AttachVpnGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
76 
80  inline AttachVpnGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
81 
82 
86  inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
87 
91  inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
92 
96  inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
97 
101  inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
102 
106  inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
107 
111  inline AttachVpnGatewayRequest& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
112 
116  inline AttachVpnGatewayRequest& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
117 
121  inline AttachVpnGatewayRequest& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
122 
123 
130  inline bool GetDryRun() const{ return m_dryRun; }
131 
138  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
139 
146  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
147 
154  inline AttachVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
155 
156  private:
157 
158  Aws::String m_vpcId;
159  bool m_vpcIdHasBeenSet;
160 
161  Aws::String m_vpnGatewayId;
162  bool m_vpnGatewayIdHasBeenSet;
163 
164  bool m_dryRun;
165  bool m_dryRunHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace EC2
170 } // namespace Aws
Aws::EC2::Model::AttachVpnGatewayRequest::GetVpnGatewayId
const Aws::String & GetVpnGatewayId() const
Definition: AttachVpnGatewayRequest.h:86
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AttachVpnGatewayRequest::VpnGatewayIdHasBeenSet
bool VpnGatewayIdHasBeenSet() const
Definition: AttachVpnGatewayRequest.h:91
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpcId
void SetVpcId(const char *value)
Definition: AttachVpnGatewayRequest.h:65
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpnGatewayId
AttachVpnGatewayRequest & WithVpnGatewayId(const Aws::String &value)
Definition: AttachVpnGatewayRequest.h:111
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(const char *value)
Definition: AttachVpnGatewayRequest.h:106
Aws::EC2::Model::AttachVpnGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AttachVpnGatewayRequest::AttachVpnGatewayRequest
AttachVpnGatewayRequest()
Aws::EC2::Model::AttachVpnGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AttachVpnGatewayRequest.h:138
Aws::EC2::Model::AttachVpnGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachVpnGatewayRequest.h:33
Aws::EC2::Model::AttachVpnGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: AttachVpnGatewayRequest.h:55
Aws::EC2::Model::AttachVpnGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: AttachVpnGatewayRequest.h:130
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpcId
AttachVpnGatewayRequest & WithVpcId(const char *value)
Definition: AttachVpnGatewayRequest.h:80
Aws::EC2::Model::AttachVpnGatewayRequest::WithDryRun
AttachVpnGatewayRequest & WithDryRun(bool value)
Definition: AttachVpnGatewayRequest.h:154
EC2Request.h
Aws::EC2::Model::AttachVpnGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: AttachVpnGatewayRequest.h:146
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpcId
AttachVpnGatewayRequest & WithVpcId(const Aws::String &value)
Definition: AttachVpnGatewayRequest.h:70
AWSString.h
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(const Aws::String &value)
Definition: AttachVpnGatewayRequest.h:96
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpnGatewayId
void SetVpnGatewayId(Aws::String &&value)
Definition: AttachVpnGatewayRequest.h:101
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpnGatewayId
AttachVpnGatewayRequest & WithVpnGatewayId(Aws::String &&value)
Definition: AttachVpnGatewayRequest.h:116
Aws::EC2::Model::AttachVpnGatewayRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: AttachVpnGatewayRequest.h:60
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpnGatewayId
AttachVpnGatewayRequest & WithVpnGatewayId(const char *value)
Definition: AttachVpnGatewayRequest.h:121
Aws::EC2::Model::AttachVpnGatewayRequest
Definition: AttachVpnGatewayRequest.h:25
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
Aws::EC2::Model::AttachVpnGatewayRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: AttachVpnGatewayRequest.h:45
Aws::EC2::Model::AttachVpnGatewayRequest::WithVpcId
AttachVpnGatewayRequest & WithVpcId(Aws::String &&value)
Definition: AttachVpnGatewayRequest.h:75
EC2_EXPORTS.h
Aws::EC2::Model::AttachVpnGatewayRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: AttachVpnGatewayRequest.h:50