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

Information about the virtual private network (VPN) between the VMware * vSphere cluster and the AWS website.

For more information about RDS on * VMware, see the * RDS on VMware User Guide.

See Also:

AWS API * Reference

*/ class AWS_RDS_API VpnDetails { public: VpnDetails(); VpnDetails(const Aws::Utils::Xml::XmlNode& xmlNode); VpnDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the VPN.

*/ inline const Aws::String& GetVpnId() const{ return m_vpnId; } /** *

The ID of the VPN.

*/ inline bool VpnIdHasBeenSet() const { return m_vpnIdHasBeenSet; } /** *

The ID of the VPN.

*/ inline void SetVpnId(const Aws::String& value) { m_vpnIdHasBeenSet = true; m_vpnId = value; } /** *

The ID of the VPN.

*/ inline void SetVpnId(Aws::String&& value) { m_vpnIdHasBeenSet = true; m_vpnId = std::move(value); } /** *

The ID of the VPN.

*/ inline void SetVpnId(const char* value) { m_vpnIdHasBeenSet = true; m_vpnId.assign(value); } /** *

The ID of the VPN.

*/ inline VpnDetails& WithVpnId(const Aws::String& value) { SetVpnId(value); return *this;} /** *

The ID of the VPN.

*/ inline VpnDetails& WithVpnId(Aws::String&& value) { SetVpnId(std::move(value)); return *this;} /** *

The ID of the VPN.

*/ inline VpnDetails& WithVpnId(const char* value) { SetVpnId(value); return *this;} /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline const Aws::String& GetVpnTunnelOriginatorIP() const{ return m_vpnTunnelOriginatorIP; } /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline bool VpnTunnelOriginatorIPHasBeenSet() const { return m_vpnTunnelOriginatorIPHasBeenSet; } /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline void SetVpnTunnelOriginatorIP(const Aws::String& value) { m_vpnTunnelOriginatorIPHasBeenSet = true; m_vpnTunnelOriginatorIP = value; } /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline void SetVpnTunnelOriginatorIP(Aws::String&& value) { m_vpnTunnelOriginatorIPHasBeenSet = true; m_vpnTunnelOriginatorIP = std::move(value); } /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline void SetVpnTunnelOriginatorIP(const char* value) { m_vpnTunnelOriginatorIPHasBeenSet = true; m_vpnTunnelOriginatorIP.assign(value); } /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline VpnDetails& WithVpnTunnelOriginatorIP(const Aws::String& value) { SetVpnTunnelOriginatorIP(value); return *this;} /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline VpnDetails& WithVpnTunnelOriginatorIP(Aws::String&& value) { SetVpnTunnelOriginatorIP(std::move(value)); return *this;} /** *

The IP address of network traffic from your on-premises data center. A custom * AZ receives the network traffic.

*/ inline VpnDetails& WithVpnTunnelOriginatorIP(const char* value) { SetVpnTunnelOriginatorIP(value); return *this;} /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline const Aws::String& GetVpnGatewayIp() const{ return m_vpnGatewayIp; } /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline bool VpnGatewayIpHasBeenSet() const { return m_vpnGatewayIpHasBeenSet; } /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline void SetVpnGatewayIp(const Aws::String& value) { m_vpnGatewayIpHasBeenSet = true; m_vpnGatewayIp = value; } /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline void SetVpnGatewayIp(Aws::String&& value) { m_vpnGatewayIpHasBeenSet = true; m_vpnGatewayIp = std::move(value); } /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline void SetVpnGatewayIp(const char* value) { m_vpnGatewayIpHasBeenSet = true; m_vpnGatewayIp.assign(value); } /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline VpnDetails& WithVpnGatewayIp(const Aws::String& value) { SetVpnGatewayIp(value); return *this;} /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline VpnDetails& WithVpnGatewayIp(Aws::String&& value) { SetVpnGatewayIp(std::move(value)); return *this;} /** *

The IP address of network traffic from AWS to your on-premises data * center.

*/ inline VpnDetails& WithVpnGatewayIp(const char* value) { SetVpnGatewayIp(value); return *this;} /** *

The preshared key (PSK) for the VPN.

*/ inline const Aws::String& GetVpnPSK() const{ return m_vpnPSK; } /** *

The preshared key (PSK) for the VPN.

*/ inline bool VpnPSKHasBeenSet() const { return m_vpnPSKHasBeenSet; } /** *

The preshared key (PSK) for the VPN.

*/ inline void SetVpnPSK(const Aws::String& value) { m_vpnPSKHasBeenSet = true; m_vpnPSK = value; } /** *

The preshared key (PSK) for the VPN.

*/ inline void SetVpnPSK(Aws::String&& value) { m_vpnPSKHasBeenSet = true; m_vpnPSK = std::move(value); } /** *

The preshared key (PSK) for the VPN.

*/ inline void SetVpnPSK(const char* value) { m_vpnPSKHasBeenSet = true; m_vpnPSK.assign(value); } /** *

The preshared key (PSK) for the VPN.

*/ inline VpnDetails& WithVpnPSK(const Aws::String& value) { SetVpnPSK(value); return *this;} /** *

The preshared key (PSK) for the VPN.

*/ inline VpnDetails& WithVpnPSK(Aws::String&& value) { SetVpnPSK(std::move(value)); return *this;} /** *

The preshared key (PSK) for the VPN.

*/ inline VpnDetails& WithVpnPSK(const char* value) { SetVpnPSK(value); return *this;} /** *

The name of the VPN.

*/ inline const Aws::String& GetVpnName() const{ return m_vpnName; } /** *

The name of the VPN.

*/ inline bool VpnNameHasBeenSet() const { return m_vpnNameHasBeenSet; } /** *

The name of the VPN.

*/ inline void SetVpnName(const Aws::String& value) { m_vpnNameHasBeenSet = true; m_vpnName = value; } /** *

The name of the VPN.

*/ inline void SetVpnName(Aws::String&& value) { m_vpnNameHasBeenSet = true; m_vpnName = std::move(value); } /** *

The name of the VPN.

*/ inline void SetVpnName(const char* value) { m_vpnNameHasBeenSet = true; m_vpnName.assign(value); } /** *

The name of the VPN.

*/ inline VpnDetails& WithVpnName(const Aws::String& value) { SetVpnName(value); return *this;} /** *

The name of the VPN.

*/ inline VpnDetails& WithVpnName(Aws::String&& value) { SetVpnName(std::move(value)); return *this;} /** *

The name of the VPN.

*/ inline VpnDetails& WithVpnName(const char* value) { SetVpnName(value); return *this;} /** *

The state of the VPN.

*/ inline const Aws::String& GetVpnState() const{ return m_vpnState; } /** *

The state of the VPN.

*/ inline bool VpnStateHasBeenSet() const { return m_vpnStateHasBeenSet; } /** *

The state of the VPN.

*/ inline void SetVpnState(const Aws::String& value) { m_vpnStateHasBeenSet = true; m_vpnState = value; } /** *

The state of the VPN.

*/ inline void SetVpnState(Aws::String&& value) { m_vpnStateHasBeenSet = true; m_vpnState = std::move(value); } /** *

The state of the VPN.

*/ inline void SetVpnState(const char* value) { m_vpnStateHasBeenSet = true; m_vpnState.assign(value); } /** *

The state of the VPN.

*/ inline VpnDetails& WithVpnState(const Aws::String& value) { SetVpnState(value); return *this;} /** *

The state of the VPN.

*/ inline VpnDetails& WithVpnState(Aws::String&& value) { SetVpnState(std::move(value)); return *this;} /** *

The state of the VPN.

*/ inline VpnDetails& WithVpnState(const char* value) { SetVpnState(value); return *this;} private: Aws::String m_vpnId; bool m_vpnIdHasBeenSet; Aws::String m_vpnTunnelOriginatorIP; bool m_vpnTunnelOriginatorIPHasBeenSet; Aws::String m_vpnGatewayIp; bool m_vpnGatewayIpHasBeenSet; Aws::String m_vpnPSK; bool m_vpnPSKHasBeenSet; Aws::String m_vpnName; bool m_vpnNameHasBeenSet; Aws::String m_vpnState; bool m_vpnStateHasBeenSet; }; } // namespace Model } // namespace RDS } // namespace Aws