AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
BGPPeer.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectConnect {
23namespace Model {
24
30class BGPPeer {
31 public:
32 AWS_DIRECTCONNECT_API BGPPeer() = default;
33 AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTCONNECT_API BGPPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetBgpPeerId() const { return m_bgpPeerId; }
42 inline bool BgpPeerIdHasBeenSet() const { return m_bgpPeerIdHasBeenSet; }
43 template <typename BgpPeerIdT = Aws::String>
44 void SetBgpPeerId(BgpPeerIdT&& value) {
45 m_bgpPeerIdHasBeenSet = true;
46 m_bgpPeerId = std::forward<BgpPeerIdT>(value);
47 }
48 template <typename BgpPeerIdT = Aws::String>
49 BGPPeer& WithBgpPeerId(BgpPeerIdT&& value) {
50 SetBgpPeerId(std::forward<BgpPeerIdT>(value));
51 return *this;
52 }
54
56
69 inline int GetAsn() const { return m_asn; }
70 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
71 inline void SetAsn(int value) {
72 m_asnHasBeenSet = true;
73 m_asn = value;
74 }
75 inline BGPPeer& WithAsn(int value) {
76 SetAsn(value);
77 return *this;
78 }
80
82
98 inline long long GetAsnLong() const { return m_asnLong; }
99 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
100 inline void SetAsnLong(long long value) {
101 m_asnLongHasBeenSet = true;
102 m_asnLong = value;
103 }
104 inline BGPPeer& WithAsnLong(long long value) {
105 SetAsnLong(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetAuthKey() const { return m_authKey; }
116 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
117 template <typename AuthKeyT = Aws::String>
118 void SetAuthKey(AuthKeyT&& value) {
119 m_authKeyHasBeenSet = true;
120 m_authKey = std::forward<AuthKeyT>(value);
121 }
122 template <typename AuthKeyT = Aws::String>
123 BGPPeer& WithAuthKey(AuthKeyT&& value) {
124 SetAuthKey(std::forward<AuthKeyT>(value));
125 return *this;
126 }
128
130
133 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
134 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
135 inline void SetAddressFamily(AddressFamily value) {
136 m_addressFamilyHasBeenSet = true;
137 m_addressFamily = value;
138 }
140 SetAddressFamily(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
150 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
151 template <typename AmazonAddressT = Aws::String>
152 void SetAmazonAddress(AmazonAddressT&& value) {
153 m_amazonAddressHasBeenSet = true;
154 m_amazonAddress = std::forward<AmazonAddressT>(value);
155 }
156 template <typename AmazonAddressT = Aws::String>
157 BGPPeer& WithAmazonAddress(AmazonAddressT&& value) {
158 SetAmazonAddress(std::forward<AmazonAddressT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
168 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
169 template <typename CustomerAddressT = Aws::String>
170 void SetCustomerAddress(CustomerAddressT&& value) {
171 m_customerAddressHasBeenSet = true;
172 m_customerAddress = std::forward<CustomerAddressT>(value);
173 }
174 template <typename CustomerAddressT = Aws::String>
175 BGPPeer& WithCustomerAddress(CustomerAddressT&& value) {
176 SetCustomerAddress(std::forward<CustomerAddressT>(value));
177 return *this;
178 }
180
182
193 inline BGPPeerState GetBgpPeerState() const { return m_bgpPeerState; }
194 inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
195 inline void SetBgpPeerState(BGPPeerState value) {
196 m_bgpPeerStateHasBeenSet = true;
197 m_bgpPeerState = value;
198 }
200 SetBgpPeerState(value);
201 return *this;
202 }
204
206
214 inline BGPStatus GetBgpStatus() const { return m_bgpStatus; }
215 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
216 inline void SetBgpStatus(BGPStatus value) {
217 m_bgpStatusHasBeenSet = true;
218 m_bgpStatus = value;
219 }
221 SetBgpStatus(value);
222 return *this;
223 }
225
227
230 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
231 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
232 template <typename AwsDeviceV2T = Aws::String>
233 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
234 m_awsDeviceV2HasBeenSet = true;
235 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
236 }
237 template <typename AwsDeviceV2T = Aws::String>
238 BGPPeer& WithAwsDeviceV2(AwsDeviceV2T&& value) {
239 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
240 return *this;
241 }
243
245
250 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
251 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
252 template <typename AwsLogicalDeviceIdT = Aws::String>
253 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
254 m_awsLogicalDeviceIdHasBeenSet = true;
255 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
256 }
257 template <typename AwsLogicalDeviceIdT = Aws::String>
258 BGPPeer& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
259 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
260 return *this;
261 }
263 private:
264 Aws::String m_bgpPeerId;
265
266 int m_asn{0};
267
268 long long m_asnLong{0};
269
270 Aws::String m_authKey;
271
272 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
273
274 Aws::String m_amazonAddress;
275
276 Aws::String m_customerAddress;
277
278 BGPPeerState m_bgpPeerState{BGPPeerState::NOT_SET};
279
280 BGPStatus m_bgpStatus{BGPStatus::NOT_SET};
281
282 Aws::String m_awsDeviceV2;
283
284 Aws::String m_awsLogicalDeviceId;
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;
296};
297
298} // namespace Model
299} // namespace DirectConnect
300} // namespace Aws
BGPStatus GetBgpStatus() const
Definition BGPPeer.h:214
AWS_DIRECTCONNECT_API BGPPeer()=default
void SetBgpStatus(BGPStatus value)
Definition BGPPeer.h:216
BGPPeer & WithCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:175
void SetBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:44
long long GetAsnLong() const
Definition BGPPeer.h:98
void SetAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:118
BGPPeer & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:258
AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBgpPeerId() const
Definition BGPPeer.h:41
AWS_DIRECTCONNECT_API BGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsDeviceV2() const
Definition BGPPeer.h:230
BGPPeer & WithBgpStatus(BGPStatus value)
Definition BGPPeer.h:220
const Aws::String & GetAmazonAddress() const
Definition BGPPeer.h:149
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:253
BGPPeer & WithBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:199
void SetAddressFamily(AddressFamily value)
Definition BGPPeer.h:135
void SetBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:195
BGPPeer & WithAddressFamily(AddressFamily value)
Definition BGPPeer.h:139
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
Definition BGPPeer.h:133
const Aws::String & GetAuthKey() const
Definition BGPPeer.h:115
BGPPeer & WithAsnLong(long long value)
Definition BGPPeer.h:104
const Aws::String & GetCustomerAddress() const
Definition BGPPeer.h:167
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:233
void SetAsnLong(long long value)
Definition BGPPeer.h:100
BGPPeer & WithBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:49
const Aws::String & GetAwsLogicalDeviceId() const
Definition BGPPeer.h:250
BGPPeer & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:238
void SetCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:170
void SetAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:152
BGPPeer & WithAsn(int value)
Definition BGPPeer.h:75
bool AwsLogicalDeviceIdHasBeenSet() const
Definition BGPPeer.h:251
BGPPeerState GetBgpPeerState() const
Definition BGPPeer.h:193
BGPPeer & WithAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:123
BGPPeer & WithAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue