7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/AddressFamily.h>
10#include <aws/directconnect/model/BGPPeerState.h>
11#include <aws/directconnect/model/BGPStatus.h>
24namespace DirectConnect
37 AWS_DIRECTCONNECT_API
BGPPeer() =
default;
49 template<
typename BgpPeerIdT = Aws::String>
50 void SetBgpPeerId(BgpPeerIdT&& value) { m_bgpPeerIdHasBeenSet =
true; m_bgpPeerId = std::forward<BgpPeerIdT>(value); }
51 template<
typename BgpPeerIdT = Aws::String>
60 inline int GetAsn()
const {
return m_asn; }
62 inline void SetAsn(
int value) { m_asnHasBeenSet =
true; m_asn = value; }
73 template<
typename AuthKeyT = Aws::String>
74 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet =
true; m_authKey = std::forward<AuthKeyT>(value); }
75 template<
typename AuthKeyT = Aws::String>
95 template<
typename AmazonAddressT = Aws::String>
96 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet =
true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
97 template<
typename AmazonAddressT = Aws::String>
107 template<
typename CustomerAddressT = Aws::String>
108 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet =
true; m_customerAddress = std::forward<CustomerAddressT>(value); }
109 template<
typename CustomerAddressT = Aws::String>
152 template<
typename AwsDeviceV2T = Aws::String>
153 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet =
true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
154 template<
typename AwsDeviceV2T = Aws::String>
166 template<
typename AwsLogicalDeviceIdT = Aws::String>
167 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet =
true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
168 template<
typename AwsLogicalDeviceIdT = Aws::String>
174 bool m_bgpPeerIdHasBeenSet =
false;
177 bool m_asnHasBeenSet =
false;
180 bool m_authKeyHasBeenSet =
false;
183 bool m_addressFamilyHasBeenSet =
false;
186 bool m_amazonAddressHasBeenSet =
false;
189 bool m_customerAddressHasBeenSet =
false;
192 bool m_bgpPeerStateHasBeenSet =
false;
195 bool m_bgpStatusHasBeenSet =
false;
198 bool m_awsDeviceV2HasBeenSet =
false;
201 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
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
BGPPeer & WithAddressFamily(AddressFamily value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
const Aws::String & GetAuthKey() const
bool AuthKeyHasBeenSet() const
const Aws::String & GetCustomerAddress() const
bool AsnHasBeenSet() const
void SetAwsDeviceV2(AwsDeviceV2T &&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