7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/AddressFamily.h>
22namespace DirectConnect
47 inline int GetAsn()
const {
return m_asn; }
49 inline void SetAsn(
int value) { m_asnHasBeenSet =
true; m_asn = value; }
57 inline long long GetAsnLong()
const {
return m_asnLong; }
59 inline void SetAsnLong(
long long value) { m_asnLongHasBeenSet =
true; m_asnLong = value; }
70 template<
typename AuthKeyT = Aws::String>
71 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet =
true; m_authKey = std::forward<AuthKeyT>(value); }
72 template<
typename AuthKeyT = Aws::String>
92 template<
typename AmazonAddressT = Aws::String>
93 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet =
true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
94 template<
typename AmazonAddressT = Aws::String>
104 template<
typename CustomerAddressT = Aws::String>
105 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet =
true; m_customerAddress = std::forward<CustomerAddressT>(value); }
106 template<
typename CustomerAddressT = Aws::String>
112 bool m_asnHasBeenSet =
false;
114 long long m_asnLong{0};
115 bool m_asnLongHasBeenSet =
false;
118 bool m_authKeyHasBeenSet =
false;
121 bool m_addressFamilyHasBeenSet =
false;
124 bool m_amazonAddressHasBeenSet =
false;
127 bool m_customerAddressHasBeenSet =
false;
AWS_DIRECTCONNECT_API NewBGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
NewBGPPeer & WithAmazonAddress(AmazonAddressT &&value)
const Aws::String & GetAmazonAddress() const
NewBGPPeer & WithAddressFamily(AddressFamily value)
void SetAddressFamily(AddressFamily value)
bool CustomerAddressHasBeenSet() const
long long GetAsnLong() const
const Aws::String & GetAuthKey() const
bool AuthKeyHasBeenSet() const
void SetAsnLong(long long value)
void SetAmazonAddress(AmazonAddressT &&value)
const Aws::String & GetCustomerAddress() const
AWS_DIRECTCONNECT_API NewBGPPeer(Aws::Utils::Json::JsonView jsonValue)
NewBGPPeer & WithCustomerAddress(CustomerAddressT &&value)
NewBGPPeer & WithAsnLong(long long value)
NewBGPPeer & WithAsn(int value)
bool AddressFamilyHasBeenSet() const
bool AmazonAddressHasBeenSet() const
void SetCustomerAddress(CustomerAddressT &&value)
AWS_DIRECTCONNECT_API NewBGPPeer()=default
NewBGPPeer & WithAuthKey(AuthKeyT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthKey(AuthKeyT &&value)
bool AsnHasBeenSet() const
bool AsnLongHasBeenSet() const
AddressFamily GetAddressFamily() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue