/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Details about an Amazon EC2 VPN connection.

See Also:

AWS * API Reference

*/ class AwsEc2VpnConnectionDetails { public: AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails(); AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the VPN connection.

*/ inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; } /** *

The identifier of the VPN connection.

*/ inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; } /** *

The identifier of the VPN connection.

*/ inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; } /** *

The identifier of the VPN connection.

*/ inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); } /** *

The identifier of the VPN connection.

*/ inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); } /** *

The identifier of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;} /** *

The identifier of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;} /** *

The identifier of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;} /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline AwsEc2VpnConnectionDetails& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline AwsEc2VpnConnectionDetails& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The current state of the VPN connection. Valid values are as follows:

*
  • available

  • deleted *

  • deleting

  • * pending

*/ inline AwsEc2VpnConnectionDetails& WithState(const char* value) { SetState(value); return *this;} /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; } /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; } /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; } /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); } /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); } /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;} /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;} /** *

The identifier of the customer gateway that is at your end of the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;} /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline const Aws::String& GetCustomerGatewayConfiguration() const{ return m_customerGatewayConfiguration; } /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline bool CustomerGatewayConfigurationHasBeenSet() const { return m_customerGatewayConfigurationHasBeenSet; } /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline void SetCustomerGatewayConfiguration(const Aws::String& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = value; } /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline void SetCustomerGatewayConfiguration(Aws::String&& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = std::move(value); } /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline void SetCustomerGatewayConfiguration(const char* value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration.assign(value); } /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayConfiguration(const Aws::String& value) { SetCustomerGatewayConfiguration(value); return *this;} /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayConfiguration(Aws::String&& value) { SetCustomerGatewayConfiguration(std::move(value)); return *this;} /** *

The configuration information for the VPN connection's customer gateway, in * the native XML format.

*/ inline AwsEc2VpnConnectionDetails& WithCustomerGatewayConfiguration(const char* value) { SetCustomerGatewayConfiguration(value); return *this;} /** *

The type of VPN connection.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of VPN connection.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of VPN connection.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of VPN connection.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of VPN connection.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithType(const char* value) { SetType(value); return *this;} /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; } /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; } /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; } /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); } /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); } /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;} /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;} /** *

The identifier of the virtual private gateway that is at the Amazon Web * Services side of the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;} /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline const Aws::String& GetCategory() const{ return m_category; } /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); } /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithCategory(const Aws::String& value) { SetCategory(value); return *this;} /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;} /** *

The category of the VPN connection. VPN indicates an Amazon Web * Services VPN connection. VPN-Classic indicates an Amazon Web * Services Classic VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithCategory(const char* value) { SetCategory(value); return *this;} /** *

Information about the VPN tunnel.

*/ inline const Aws::Vector& GetVgwTelemetry() const{ return m_vgwTelemetry; } /** *

Information about the VPN tunnel.

*/ inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; } /** *

Information about the VPN tunnel.

*/ inline void SetVgwTelemetry(const Aws::Vector& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = value; } /** *

Information about the VPN tunnel.

*/ inline void SetVgwTelemetry(Aws::Vector&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = std::move(value); } /** *

Information about the VPN tunnel.

*/ inline AwsEc2VpnConnectionDetails& WithVgwTelemetry(const Aws::Vector& value) { SetVgwTelemetry(value); return *this;} /** *

Information about the VPN tunnel.

*/ inline AwsEc2VpnConnectionDetails& WithVgwTelemetry(Aws::Vector&& value) { SetVgwTelemetry(std::move(value)); return *this;} /** *

Information about the VPN tunnel.

*/ inline AwsEc2VpnConnectionDetails& AddVgwTelemetry(const AwsEc2VpnConnectionVgwTelemetryDetails& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(value); return *this; } /** *

Information about the VPN tunnel.

*/ inline AwsEc2VpnConnectionDetails& AddVgwTelemetry(AwsEc2VpnConnectionVgwTelemetryDetails&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(std::move(value)); return *this; } /** *

The VPN connection options.

*/ inline const AwsEc2VpnConnectionOptionsDetails& GetOptions() const{ return m_options; } /** *

The VPN connection options.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The VPN connection options.

*/ inline void SetOptions(const AwsEc2VpnConnectionOptionsDetails& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The VPN connection options.

*/ inline void SetOptions(AwsEc2VpnConnectionOptionsDetails&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The VPN connection options.

*/ inline AwsEc2VpnConnectionDetails& WithOptions(const AwsEc2VpnConnectionOptionsDetails& value) { SetOptions(value); return *this;} /** *

The VPN connection options.

*/ inline AwsEc2VpnConnectionDetails& WithOptions(AwsEc2VpnConnectionOptionsDetails&& value) { SetOptions(std::move(value)); return *this;} /** *

The static routes that are associated with the VPN connection.

*/ inline const Aws::Vector& GetRoutes() const{ return m_routes; } /** *

The static routes that are associated with the VPN connection.

*/ inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; } /** *

The static routes that are associated with the VPN connection.

*/ inline void SetRoutes(const Aws::Vector& value) { m_routesHasBeenSet = true; m_routes = value; } /** *

The static routes that are associated with the VPN connection.

*/ inline void SetRoutes(Aws::Vector&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); } /** *

The static routes that are associated with the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithRoutes(const Aws::Vector& value) { SetRoutes(value); return *this;} /** *

The static routes that are associated with the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& WithRoutes(Aws::Vector&& value) { SetRoutes(std::move(value)); return *this;} /** *

The static routes that are associated with the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& AddRoutes(const AwsEc2VpnConnectionRoutesDetails& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; } /** *

The static routes that are associated with the VPN connection.

*/ inline AwsEc2VpnConnectionDetails& AddRoutes(AwsEc2VpnConnectionRoutesDetails&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *

The identifier of the transit gateway that is associated with the VPN * connection.

*/ inline AwsEc2VpnConnectionDetails& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;} private: Aws::String m_vpnConnectionId; bool m_vpnConnectionIdHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_customerGatewayId; bool m_customerGatewayIdHasBeenSet = false; Aws::String m_customerGatewayConfiguration; bool m_customerGatewayConfigurationHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_vpnGatewayId; bool m_vpnGatewayIdHasBeenSet = false; Aws::String m_category; bool m_categoryHasBeenSet = false; Aws::Vector m_vgwTelemetry; bool m_vgwTelemetryHasBeenSet = false; AwsEc2VpnConnectionOptionsDetails m_options; bool m_optionsHasBeenSet = false; Aws::Vector m_routes; bool m_routesHasBeenSet = false; Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws