AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BGPPeer.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectConnect
25{
26namespace Model
27{
28
34 class BGPPeer
35 {
36 public:
37 AWS_DIRECTCONNECT_API BGPPeer() = default;
38 AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTCONNECT_API BGPPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetBgpPeerId() const { return m_bgpPeerId; }
48 inline bool BgpPeerIdHasBeenSet() const { return m_bgpPeerIdHasBeenSet; }
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>
52 BGPPeer& WithBgpPeerId(BgpPeerIdT&& value) { SetBgpPeerId(std::forward<BgpPeerIdT>(value)); return *this;}
54
56
60 inline int GetAsn() const { return m_asn; }
61 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
62 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
63 inline BGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
65
67
71 inline const Aws::String& GetAuthKey() const { return m_authKey; }
72 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
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>
76 BGPPeer& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
78
80
83 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
84 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
85 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
86 inline BGPPeer& WithAddressFamily(AddressFamily value) { SetAddressFamily(value); return *this;}
88
90
93 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
94 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
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>
98 BGPPeer& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
100
102
105 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
106 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
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>
110 BGPPeer& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
112
114
125 inline BGPPeerState GetBgpPeerState() const { return m_bgpPeerState; }
126 inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
127 inline void SetBgpPeerState(BGPPeerState value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = value; }
128 inline BGPPeer& WithBgpPeerState(BGPPeerState value) { SetBgpPeerState(value); return *this;}
130
132
140 inline BGPStatus GetBgpStatus() const { return m_bgpStatus; }
141 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
142 inline void SetBgpStatus(BGPStatus value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
143 inline BGPPeer& WithBgpStatus(BGPStatus value) { SetBgpStatus(value); return *this;}
145
147
150 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
151 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
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>
155 BGPPeer& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
157
159
164 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
165 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
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>
169 BGPPeer& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
171 private:
172
173 Aws::String m_bgpPeerId;
174 bool m_bgpPeerIdHasBeenSet = false;
175
176 int m_asn{0};
177 bool m_asnHasBeenSet = false;
178
179 Aws::String m_authKey;
180 bool m_authKeyHasBeenSet = false;
181
182 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
183 bool m_addressFamilyHasBeenSet = false;
184
185 Aws::String m_amazonAddress;
186 bool m_amazonAddressHasBeenSet = false;
187
188 Aws::String m_customerAddress;
189 bool m_customerAddressHasBeenSet = false;
190
191 BGPPeerState m_bgpPeerState{BGPPeerState::NOT_SET};
192 bool m_bgpPeerStateHasBeenSet = false;
193
194 BGPStatus m_bgpStatus{BGPStatus::NOT_SET};
195 bool m_bgpStatusHasBeenSet = false;
196
197 Aws::String m_awsDeviceV2;
198 bool m_awsDeviceV2HasBeenSet = false;
199
200 Aws::String m_awsLogicalDeviceId;
201 bool m_awsLogicalDeviceIdHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace DirectConnect
206} // namespace Aws
BGPStatus GetBgpStatus() const
Definition BGPPeer.h:140
AWS_DIRECTCONNECT_API BGPPeer()=default
void SetBgpStatus(BGPStatus value)
Definition BGPPeer.h:142
BGPPeer & WithCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:110
void SetBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:50
void SetAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:74
BGPPeer & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:169
AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBgpPeerId() const
Definition BGPPeer.h:47
AWS_DIRECTCONNECT_API BGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsDeviceV2() const
Definition BGPPeer.h:150
BGPPeer & WithBgpStatus(BGPStatus value)
Definition BGPPeer.h:143
const Aws::String & GetAmazonAddress() const
Definition BGPPeer.h:93
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:167
BGPPeer & WithBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:128
void SetAddressFamily(AddressFamily value)
Definition BGPPeer.h:85
void SetBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:127
BGPPeer & WithAddressFamily(AddressFamily value)
Definition BGPPeer.h:86
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
Definition BGPPeer.h:83
const Aws::String & GetAuthKey() const
Definition BGPPeer.h:71
const Aws::String & GetCustomerAddress() const
Definition BGPPeer.h:105
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:153
BGPPeer & WithBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:52
const Aws::String & GetAwsLogicalDeviceId() const
Definition BGPPeer.h:164
BGPPeer & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:155
void SetCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:108
void SetAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:96
BGPPeer & WithAsn(int value)
Definition BGPPeer.h:63
bool AwsLogicalDeviceIdHasBeenSet() const
Definition BGPPeer.h:165
BGPPeerState GetBgpPeerState() const
Definition BGPPeer.h:125
BGPPeer & WithAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:76
BGPPeer & WithAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue