/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about a new BGP peer.

See Also:

AWS * API Reference

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

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

*/ inline int GetAsn() const{ return m_asn; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

*/ inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

*/ inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

*/ inline NewBGPPeer& WithAsn(int value) { SetAsn(value); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline const Aws::String& GetAuthKey() const{ return m_authKey; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewBGPPeer& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewBGPPeer& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewBGPPeer& WithAuthKey(const char* value) { SetAuthKey(value); return *this;} /** *

The address family for the BGP peer.

*/ inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; } /** *

The address family for the BGP peer.

*/ inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; } /** *

The address family for the BGP peer.

*/ inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; } /** *

The address family for the BGP peer.

*/ inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); } /** *

The address family for the BGP peer.

*/ inline NewBGPPeer& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;} /** *

The address family for the BGP peer.

*/ inline NewBGPPeer& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; } /** *

The IP address assigned to the Amazon interface.

*/ inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); } /** *

The IP address assigned to the Amazon interface.

*/ inline NewBGPPeer& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline NewBGPPeer& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline NewBGPPeer& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; } /** *

The IP address assigned to the customer interface.

*/ inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); } /** *

The IP address assigned to the customer interface.

*/ inline NewBGPPeer& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline NewBGPPeer& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline NewBGPPeer& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;} private: int m_asn; bool m_asnHasBeenSet = false; Aws::String m_authKey; bool m_authKeyHasBeenSet = false; AddressFamily m_addressFamily; bool m_addressFamilyHasBeenSet = false; Aws::String m_amazonAddress; bool m_amazonAddressHasBeenSet = false; Aws::String m_customerAddress; bool m_customerAddressHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws