This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

248 lines
8.2 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/directconnect/DirectConnect_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/directconnect/model/AddressFamily.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DirectConnect
{
namespace Model
{
/**
* <p>Information about a new BGP peer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/NewBGPPeer">AWS
* API Reference</a></p>
*/
class AWS_DIRECTCONNECT_API NewBGPPeer
{
public:
NewBGPPeer();
NewBGPPeer(Aws::Utils::Json::JsonView jsonValue);
NewBGPPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The autonomous system (AS) number for Border Gateway Protocol (BGP)
* configuration.</p>
*/
inline int GetAsn() const{ return m_asn; }
/**
* <p>The autonomous system (AS) number for Border Gateway Protocol (BGP)
* configuration.</p>
*/
inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
/**
* <p>The autonomous system (AS) number for Border Gateway Protocol (BGP)
* configuration.</p>
*/
inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
/**
* <p>The autonomous system (AS) number for Border Gateway Protocol (BGP)
* configuration.</p>
*/
inline NewBGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline const Aws::String& GetAuthKey() const{ return m_authKey; }
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline NewBGPPeer& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline NewBGPPeer& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
/**
* <p>The authentication key for BGP configuration. This string has a minimum
* length of 6 characters and and a maximun lenth of 80 characters.</p>
*/
inline NewBGPPeer& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
/**
* <p>The address family for the BGP peer.</p>
*/
inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
/**
* <p>The address family for the BGP peer.</p>
*/
inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
/**
* <p>The address family for the BGP peer.</p>
*/
inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
/**
* <p>The address family for the BGP peer.</p>
*/
inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
/**
* <p>The address family for the BGP peer.</p>
*/
inline NewBGPPeer& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
/**
* <p>The address family for the BGP peer.</p>
*/
inline NewBGPPeer& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline NewBGPPeer& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline NewBGPPeer& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
/**
* <p>The IP address assigned to the Amazon interface.</p>
*/
inline NewBGPPeer& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline NewBGPPeer& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline NewBGPPeer& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
/**
* <p>The IP address assigned to the customer interface.</p>
*/
inline NewBGPPeer& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
private:
int m_asn;
bool m_asnHasBeenSet;
Aws::String m_authKey;
bool m_authKeyHasBeenSet;
AddressFamily m_addressFamily;
bool m_addressFamilyHasBeenSet;
Aws::String m_amazonAddress;
bool m_amazonAddressHasBeenSet;
Aws::String m_customerAddress;
bool m_customerAddressHasBeenSet;
};
} // namespace Model
} // namespace DirectConnect
} // namespace Aws