7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnect_EXPORTS.h>
9#include <aws/directconnect/model/AddressFamily.h>
10#include <aws/directconnect/model/BGPPeerState.h>
11#include <aws/directconnect/model/BGPStatus.h>
22namespace DirectConnect {
32 AWS_DIRECTCONNECT_API
BGPPeer() =
default;
43 template <
typename BgpPeerIdT = Aws::String>
45 m_bgpPeerIdHasBeenSet =
true;
46 m_bgpPeerId = std::forward<BgpPeerIdT>(value);
48 template <
typename BgpPeerIdT = Aws::String>
69 inline int GetAsn()
const {
return m_asn; }
72 m_asnHasBeenSet =
true;
98 inline long long GetAsnLong()
const {
return m_asnLong; }
101 m_asnLongHasBeenSet =
true;
117 template <
typename AuthKeyT = Aws::String>
119 m_authKeyHasBeenSet =
true;
120 m_authKey = std::forward<AuthKeyT>(value);
122 template <
typename AuthKeyT = Aws::String>
136 m_addressFamilyHasBeenSet =
true;
137 m_addressFamily = value;
151 template <
typename AmazonAddressT = Aws::String>
153 m_amazonAddressHasBeenSet =
true;
154 m_amazonAddress = std::forward<AmazonAddressT>(value);
156 template <
typename AmazonAddressT = Aws::String>
169 template <
typename CustomerAddressT = Aws::String>
171 m_customerAddressHasBeenSet =
true;
172 m_customerAddress = std::forward<CustomerAddressT>(value);
174 template <
typename CustomerAddressT = Aws::String>
196 m_bgpPeerStateHasBeenSet =
true;
197 m_bgpPeerState = value;
217 m_bgpStatusHasBeenSet =
true;
232 template <
typename AwsDeviceV2T = Aws::String>
234 m_awsDeviceV2HasBeenSet =
true;
235 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
237 template <
typename AwsDeviceV2T = Aws::String>
252 template <
typename AwsLogicalDeviceIdT = Aws::String>
254 m_awsLogicalDeviceIdHasBeenSet =
true;
255 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
257 template <
typename AwsLogicalDeviceIdT = Aws::String>
268 long long m_asnLong{0};
285 bool m_bgpPeerIdHasBeenSet =
false;
286 bool m_asnHasBeenSet =
false;
287 bool m_asnLongHasBeenSet =
false;
288 bool m_authKeyHasBeenSet =
false;
289 bool m_addressFamilyHasBeenSet =
false;
290 bool m_amazonAddressHasBeenSet =
false;
291 bool m_customerAddressHasBeenSet =
false;
292 bool m_bgpPeerStateHasBeenSet =
false;
293 bool m_bgpStatusHasBeenSet =
false;
294 bool m_awsDeviceV2HasBeenSet =
false;
295 bool m_awsLogicalDeviceIdHasBeenSet =
false;
BGPStatus GetBgpStatus() const
AWS_DIRECTCONNECT_API BGPPeer()=default
void SetBgpStatus(BGPStatus value)
bool BgpPeerStateHasBeenSet() const
BGPPeer & WithCustomerAddress(CustomerAddressT &&value)
void SetBgpPeerId(BgpPeerIdT &&value)
bool CustomerAddressHasBeenSet() const
long long GetAsnLong() const
void SetAuthKey(AuthKeyT &&value)
bool BgpStatusHasBeenSet() const
BGPPeer & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
bool AmazonAddressHasBeenSet() const
AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBgpPeerId() const
AWS_DIRECTCONNECT_API BGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsDeviceV2() const
BGPPeer & WithBgpStatus(BGPStatus value)
const Aws::String & GetAmazonAddress() const
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
bool AwsDeviceV2HasBeenSet() const
BGPPeer & WithBgpPeerState(BGPPeerState value)
void SetAddressFamily(AddressFamily value)
bool BgpPeerIdHasBeenSet() const
void SetBgpPeerState(BGPPeerState value)
bool AddressFamilyHasBeenSet() const
bool AsnLongHasBeenSet() const
BGPPeer & WithAddressFamily(AddressFamily value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
const Aws::String & GetAuthKey() const
bool AuthKeyHasBeenSet() const
BGPPeer & WithAsnLong(long long value)
const Aws::String & GetCustomerAddress() const
bool AsnHasBeenSet() const
void SetAwsDeviceV2(AwsDeviceV2T &&value)
void SetAsnLong(long long value)
BGPPeer & WithBgpPeerId(BgpPeerIdT &&value)
const Aws::String & GetAwsLogicalDeviceId() const
BGPPeer & WithAwsDeviceV2(AwsDeviceV2T &&value)
void SetCustomerAddress(CustomerAddressT &&value)
void SetAmazonAddress(AmazonAddressT &&value)
BGPPeer & WithAsn(int value)
bool AwsLogicalDeviceIdHasBeenSet() const
BGPPeerState GetBgpPeerState() const
BGPPeer & WithAuthKey(AuthKeyT &&value)
BGPPeer & WithAmazonAddress(AmazonAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue