/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The BGP configuration information.See Also:
AWS
* API Reference
The transit gateway Autonomous System Number (ASN).
*/ inline long long GetTransitGatewayAsn() const{ return m_transitGatewayAsn; } /** *The transit gateway Autonomous System Number (ASN).
*/ inline bool TransitGatewayAsnHasBeenSet() const { return m_transitGatewayAsnHasBeenSet; } /** *The transit gateway Autonomous System Number (ASN).
*/ inline void SetTransitGatewayAsn(long long value) { m_transitGatewayAsnHasBeenSet = true; m_transitGatewayAsn = value; } /** *The transit gateway Autonomous System Number (ASN).
*/ inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAsn(long long value) { SetTransitGatewayAsn(value); return *this;} /** *The peer Autonomous System Number (ASN).
*/ inline long long GetPeerAsn() const{ return m_peerAsn; } /** *The peer Autonomous System Number (ASN).
*/ inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; } /** *The peer Autonomous System Number (ASN).
*/ inline void SetPeerAsn(long long value) { m_peerAsnHasBeenSet = true; m_peerAsn = value; } /** *The peer Autonomous System Number (ASN).
*/ inline TransitGatewayAttachmentBgpConfiguration& WithPeerAsn(long long value) { SetPeerAsn(value); return *this;} /** *The interior BGP peer IP address for the transit gateway.
*/ inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; } /** *The interior BGP peer IP address for the transit gateway.
*/ inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; } /** *The interior BGP peer IP address for the transit gateway.
*/ inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; } /** *The interior BGP peer IP address for the transit gateway.
*/ inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); } /** *The interior BGP peer IP address for the transit gateway.
*/ inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); } /** *The interior BGP peer IP address for the transit gateway.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(const Aws::String& value) { SetTransitGatewayAddress(value); return *this;} /** *The interior BGP peer IP address for the transit gateway.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(Aws::String&& value) { SetTransitGatewayAddress(std::move(value)); return *this;} /** *The interior BGP peer IP address for the transit gateway.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(const char* value) { SetTransitGatewayAddress(value); return *this;} /** *The interior BGP peer IP address for the appliance.
*/ inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; } /** *The interior BGP peer IP address for the appliance.
*/ inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; } /** *The interior BGP peer IP address for the appliance.
*/ inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; } /** *The interior BGP peer IP address for the appliance.
*/ inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); } /** *The interior BGP peer IP address for the appliance.
*/ inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); } /** *The interior BGP peer IP address for the appliance.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;} /** *The interior BGP peer IP address for the appliance.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;} /** *The interior BGP peer IP address for the appliance.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;} /** *The BGP status.
*/ inline const BgpStatus& GetBgpStatus() const{ return m_bgpStatus; } /** *The BGP status.
*/ inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; } /** *The BGP status.
*/ inline void SetBgpStatus(const BgpStatus& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; } /** *The BGP status.
*/ inline void SetBgpStatus(BgpStatus&& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = std::move(value); } /** *The BGP status.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithBgpStatus(const BgpStatus& value) { SetBgpStatus(value); return *this;} /** *The BGP status.
*/ inline TransitGatewayAttachmentBgpConfiguration& WithBgpStatus(BgpStatus&& value) { SetBgpStatus(std::move(value)); return *this;} private: long long m_transitGatewayAsn; bool m_transitGatewayAsnHasBeenSet = false; long long m_peerAsn; bool m_peerAsnHasBeenSet = false; Aws::String m_transitGatewayAddress; bool m_transitGatewayAddressHasBeenSet = false; Aws::String m_peerAddress; bool m_peerAddressHasBeenSet = false; BgpStatus m_bgpStatus; bool m_bgpStatusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws