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>
67 inline int GetAsn()
const {
return m_asn; }
69 inline void SetAsn(
int value) { m_asnHasBeenSet =
true; m_asn = value; }
84 inline long long GetAsnLong()
const {
return m_asnLong; }
86 inline void SetAsnLong(
long long value) { m_asnLongHasBeenSet =
true; m_asnLong = value; }
97 template<
typename AuthKeyT = Aws::String>
98 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet =
true; m_authKey = std::forward<AuthKeyT>(value); }
99 template<
typename AuthKeyT = Aws::String>
119 template<
typename AmazonAddressT = Aws::String>
120 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet =
true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
121 template<
typename AmazonAddressT = Aws::String>
131 template<
typename CustomerAddressT = Aws::String>
132 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet =
true; m_customerAddress = std::forward<CustomerAddressT>(value); }
133 template<
typename CustomerAddressT = Aws::String>
176 template<
typename AwsDeviceV2T = Aws::String>
177 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet =
true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
178 template<
typename AwsDeviceV2T = Aws::String>
190 template<
typename AwsLogicalDeviceIdT = Aws::String>
191 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet =
true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
192 template<
typename AwsLogicalDeviceIdT = Aws::String>
198 bool m_bgpPeerIdHasBeenSet =
false;
201 bool m_asnHasBeenSet =
false;
203 long long m_asnLong{0};
204 bool m_asnLongHasBeenSet =
false;
207 bool m_authKeyHasBeenSet =
false;
210 bool m_addressFamilyHasBeenSet =
false;
213 bool m_amazonAddressHasBeenSet =
false;
216 bool m_customerAddressHasBeenSet =
false;
219 bool m_bgpPeerStateHasBeenSet =
false;
222 bool m_bgpStatusHasBeenSet =
false;
225 bool m_awsDeviceV2HasBeenSet =
false;
228 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