AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttachVpnGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
23 public:
24 AWS_EC2_API AttachVpnGatewayRequest() = default;
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 "AttachVpnGateway"; }
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:
39
42 inline const Aws::String& GetVpcId() const { return m_vpcId; }
43 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
44 template <typename VpcIdT = Aws::String>
45 void SetVpcId(VpcIdT&& value) {
46 m_vpcIdHasBeenSet = true;
47 m_vpcId = std::forward<VpcIdT>(value);
48 }
49 template <typename VpcIdT = Aws::String>
51 SetVpcId(std::forward<VpcIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
61 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
62 template <typename VpnGatewayIdT = Aws::String>
63 void SetVpnGatewayId(VpnGatewayIdT&& value) {
64 m_vpnGatewayIdHasBeenSet = true;
65 m_vpnGatewayId = std::forward<VpnGatewayIdT>(value);
66 }
67 template <typename VpnGatewayIdT = Aws::String>
68 AttachVpnGatewayRequest& WithVpnGatewayId(VpnGatewayIdT&& value) {
69 SetVpnGatewayId(std::forward<VpnGatewayIdT>(value));
70 return *this;
71 }
73
75
81 inline bool GetDryRun() const { return m_dryRun; }
82 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
83 inline void SetDryRun(bool value) {
84 m_dryRunHasBeenSet = true;
85 m_dryRun = value;
86 }
87 inline AttachVpnGatewayRequest& WithDryRun(bool value) {
88 SetDryRun(value);
89 return *this;
90 }
92 private:
93 Aws::String m_vpcId;
94
95 Aws::String m_vpnGatewayId;
96
97 bool m_dryRun{false};
98 bool m_vpcIdHasBeenSet = false;
99 bool m_vpnGatewayIdHasBeenSet = false;
100 bool m_dryRunHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace EC2
105} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API AttachVpnGatewayRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
AttachVpnGatewayRequest & WithVpnGatewayId(VpnGatewayIdT &&value)
AttachVpnGatewayRequest & WithDryRun(bool value)
AttachVpnGatewayRequest & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String