AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetachVpnGatewayRequest.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
25 {
26 public:
27 AWS_EC2_API DetachVpnGatewayRequest() = default;
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 "DetachVpnGateway"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetVpcId() const { return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 template<typename VpcIdT = Aws::String>
49 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
50 template<typename VpcIdT = Aws::String>
51 DetachVpnGatewayRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
59 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
60 template<typename VpnGatewayIdT = Aws::String>
61 void SetVpnGatewayId(VpnGatewayIdT&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::forward<VpnGatewayIdT>(value); }
62 template<typename VpnGatewayIdT = Aws::String>
63 DetachVpnGatewayRequest& WithVpnGatewayId(VpnGatewayIdT&& value) { SetVpnGatewayId(std::forward<VpnGatewayIdT>(value)); return *this;}
65
67
73 inline bool GetDryRun() const { return m_dryRun; }
74 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
75 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
76 inline DetachVpnGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
78 private:
79
80 Aws::String m_vpcId;
81 bool m_vpcIdHasBeenSet = false;
82
83 Aws::String m_vpnGatewayId;
84 bool m_vpnGatewayIdHasBeenSet = false;
85
86 bool m_dryRun{false};
87 bool m_dryRunHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DetachVpnGatewayRequest & WithDryRun(bool value)
AWS_EC2_API DetachVpnGatewayRequest()=default
DetachVpnGatewayRequest & WithVpcId(VpcIdT &&value)
DetachVpnGatewayRequest & WithVpnGatewayId(VpnGatewayIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String