AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpnConnection.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/GatewayAssociationState.h>
11#include <aws/ec2/model/VpnConnectionOptions.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/VpnState.h>
14#include <aws/ec2/model/GatewayType.h>
15#include <aws/ec2/model/VpnStaticRoute.h>
16#include <aws/ec2/model/Tag.h>
17#include <aws/ec2/model/VgwTelemetry.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace EC2
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_EC2_API VpnConnection();
43 AWS_EC2_API VpnConnection(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_EC2_API VpnConnection& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
56 inline const Aws::String& GetCategory() const{ return m_category; }
57 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
58 inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
59 inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
60 inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
61 inline VpnConnection& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
62 inline VpnConnection& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
63 inline VpnConnection& WithCategory(const char* value) { SetCategory(value); return *this;}
65
67
70 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
71 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
72 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
73 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
74 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
75 inline VpnConnection& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
76 inline VpnConnection& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
77 inline VpnConnection& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
79
81
84 inline const Aws::String& GetCoreNetworkArn() const{ return m_coreNetworkArn; }
85 inline bool CoreNetworkArnHasBeenSet() const { return m_coreNetworkArnHasBeenSet; }
86 inline void SetCoreNetworkArn(const Aws::String& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = value; }
87 inline void SetCoreNetworkArn(Aws::String&& value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn = std::move(value); }
88 inline void SetCoreNetworkArn(const char* value) { m_coreNetworkArnHasBeenSet = true; m_coreNetworkArn.assign(value); }
89 inline VpnConnection& WithCoreNetworkArn(const Aws::String& value) { SetCoreNetworkArn(value); return *this;}
90 inline VpnConnection& WithCoreNetworkArn(Aws::String&& value) { SetCoreNetworkArn(std::move(value)); return *this;}
91 inline VpnConnection& WithCoreNetworkArn(const char* value) { SetCoreNetworkArn(value); return *this;}
93
95
98 inline const Aws::String& GetCoreNetworkAttachmentArn() const{ return m_coreNetworkAttachmentArn; }
99 inline bool CoreNetworkAttachmentArnHasBeenSet() const { return m_coreNetworkAttachmentArnHasBeenSet; }
100 inline void SetCoreNetworkAttachmentArn(const Aws::String& value) { m_coreNetworkAttachmentArnHasBeenSet = true; m_coreNetworkAttachmentArn = value; }
101 inline void SetCoreNetworkAttachmentArn(Aws::String&& value) { m_coreNetworkAttachmentArnHasBeenSet = true; m_coreNetworkAttachmentArn = std::move(value); }
102 inline void SetCoreNetworkAttachmentArn(const char* value) { m_coreNetworkAttachmentArnHasBeenSet = true; m_coreNetworkAttachmentArn.assign(value); }
104 inline VpnConnection& WithCoreNetworkAttachmentArn(Aws::String&& value) { SetCoreNetworkAttachmentArn(std::move(value)); return *this;}
105 inline VpnConnection& WithCoreNetworkAttachmentArn(const char* value) { SetCoreNetworkAttachmentArn(value); return *this;}
107
109
112 inline const GatewayAssociationState& GetGatewayAssociationState() const{ return m_gatewayAssociationState; }
113 inline bool GatewayAssociationStateHasBeenSet() const { return m_gatewayAssociationStateHasBeenSet; }
114 inline void SetGatewayAssociationState(const GatewayAssociationState& value) { m_gatewayAssociationStateHasBeenSet = true; m_gatewayAssociationState = value; }
115 inline void SetGatewayAssociationState(GatewayAssociationState&& value) { m_gatewayAssociationStateHasBeenSet = true; m_gatewayAssociationState = std::move(value); }
119
121
124 inline const VpnConnectionOptions& GetOptions() const{ return m_options; }
125 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
126 inline void SetOptions(const VpnConnectionOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
127 inline void SetOptions(VpnConnectionOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
128 inline VpnConnection& WithOptions(const VpnConnectionOptions& value) { SetOptions(value); return *this;}
129 inline VpnConnection& WithOptions(VpnConnectionOptions&& value) { SetOptions(std::move(value)); return *this;}
131
133
136 inline const Aws::Vector<VpnStaticRoute>& GetRoutes() const{ return m_routes; }
137 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
138 inline void SetRoutes(const Aws::Vector<VpnStaticRoute>& value) { m_routesHasBeenSet = true; m_routes = value; }
139 inline void SetRoutes(Aws::Vector<VpnStaticRoute>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
140 inline VpnConnection& WithRoutes(const Aws::Vector<VpnStaticRoute>& value) { SetRoutes(value); return *this;}
141 inline VpnConnection& WithRoutes(Aws::Vector<VpnStaticRoute>&& value) { SetRoutes(std::move(value)); return *this;}
142 inline VpnConnection& AddRoutes(const VpnStaticRoute& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
143 inline VpnConnection& AddRoutes(VpnStaticRoute&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
145
147
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline VpnConnection& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline VpnConnection& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline VpnConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline VpnConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159
161
164 inline const Aws::Vector<VgwTelemetry>& GetVgwTelemetry() const{ return m_vgwTelemetry; }
165 inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; }
166 inline void SetVgwTelemetry(const Aws::Vector<VgwTelemetry>& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = value; }
167 inline void SetVgwTelemetry(Aws::Vector<VgwTelemetry>&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = std::move(value); }
168 inline VpnConnection& WithVgwTelemetry(const Aws::Vector<VgwTelemetry>& value) { SetVgwTelemetry(value); return *this;}
169 inline VpnConnection& WithVgwTelemetry(Aws::Vector<VgwTelemetry>&& value) { SetVgwTelemetry(std::move(value)); return *this;}
170 inline VpnConnection& AddVgwTelemetry(const VgwTelemetry& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(value); return *this; }
171 inline VpnConnection& AddVgwTelemetry(VgwTelemetry&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(std::move(value)); return *this; }
173
175
178 inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
179 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
180 inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
181 inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
182 inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
183 inline VpnConnection& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;}
184 inline VpnConnection& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
185 inline VpnConnection& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
187
189
192 inline const VpnState& GetState() const{ return m_state; }
193 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
194 inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; }
195 inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
196 inline VpnConnection& WithState(const VpnState& value) { SetState(value); return *this;}
197 inline VpnConnection& WithState(VpnState&& value) { SetState(std::move(value)); return *this;}
199
201
208 inline const Aws::String& GetCustomerGatewayConfiguration() const{ return m_customerGatewayConfiguration; }
209 inline bool CustomerGatewayConfigurationHasBeenSet() const { return m_customerGatewayConfigurationHasBeenSet; }
210 inline void SetCustomerGatewayConfiguration(const Aws::String& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = value; }
211 inline void SetCustomerGatewayConfiguration(Aws::String&& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = std::move(value); }
212 inline void SetCustomerGatewayConfiguration(const char* value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration.assign(value); }
215 inline VpnConnection& WithCustomerGatewayConfiguration(const char* value) { SetCustomerGatewayConfiguration(value); return *this;}
217
219
222 inline const GatewayType& GetType() const{ return m_type; }
223 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
224 inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
225 inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
226 inline VpnConnection& WithType(const GatewayType& value) { SetType(value); return *this;}
227 inline VpnConnection& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
229
231
234 inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
235 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
236 inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
237 inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
238 inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
239 inline VpnConnection& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;}
240 inline VpnConnection& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
241 inline VpnConnection& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
243
245
249 inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
250 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
251 inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
252 inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
253 inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
254 inline VpnConnection& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
255 inline VpnConnection& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
256 inline VpnConnection& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
258 private:
259
260 Aws::String m_category;
261 bool m_categoryHasBeenSet = false;
262
263 Aws::String m_transitGatewayId;
264 bool m_transitGatewayIdHasBeenSet = false;
265
266 Aws::String m_coreNetworkArn;
267 bool m_coreNetworkArnHasBeenSet = false;
268
269 Aws::String m_coreNetworkAttachmentArn;
270 bool m_coreNetworkAttachmentArnHasBeenSet = false;
271
272 GatewayAssociationState m_gatewayAssociationState;
273 bool m_gatewayAssociationStateHasBeenSet = false;
274
275 VpnConnectionOptions m_options;
276 bool m_optionsHasBeenSet = false;
277
279 bool m_routesHasBeenSet = false;
280
281 Aws::Vector<Tag> m_tags;
282 bool m_tagsHasBeenSet = false;
283
284 Aws::Vector<VgwTelemetry> m_vgwTelemetry;
285 bool m_vgwTelemetryHasBeenSet = false;
286
287 Aws::String m_vpnConnectionId;
288 bool m_vpnConnectionIdHasBeenSet = false;
289
290 VpnState m_state;
291 bool m_stateHasBeenSet = false;
292
293 Aws::String m_customerGatewayConfiguration;
294 bool m_customerGatewayConfigurationHasBeenSet = false;
295
296 GatewayType m_type;
297 bool m_typeHasBeenSet = false;
298
299 Aws::String m_customerGatewayId;
300 bool m_customerGatewayIdHasBeenSet = false;
301
302 Aws::String m_vpnGatewayId;
303 bool m_vpnGatewayIdHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace EC2
308} // namespace Aws
const Aws::String & GetCoreNetworkAttachmentArn() const
VpnConnection & WithRoutes(const Aws::Vector< VpnStaticRoute > &value)
void SetType(GatewayType &&value)
VpnConnection & WithCustomerGatewayConfiguration(const char *value)
void SetState(const VpnState &value)
VpnConnection & WithCustomerGatewayId(const char *value)
void SetCoreNetworkAttachmentArn(const Aws::String &value)
void SetCategory(Aws::String &&value)
const Aws::String & GetCustomerGatewayConfiguration() const
const Aws::String & GetVpnGatewayId() const
void SetCategory(const Aws::String &value)
void SetVgwTelemetry(const Aws::Vector< VgwTelemetry > &value)
void SetRoutes(Aws::Vector< VpnStaticRoute > &&value)
VpnConnection & AddRoutes(const VpnStaticRoute &value)
const VpnConnectionOptions & GetOptions() const
void SetTransitGatewayId(Aws::String &&value)
void SetTransitGatewayId(const Aws::String &value)
VpnConnection & AddTags(const Tag &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VpnConnection & WithTags(const Aws::Vector< Tag > &value)
void SetCustomerGatewayId(const Aws::String &value)
VpnConnection & WithVpnGatewayId(const char *value)
VpnConnection & WithCategory(Aws::String &&value)
VpnConnection & WithCoreNetworkArn(const Aws::String &value)
void SetCategory(const char *value)
void SetGatewayAssociationState(GatewayAssociationState &&value)
void SetType(const GatewayType &value)
bool CustomerGatewayConfigurationHasBeenSet() const
const Aws::String & GetTransitGatewayId() const
VpnConnection & WithVpnConnectionId(const Aws::String &value)
VpnConnection & WithRoutes(Aws::Vector< VpnStaticRoute > &&value)
void SetCustomerGatewayId(const char *value)
VpnConnection & WithType(const GatewayType &value)
VpnConnection & WithState(const VpnState &value)
VpnConnection & WithCategory(const Aws::String &value)
bool CoreNetworkAttachmentArnHasBeenSet() const
const GatewayAssociationState & GetGatewayAssociationState() const
const Aws::String & GetCategory() const
VpnConnection & WithOptions(const VpnConnectionOptions &value)
void SetCoreNetworkArn(Aws::String &&value)
void SetCoreNetworkArn(const Aws::String &value)
void SetOptions(const VpnConnectionOptions &value)
void SetRoutes(const Aws::Vector< VpnStaticRoute > &value)
VpnConnection & WithCustomerGatewayId(const Aws::String &value)
void SetCustomerGatewayConfiguration(const Aws::String &value)
VpnConnection & WithCustomerGatewayId(Aws::String &&value)
void SetVpnGatewayId(const char *value)
VpnConnection & WithCoreNetworkAttachmentArn(const char *value)
VpnConnection & WithVpnConnectionId(const char *value)
VpnConnection & WithCustomerGatewayConfiguration(const Aws::String &value)
void SetCustomerGatewayConfiguration(Aws::String &&value)
VpnConnection & WithCoreNetworkAttachmentArn(const Aws::String &value)
VpnConnection & WithCoreNetworkArn(Aws::String &&value)
void SetVpnConnectionId(const char *value)
void SetCoreNetworkAttachmentArn(Aws::String &&value)
VpnConnection & WithType(GatewayType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpnConnection & WithCoreNetworkArn(const char *value)
VpnConnection & WithTransitGatewayId(const Aws::String &value)
VpnConnection & AddTags(Tag &&value)
void SetCoreNetworkAttachmentArn(const char *value)
VpnConnection & WithTransitGatewayId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
VpnConnection & WithTransitGatewayId(Aws::String &&value)
VpnConnection & WithVgwTelemetry(const Aws::Vector< VgwTelemetry > &value)
void SetVpnGatewayId(Aws::String &&value)
const Aws::String & GetCoreNetworkArn() const
VpnConnection & WithCategory(const char *value)
void SetOptions(VpnConnectionOptions &&value)
void SetGatewayAssociationState(const GatewayAssociationState &value)
void SetTags(Aws::Vector< Tag > &&value)
VpnConnection & AddVgwTelemetry(VgwTelemetry &&value)
VpnConnection & WithGatewayAssociationState(GatewayAssociationState &&value)
VpnConnection & WithCustomerGatewayConfiguration(Aws::String &&value)
bool GatewayAssociationStateHasBeenSet() const
VpnConnection & WithVpnConnectionId(Aws::String &&value)
const VpnState & GetState() const
VpnConnection & WithVpnGatewayId(const Aws::String &value)
void SetVpnConnectionId(Aws::String &&value)
void SetCustomerGatewayId(Aws::String &&value)
VpnConnection & WithGatewayAssociationState(const GatewayAssociationState &value)
const Aws::String & GetCustomerGatewayId() const
const Aws::Vector< VgwTelemetry > & GetVgwTelemetry() const
VpnConnection & AddVgwTelemetry(const VgwTelemetry &value)
void SetState(VpnState &&value)
AWS_EC2_API VpnConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpnConnectionId(const Aws::String &value)
VpnConnection & WithOptions(VpnConnectionOptions &&value)
void SetCustomerGatewayConfiguration(const char *value)
void SetVpnGatewayId(const Aws::String &value)
const Aws::String & GetVpnConnectionId() const
void SetCoreNetworkArn(const char *value)
AWS_EC2_API VpnConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTransitGatewayId(const char *value)
void SetVgwTelemetry(Aws::Vector< VgwTelemetry > &&value)
VpnConnection & AddRoutes(VpnStaticRoute &&value)
VpnConnection & WithTags(Aws::Vector< Tag > &&value)
VpnConnection & WithVpnGatewayId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
VpnConnection & WithCoreNetworkAttachmentArn(Aws::String &&value)
const GatewayType & GetType() const
const Aws::Vector< VpnStaticRoute > & GetRoutes() const
VpnConnection & WithState(VpnState &&value)
VpnConnection & WithVgwTelemetry(Aws::Vector< VgwTelemetry > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream