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>
67 inline int GetAsn()
const {
return m_asn; }
70 m_asnHasBeenSet =
true;
90 inline long long GetAsnLong()
const {
return m_asnLong; }
93 m_asnLongHasBeenSet =
true;
109 template <
typename AuthKeyT = Aws::String>
111 m_authKeyHasBeenSet =
true;
112 m_authKey = std::forward<AuthKeyT>(value);
114 template <
typename AuthKeyT = Aws::String>
128 m_addressFamilyHasBeenSet =
true;
129 m_addressFamily = value;
143 template <
typename AmazonAddressT = Aws::String>
145 m_amazonAddressHasBeenSet =
true;
146 m_amazonAddress = std::forward<AmazonAddressT>(value);
148 template <
typename AmazonAddressT = Aws::String>
161 template <
typename CustomerAddressT = Aws::String>
163 m_customerAddressHasBeenSet =
true;
164 m_customerAddress = std::forward<CustomerAddressT>(value);
166 template <
typename CustomerAddressT = Aws::String>
188 m_bgpPeerStateHasBeenSet =
true;
189 m_bgpPeerState = value;
209 m_bgpStatusHasBeenSet =
true;
224 template <
typename AwsDeviceV2T = Aws::String>
226 m_awsDeviceV2HasBeenSet =
true;
227 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
229 template <
typename AwsDeviceV2T = Aws::String>
244 template <
typename AwsLogicalDeviceIdT = Aws::String>
246 m_awsLogicalDeviceIdHasBeenSet =
true;
247 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
249 template <
typename AwsLogicalDeviceIdT = Aws::String>
260 long long m_asnLong{0};
277 bool m_bgpPeerIdHasBeenSet =
false;
278 bool m_asnHasBeenSet =
false;
279 bool m_asnLongHasBeenSet =
false;
280 bool m_authKeyHasBeenSet =
false;
281 bool m_addressFamilyHasBeenSet =
false;
282 bool m_amazonAddressHasBeenSet =
false;
283 bool m_customerAddressHasBeenSet =
false;
284 bool m_bgpPeerStateHasBeenSet =
false;
285 bool m_bgpStatusHasBeenSet =
false;
286 bool m_awsDeviceV2HasBeenSet =
false;
287 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