AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateVpnConnectionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/VpnConnectionOptionsSpecification.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_EC2_API CreateVpnConnectionRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateVpnConnection"; }
38
39 AWS_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetCustomerGatewayId() const { return m_customerGatewayId; }
51 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
52 template<typename CustomerGatewayIdT = Aws::String>
53 void SetCustomerGatewayId(CustomerGatewayIdT&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::forward<CustomerGatewayIdT>(value); }
54 template<typename CustomerGatewayIdT = Aws::String>
55 CreateVpnConnectionRequest& WithCustomerGatewayId(CustomerGatewayIdT&& value) { SetCustomerGatewayId(std::forward<CustomerGatewayIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 template<typename TypeT = Aws::String>
65 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
66 template<typename TypeT = Aws::String>
67 CreateVpnConnectionRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
69
71
75 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
76 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
77 template<typename VpnGatewayIdT = Aws::String>
78 void SetVpnGatewayId(VpnGatewayIdT&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::forward<VpnGatewayIdT>(value); }
79 template<typename VpnGatewayIdT = Aws::String>
80 CreateVpnConnectionRequest& WithVpnGatewayId(VpnGatewayIdT&& value) { SetVpnGatewayId(std::forward<VpnGatewayIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
89 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
90 template<typename TransitGatewayIdT = Aws::String>
91 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
92 template<typename TransitGatewayIdT = Aws::String>
93 CreateVpnConnectionRequest& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
95
97
100 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
101 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
102 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
103 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
104 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
105 CreateVpnConnectionRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
106 template<typename TagSpecificationsT = TagSpecification>
107 CreateVpnConnectionRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
109
111
116 inline const Aws::String& GetPreSharedKeyStorage() const { return m_preSharedKeyStorage; }
117 inline bool PreSharedKeyStorageHasBeenSet() const { return m_preSharedKeyStorageHasBeenSet; }
118 template<typename PreSharedKeyStorageT = Aws::String>
119 void SetPreSharedKeyStorage(PreSharedKeyStorageT&& value) { m_preSharedKeyStorageHasBeenSet = true; m_preSharedKeyStorage = std::forward<PreSharedKeyStorageT>(value); }
120 template<typename PreSharedKeyStorageT = Aws::String>
121 CreateVpnConnectionRequest& WithPreSharedKeyStorage(PreSharedKeyStorageT&& value) { SetPreSharedKeyStorage(std::forward<PreSharedKeyStorageT>(value)); return *this;}
123
125
131 inline bool GetDryRun() const { return m_dryRun; }
132 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
133 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
134 inline CreateVpnConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
136
138
141 inline const VpnConnectionOptionsSpecification& GetOptions() const { return m_options; }
142 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
143 template<typename OptionsT = VpnConnectionOptionsSpecification>
144 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
145 template<typename OptionsT = VpnConnectionOptionsSpecification>
146 CreateVpnConnectionRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
148 private:
149
150 Aws::String m_customerGatewayId;
151 bool m_customerGatewayIdHasBeenSet = false;
152
153 Aws::String m_type;
154 bool m_typeHasBeenSet = false;
155
156 Aws::String m_vpnGatewayId;
157 bool m_vpnGatewayIdHasBeenSet = false;
158
159 Aws::String m_transitGatewayId;
160 bool m_transitGatewayIdHasBeenSet = false;
161
162 Aws::Vector<TagSpecification> m_tagSpecifications;
163 bool m_tagSpecificationsHasBeenSet = false;
164
165 Aws::String m_preSharedKeyStorage;
166 bool m_preSharedKeyStorageHasBeenSet = false;
167
168 bool m_dryRun{false};
169 bool m_dryRunHasBeenSet = false;
170
171 VpnConnectionOptionsSpecification m_options;
172 bool m_optionsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace EC2
177} // namespace Aws
CreateVpnConnectionRequest & WithCustomerGatewayId(CustomerGatewayIdT &&value)
CreateVpnConnectionRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetPreSharedKeyStorage(PreSharedKeyStorageT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateVpnConnectionRequest & WithType(TypeT &&value)
CreateVpnConnectionRequest & WithDryRun(bool value)
CreateVpnConnectionRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API CreateVpnConnectionRequest()=default
CreateVpnConnectionRequest & WithOptions(OptionsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateVpnConnectionRequest & WithVpnGatewayId(VpnGatewayIdT &&value)
CreateVpnConnectionRequest & WithPreSharedKeyStorage(PreSharedKeyStorageT &&value)
virtual const char * GetServiceRequestName() const override
const VpnConnectionOptionsSpecification & GetOptions() const
CreateVpnConnectionRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetCustomerGatewayId(CustomerGatewayIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector