7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/GatewayAssociationState.h>
12#include <aws/ec2/model/GatewayType.h>
13#include <aws/ec2/model/Tag.h>
14#include <aws/ec2/model/VgwTelemetry.h>
15#include <aws/ec2/model/VpnConnectionOptions.h>
16#include <aws/ec2/model/VpnState.h>
17#include <aws/ec2/model/VpnStaticRoute.h>
52 template <
typename CategoryT = Aws::String>
54 m_categoryHasBeenSet =
true;
55 m_category = std::forward<CategoryT>(value);
57 template <
typename CategoryT = Aws::String>
70 template <
typename TransitGatewayIdT = Aws::String>
72 m_transitGatewayIdHasBeenSet =
true;
73 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
75 template <
typename TransitGatewayIdT = Aws::String>
88 template <
typename VpnConcentratorIdT = Aws::String>
90 m_vpnConcentratorIdHasBeenSet =
true;
91 m_vpnConcentratorId = std::forward<VpnConcentratorIdT>(value);
93 template <
typename VpnConcentratorIdT = Aws::String>
106 template <
typename CoreNetworkArnT = Aws::String>
108 m_coreNetworkArnHasBeenSet =
true;
109 m_coreNetworkArn = std::forward<CoreNetworkArnT>(value);
111 template <
typename CoreNetworkArnT = Aws::String>
124 template <
typename CoreNetworkAttachmentArnT = Aws::String>
126 m_coreNetworkAttachmentArnHasBeenSet =
true;
127 m_coreNetworkAttachmentArn = std::forward<CoreNetworkAttachmentArnT>(value);
129 template <
typename CoreNetworkAttachmentArnT = Aws::String>
143 m_gatewayAssociationStateHasBeenSet =
true;
144 m_gatewayAssociationState = value;
158 template <
typename OptionsT = VpnConnectionOptions>
160 m_optionsHasBeenSet =
true;
161 m_options = std::forward<OptionsT>(value);
163 template <
typename OptionsT = VpnConnectionOptions>
176 template <
typename RoutesT = Aws::Vector<VpnStaticRoute>>
178 m_routesHasBeenSet =
true;
179 m_routes = std::forward<RoutesT>(value);
181 template <
typename RoutesT = Aws::Vector<VpnStaticRoute>>
186 template <
typename RoutesT = VpnStaticRoute>
188 m_routesHasBeenSet =
true;
189 m_routes.emplace_back(std::forward<RoutesT>(value));
200 template <
typename TagsT = Aws::Vector<Tag>>
202 m_tagsHasBeenSet =
true;
203 m_tags = std::forward<TagsT>(value);
205 template <
typename TagsT = Aws::Vector<Tag>>
207 SetTags(std::forward<TagsT>(value));
210 template <
typename TagsT = Tag>
212 m_tagsHasBeenSet =
true;
213 m_tags.emplace_back(std::forward<TagsT>(value));
224 template <
typename VgwTelemetryT = Aws::Vector<VgwTelemetry>>
226 m_vgwTelemetryHasBeenSet =
true;
227 m_vgwTelemetry = std::forward<VgwTelemetryT>(value);
229 template <
typename VgwTelemetryT = Aws::Vector<VgwTelemetry>>
234 template <
typename VgwTelemetryT = VgwTelemetry>
236 m_vgwTelemetryHasBeenSet =
true;
237 m_vgwTelemetry.emplace_back(std::forward<VgwTelemetryT>(value));
249 template <
typename PreSharedKeyArnT = Aws::String>
251 m_preSharedKeyArnHasBeenSet =
true;
252 m_preSharedKeyArn = std::forward<PreSharedKeyArnT>(value);
254 template <
typename PreSharedKeyArnT = Aws::String>
267 template <
typename VpnConnectionIdT = Aws::String>
269 m_vpnConnectionIdHasBeenSet =
true;
270 m_vpnConnectionId = std::forward<VpnConnectionIdT>(value);
272 template <
typename VpnConnectionIdT = Aws::String>
286 m_stateHasBeenSet =
true;
305 template <
typename CustomerGatewayConfigurationT = Aws::String>
307 m_customerGatewayConfigurationHasBeenSet =
true;
308 m_customerGatewayConfiguration = std::forward<CustomerGatewayConfigurationT>(value);
310 template <
typename CustomerGatewayConfigurationT = Aws::String>
324 m_typeHasBeenSet =
true;
339 template <
typename CustomerGatewayIdT = Aws::String>
341 m_customerGatewayIdHasBeenSet =
true;
342 m_customerGatewayId = std::forward<CustomerGatewayIdT>(value);
344 template <
typename CustomerGatewayIdT = Aws::String>
358 template <
typename VpnGatewayIdT = Aws::String>
360 m_vpnGatewayIdHasBeenSet =
true;
361 m_vpnGatewayId = std::forward<VpnGatewayIdT>(value);
363 template <
typename VpnGatewayIdT = Aws::String>
382 VpnConnectionOptions m_options;
403 bool m_categoryHasBeenSet =
false;
404 bool m_transitGatewayIdHasBeenSet =
false;
405 bool m_vpnConcentratorIdHasBeenSet =
false;
406 bool m_coreNetworkArnHasBeenSet =
false;
407 bool m_coreNetworkAttachmentArnHasBeenSet =
false;
408 bool m_gatewayAssociationStateHasBeenSet =
false;
409 bool m_optionsHasBeenSet =
false;
410 bool m_routesHasBeenSet =
false;
411 bool m_tagsHasBeenSet =
false;
412 bool m_vgwTelemetryHasBeenSet =
false;
413 bool m_preSharedKeyArnHasBeenSet =
false;
414 bool m_vpnConnectionIdHasBeenSet =
false;
415 bool m_stateHasBeenSet =
false;
416 bool m_customerGatewayConfigurationHasBeenSet =
false;
417 bool m_typeHasBeenSet =
false;
418 bool m_customerGatewayIdHasBeenSet =
false;
419 bool m_vpnGatewayIdHasBeenSet =
false;
const Aws::String & GetCoreNetworkAttachmentArn() const
void SetPreSharedKeyArn(PreSharedKeyArnT &&value)
bool CustomerGatewayIdHasBeenSet() const
void SetCustomerGatewayConfiguration(CustomerGatewayConfigurationT &&value)
VpnConnection & WithCategory(CategoryT &&value)
VpnConnection & WithType(GatewayType value)
const Aws::String & GetCustomerGatewayConfiguration() const
const Aws::String & GetVpnGatewayId() const
bool TransitGatewayIdHasBeenSet() const
VpnState GetState() const
void SetCoreNetworkArn(CoreNetworkArnT &&value)
bool VgwTelemetryHasBeenSet() const
void SetVpnConnectionId(VpnConnectionIdT &&value)
void SetTags(TagsT &&value)
const VpnConnectionOptions & GetOptions() const
VpnConnection & WithPreSharedKeyArn(PreSharedKeyArnT &&value)
GatewayType GetType() const
GatewayAssociationState GetGatewayAssociationState() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OptionsHasBeenSet() const
VpnConnection & WithCoreNetworkAttachmentArn(CoreNetworkAttachmentArnT &&value)
void SetVgwTelemetry(VgwTelemetryT &&value)
void SetOptions(OptionsT &&value)
bool CustomerGatewayConfigurationHasBeenSet() const
VpnConnection & WithCustomerGatewayId(CustomerGatewayIdT &&value)
const Aws::String & GetTransitGatewayId() const
bool RoutesHasBeenSet() const
VpnConnection & WithVpnConnectionId(VpnConnectionIdT &&value)
VpnConnection & AddVgwTelemetry(VgwTelemetryT &&value)
bool CategoryHasBeenSet() const
void SetCustomerGatewayId(CustomerGatewayIdT &&value)
bool CoreNetworkAttachmentArnHasBeenSet() const
bool PreSharedKeyArnHasBeenSet() const
VpnConnection & WithVgwTelemetry(VgwTelemetryT &&value)
bool TagsHasBeenSet() const
const Aws::String & GetCategory() const
void SetGatewayAssociationState(GatewayAssociationState value)
bool VpnGatewayIdHasBeenSet() const
void SetType(GatewayType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCategory(CategoryT &&value)
VpnConnection & AddTags(TagsT &&value)
VpnConnection & WithRoutes(RoutesT &&value)
VpnConnection & WithOptions(OptionsT &&value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
void SetRoutes(RoutesT &&value)
const Aws::String & GetCoreNetworkArn() const
const Aws::String & GetPreSharedKeyArn() const
VpnConnection & WithCustomerGatewayConfiguration(CustomerGatewayConfigurationT &&value)
VpnConnection & WithVpnGatewayId(VpnGatewayIdT &&value)
bool CoreNetworkArnHasBeenSet() const
bool GatewayAssociationStateHasBeenSet() const
VpnConnection & AddRoutes(RoutesT &&value)
VpnConnection & WithVpnConcentratorId(VpnConcentratorIdT &&value)
const Aws::String & GetCustomerGatewayId() const
const Aws::Vector< VgwTelemetry > & GetVgwTelemetry() const
VpnConnection & WithState(VpnState value)
bool TypeHasBeenSet() const
VpnConnection & WithCoreNetworkArn(CoreNetworkArnT &&value)
VpnConnection & WithGatewayAssociationState(GatewayAssociationState value)
VpnConnection & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API VpnConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VpnConnection()=default
bool VpnConnectionIdHasBeenSet() const
void SetVpnGatewayId(VpnGatewayIdT &&value)
const Aws::String & GetVpnConnectionId() const
bool VpnConcentratorIdHasBeenSet() const
AWS_EC2_API VpnConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVpnConcentratorId() const
void SetState(VpnState value)
const Aws::Vector< Tag > & GetTags() const
void SetCoreNetworkAttachmentArn(CoreNetworkAttachmentArnT &&value)
bool StateHasBeenSet() const
VpnConnection & WithTags(TagsT &&value)
const Aws::Vector< VpnStaticRoute > & GetRoutes() const
void SetVpnConcentratorId(VpnConcentratorIdT &&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