/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the Connect peer details.

See Also:

AWS * API Reference

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

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; } /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; } /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; } /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); } /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); } /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(const Aws::String& value) { SetTransitGatewayAddress(value); return *this;} /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(Aws::String&& value) { SetTransitGatewayAddress(std::move(value)); return *this;} /** *

The Connect peer IP address on the transit gateway side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(const char* value) { SetTransitGatewayAddress(value); return *this;} /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; } /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; } /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; } /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); } /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); } /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;} /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;} /** *

The Connect peer IP address on the appliance side of the tunnel.

*/ inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;} /** *

The range of interior BGP peer IP addresses.

*/ inline const Aws::Vector& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; } /** *

The range of interior BGP peer IP addresses.

*/ inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; } /** *

The range of interior BGP peer IP addresses.

*/ inline void SetInsideCidrBlocks(const Aws::Vector& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; } /** *

The range of interior BGP peer IP addresses.

*/ inline void SetInsideCidrBlocks(Aws::Vector&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); } /** *

The range of interior BGP peer IP addresses.

*/ inline TransitGatewayConnectPeerConfiguration& WithInsideCidrBlocks(const Aws::Vector& value) { SetInsideCidrBlocks(value); return *this;} /** *

The range of interior BGP peer IP addresses.

*/ inline TransitGatewayConnectPeerConfiguration& WithInsideCidrBlocks(Aws::Vector&& value) { SetInsideCidrBlocks(std::move(value)); return *this;} /** *

The range of interior BGP peer IP addresses.

*/ inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; } /** *

The range of interior BGP peer IP addresses.

*/ inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; } /** *

The range of interior BGP peer IP addresses.

*/ inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; } /** *

The tunnel protocol.

*/ inline const ProtocolValue& GetProtocol() const{ return m_protocol; } /** *

The tunnel protocol.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The tunnel protocol.

*/ inline void SetProtocol(const ProtocolValue& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The tunnel protocol.

*/ inline void SetProtocol(ProtocolValue&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The tunnel protocol.

*/ inline TransitGatewayConnectPeerConfiguration& WithProtocol(const ProtocolValue& value) { SetProtocol(value); return *this;} /** *

The tunnel protocol.

*/ inline TransitGatewayConnectPeerConfiguration& WithProtocol(ProtocolValue&& value) { SetProtocol(std::move(value)); return *this;} /** *

The BGP configuration details.

*/ inline const Aws::Vector& GetBgpConfigurations() const{ return m_bgpConfigurations; } /** *

The BGP configuration details.

*/ inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; } /** *

The BGP configuration details.

*/ inline void SetBgpConfigurations(const Aws::Vector& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = value; } /** *

The BGP configuration details.

*/ inline void SetBgpConfigurations(Aws::Vector&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::move(value); } /** *

The BGP configuration details.

*/ inline TransitGatewayConnectPeerConfiguration& WithBgpConfigurations(const Aws::Vector& value) { SetBgpConfigurations(value); return *this;} /** *

The BGP configuration details.

*/ inline TransitGatewayConnectPeerConfiguration& WithBgpConfigurations(Aws::Vector&& value) { SetBgpConfigurations(std::move(value)); return *this;} /** *

The BGP configuration details.

*/ inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(const TransitGatewayAttachmentBgpConfiguration& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(value); return *this; } /** *

The BGP configuration details.

*/ inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(TransitGatewayAttachmentBgpConfiguration&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(std::move(value)); return *this; } private: Aws::String m_transitGatewayAddress; bool m_transitGatewayAddressHasBeenSet = false; Aws::String m_peerAddress; bool m_peerAddressHasBeenSet = false; Aws::Vector m_insideCidrBlocks; bool m_insideCidrBlocksHasBeenSet = false; ProtocolValue m_protocol; bool m_protocolHasBeenSet = false; Aws::Vector m_bgpConfigurations; bool m_bgpConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws