AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyVpnConnectionRequest.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
20 public:
21 AWS_EC2_API ModifyVpnConnectionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ModifyVpnConnection"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetVpnConnectionId() const { return m_vpnConnectionId; }
40 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
41 template <typename VpnConnectionIdT = Aws::String>
42 void SetVpnConnectionId(VpnConnectionIdT&& value) {
43 m_vpnConnectionIdHasBeenSet = true;
44 m_vpnConnectionId = std::forward<VpnConnectionIdT>(value);
45 }
46 template <typename VpnConnectionIdT = Aws::String>
48 SetVpnConnectionId(std::forward<VpnConnectionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
58 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
59 template <typename TransitGatewayIdT = Aws::String>
60 void SetTransitGatewayId(TransitGatewayIdT&& value) {
61 m_transitGatewayIdHasBeenSet = true;
62 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
63 }
64 template <typename TransitGatewayIdT = Aws::String>
66 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCustomerGatewayId() const { return m_customerGatewayId; }
76 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
77 template <typename CustomerGatewayIdT = Aws::String>
78 void SetCustomerGatewayId(CustomerGatewayIdT&& value) {
79 m_customerGatewayIdHasBeenSet = true;
80 m_customerGatewayId = std::forward<CustomerGatewayIdT>(value);
81 }
82 template <typename CustomerGatewayIdT = Aws::String>
84 SetCustomerGatewayId(std::forward<CustomerGatewayIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
95 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
96 template <typename VpnGatewayIdT = Aws::String>
97 void SetVpnGatewayId(VpnGatewayIdT&& value) {
98 m_vpnGatewayIdHasBeenSet = true;
99 m_vpnGatewayId = std::forward<VpnGatewayIdT>(value);
100 }
101 template <typename VpnGatewayIdT = Aws::String>
103 SetVpnGatewayId(std::forward<VpnGatewayIdT>(value));
104 return *this;
105 }
107
109
115 inline bool GetDryRun() const { return m_dryRun; }
116 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
117 inline void SetDryRun(bool value) {
118 m_dryRunHasBeenSet = true;
119 m_dryRun = value;
120 }
122 SetDryRun(value);
123 return *this;
124 }
126 private:
127 Aws::String m_vpnConnectionId;
128
129 Aws::String m_transitGatewayId;
130
131 Aws::String m_customerGatewayId;
132
133 Aws::String m_vpnGatewayId;
134
135 bool m_dryRun{false};
136 bool m_vpnConnectionIdHasBeenSet = false;
137 bool m_transitGatewayIdHasBeenSet = false;
138 bool m_customerGatewayIdHasBeenSet = false;
139 bool m_vpnGatewayIdHasBeenSet = false;
140 bool m_dryRunHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
virtual const char * GetServiceRequestName() const override
ModifyVpnConnectionRequest & WithDryRun(bool value)
ModifyVpnConnectionRequest & WithCustomerGatewayId(CustomerGatewayIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API ModifyVpnConnectionRequest()=default
ModifyVpnConnectionRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
ModifyVpnConnectionRequest & WithVpnConnectionId(VpnConnectionIdT &&value)
ModifyVpnConnectionRequest & WithVpnGatewayId(VpnGatewayIdT &&value)
void SetCustomerGatewayId(CustomerGatewayIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String