AWS SDK for C++  1.9.131
AWS SDK for C++
BGPPeer.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DirectConnect
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetBgpPeerId() const{ return m_bgpPeerId; }
47 
51  inline bool BgpPeerIdHasBeenSet() const { return m_bgpPeerIdHasBeenSet; }
52 
56  inline void SetBgpPeerId(const Aws::String& value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId = value; }
57 
61  inline void SetBgpPeerId(Aws::String&& value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId = std::move(value); }
62 
66  inline void SetBgpPeerId(const char* value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId.assign(value); }
67 
71  inline BGPPeer& WithBgpPeerId(const Aws::String& value) { SetBgpPeerId(value); return *this;}
72 
76  inline BGPPeer& WithBgpPeerId(Aws::String&& value) { SetBgpPeerId(std::move(value)); return *this;}
77 
81  inline BGPPeer& WithBgpPeerId(const char* value) { SetBgpPeerId(value); return *this;}
82 
83 
88  inline int GetAsn() const{ return m_asn; }
89 
94  inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
95 
100  inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
101 
106  inline BGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
107 
108 
113  inline const Aws::String& GetAuthKey() const{ return m_authKey; }
114 
119  inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
120 
125  inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
126 
131  inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
132 
137  inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
138 
143  inline BGPPeer& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
144 
149  inline BGPPeer& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
150 
155  inline BGPPeer& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
156 
157 
161  inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
162 
166  inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
167 
171  inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
172 
176  inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
177 
181  inline BGPPeer& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
182 
186  inline BGPPeer& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
187 
188 
192  inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
193 
197  inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
198 
202  inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
203 
207  inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
208 
212  inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
213 
217  inline BGPPeer& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
218 
222  inline BGPPeer& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
223 
227  inline BGPPeer& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
228 
229 
233  inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
234 
238  inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
239 
243  inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
244 
248  inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
249 
253  inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
254 
258  inline BGPPeer& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
259 
263  inline BGPPeer& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
264 
268  inline BGPPeer& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
269 
270 
282  inline const BGPPeerState& GetBgpPeerState() const{ return m_bgpPeerState; }
283 
295  inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
296 
308  inline void SetBgpPeerState(const BGPPeerState& value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = value; }
309 
321  inline void SetBgpPeerState(BGPPeerState&& value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = std::move(value); }
322 
334  inline BGPPeer& WithBgpPeerState(const BGPPeerState& value) { SetBgpPeerState(value); return *this;}
335 
347  inline BGPPeer& WithBgpPeerState(BGPPeerState&& value) { SetBgpPeerState(std::move(value)); return *this;}
348 
349 
358  inline const BGPStatus& GetBgpStatus() const{ return m_bgpStatus; }
359 
368  inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
369 
378  inline void SetBgpStatus(const BGPStatus& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
379 
388  inline void SetBgpStatus(BGPStatus&& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = std::move(value); }
389 
398  inline BGPPeer& WithBgpStatus(const BGPStatus& value) { SetBgpStatus(value); return *this;}
399 
408  inline BGPPeer& WithBgpStatus(BGPStatus&& value) { SetBgpStatus(std::move(value)); return *this;}
409 
410 
414  inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; }
415 
419  inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
420 
424  inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = value; }
425 
429  inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::move(value); }
430 
434  inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2.assign(value); }
435 
439  inline BGPPeer& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;}
440 
444  inline BGPPeer& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;}
445 
449  inline BGPPeer& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;}
450 
451 
457  inline const Aws::String& GetAwsLogicalDeviceId() const{ return m_awsLogicalDeviceId; }
458 
464  inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
465 
471  inline void SetAwsLogicalDeviceId(const Aws::String& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = value; }
472 
478  inline void SetAwsLogicalDeviceId(Aws::String&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::move(value); }
479 
485  inline void SetAwsLogicalDeviceId(const char* value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId.assign(value); }
486 
492  inline BGPPeer& WithAwsLogicalDeviceId(const Aws::String& value) { SetAwsLogicalDeviceId(value); return *this;}
493 
499  inline BGPPeer& WithAwsLogicalDeviceId(Aws::String&& value) { SetAwsLogicalDeviceId(std::move(value)); return *this;}
500 
506  inline BGPPeer& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(value); return *this;}
507 
508  private:
509 
510  Aws::String m_bgpPeerId;
511  bool m_bgpPeerIdHasBeenSet;
512 
513  int m_asn;
514  bool m_asnHasBeenSet;
515 
516  Aws::String m_authKey;
517  bool m_authKeyHasBeenSet;
518 
519  AddressFamily m_addressFamily;
520  bool m_addressFamilyHasBeenSet;
521 
522  Aws::String m_amazonAddress;
523  bool m_amazonAddressHasBeenSet;
524 
525  Aws::String m_customerAddress;
526  bool m_customerAddressHasBeenSet;
527 
528  BGPPeerState m_bgpPeerState;
529  bool m_bgpPeerStateHasBeenSet;
530 
531  BGPStatus m_bgpStatus;
532  bool m_bgpStatusHasBeenSet;
533 
534  Aws::String m_awsDeviceV2;
535  bool m_awsDeviceV2HasBeenSet;
536 
537  Aws::String m_awsLogicalDeviceId;
538  bool m_awsLogicalDeviceIdHasBeenSet;
539  };
540 
541 } // namespace Model
542 } // namespace DirectConnect
543 } // namespace Aws
Aws::DirectConnect::Model::BGPPeer::SetAwsLogicalDeviceId
void SetAwsLogicalDeviceId(Aws::String &&value)
Definition: BGPPeer.h:478
Aws::DirectConnect::Model::BGPPeer::WithBgpPeerState
BGPPeer & WithBgpPeerState(const BGPPeerState &value)
Definition: BGPPeer.h:334
Aws::DirectConnect::Model::BGPPeer::GetBgpPeerState
const BGPPeerState & GetBgpPeerState() const
Definition: BGPPeer.h:282
Aws::DirectConnect::Model::BGPPeer::GetBgpStatus
const BGPStatus & GetBgpStatus() const
Definition: BGPPeer.h:358
Aws::DirectConnect::Model::BGPPeer::WithAmazonAddress
BGPPeer & WithAmazonAddress(const char *value)
Definition: BGPPeer.h:227
Aws::DirectConnect::Model::BGPPeer::BgpPeerIdHasBeenSet
bool BgpPeerIdHasBeenSet() const
Definition: BGPPeer.h:51
Aws::DirectConnect::Model::BGPPeer::SetCustomerAddress
void SetCustomerAddress(const char *value)
Definition: BGPPeer.h:253
Aws::DirectConnect::Model::BGPPeer::WithCustomerAddress
BGPPeer & WithCustomerAddress(const char *value)
Definition: BGPPeer.h:268
Aws::DirectConnect::Model::BGPPeer::SetAddressFamily
void SetAddressFamily(AddressFamily &&value)
Definition: BGPPeer.h:176
Aws::DirectConnect::Model::BGPPeer::BGPPeer
BGPPeer()
Aws::DirectConnect::Model::AddressFamily
AddressFamily
Definition: AddressFamily.h:17
Aws::DirectConnect::Model::BGPPeer::SetAmazonAddress
void SetAmazonAddress(const Aws::String &value)
Definition: BGPPeer.h:202
Aws::DirectConnect::Model::BGPPeer::GetAddressFamily
const AddressFamily & GetAddressFamily() const
Definition: BGPPeer.h:161
Aws::DirectConnect::Model::BGPPeer::SetBgpPeerId
void SetBgpPeerId(const Aws::String &value)
Definition: BGPPeer.h:56
Aws::DirectConnect::Model::BGPPeer::WithAddressFamily
BGPPeer & WithAddressFamily(AddressFamily &&value)
Definition: BGPPeer.h:186
Aws::DirectConnect::Model::BGPPeer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectConnect::Model::BGPPeer::SetAwsLogicalDeviceId
void SetAwsLogicalDeviceId(const Aws::String &value)
Definition: BGPPeer.h:471
Aws::DirectConnect::Model::BGPPeer::WithAmazonAddress
BGPPeer & WithAmazonAddress(Aws::String &&value)
Definition: BGPPeer.h:222
Aws::DirectConnect::Model::BGPPeer::GetAuthKey
const Aws::String & GetAuthKey() const
Definition: BGPPeer.h:113
BGPPeerState.h
Aws::DirectConnect::Model::BGPPeer::WithAddressFamily
BGPPeer & WithAddressFamily(const AddressFamily &value)
Definition: BGPPeer.h:181
Aws::DirectConnect::Model::BGPPeer::WithAuthKey
BGPPeer & WithAuthKey(const char *value)
Definition: BGPPeer.h:155
Aws::DirectConnect::Model::BGPPeer::WithCustomerAddress
BGPPeer & WithCustomerAddress(const Aws::String &value)
Definition: BGPPeer.h:258
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::BGPPeer::SetAwsDeviceV2
void SetAwsDeviceV2(Aws::String &&value)
Definition: BGPPeer.h:429
Aws::DirectConnect::Model::BGPPeer::CustomerAddressHasBeenSet
bool CustomerAddressHasBeenSet() const
Definition: BGPPeer.h:238
Aws::DirectConnect::Model::BGPPeer::WithAwsDeviceV2
BGPPeer & WithAwsDeviceV2(Aws::String &&value)
Definition: BGPPeer.h:444
Aws::DirectConnect::Model::BGPPeer::AuthKeyHasBeenSet
bool AuthKeyHasBeenSet() const
Definition: BGPPeer.h:119
Aws::DirectConnect::Model::BGPPeer::WithAuthKey
BGPPeer & WithAuthKey(const Aws::String &value)
Definition: BGPPeer.h:143
Aws::DirectConnect::Model::BGPPeer::WithAwsDeviceV2
BGPPeer & WithAwsDeviceV2(const char *value)
Definition: BGPPeer.h:449
Aws::DirectConnect::Model::BGPPeerState
BGPPeerState
Definition: BGPPeerState.h:17
Aws::DirectConnect::Model::BGPPeer::WithAuthKey
BGPPeer & WithAuthKey(Aws::String &&value)
Definition: BGPPeer.h:149
Aws::DirectConnect::Model::BGPPeer::operator=
BGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::BGPPeer::AddressFamilyHasBeenSet
bool AddressFamilyHasBeenSet() const
Definition: BGPPeer.h:166
Aws::DirectConnect::Model::BGPPeer::AmazonAddressHasBeenSet
bool AmazonAddressHasBeenSet() const
Definition: BGPPeer.h:197
Aws::DirectConnect::Model::BGPPeer::SetAmazonAddress
void SetAmazonAddress(const char *value)
Definition: BGPPeer.h:212
BGPStatus.h
Aws::DirectConnect::Model::BGPPeer::GetAsn
int GetAsn() const
Definition: BGPPeer.h:88
Aws::DirectConnect::Model::BGPPeer::SetBgpPeerId
void SetBgpPeerId(const char *value)
Definition: BGPPeer.h:66
Aws::DirectConnect::Model::BGPPeer::SetCustomerAddress
void SetCustomerAddress(Aws::String &&value)
Definition: BGPPeer.h:248
Aws::DirectConnect::Model::BGPPeer::GetAwsDeviceV2
const Aws::String & GetAwsDeviceV2() const
Definition: BGPPeer.h:414
Aws::DirectConnect::Model::BGPPeer::WithCustomerAddress
BGPPeer & WithCustomerAddress(Aws::String &&value)
Definition: BGPPeer.h:263
Aws::DirectConnect::Model::BGPPeer::SetAddressFamily
void SetAddressFamily(const AddressFamily &value)
Definition: BGPPeer.h:171
Aws::DirectConnect::Model::BGPPeer::WithAwsLogicalDeviceId
BGPPeer & WithAwsLogicalDeviceId(const char *value)
Definition: BGPPeer.h:506
Aws::DirectConnect::Model::BGPPeer::SetAmazonAddress
void SetAmazonAddress(Aws::String &&value)
Definition: BGPPeer.h:207
Aws::DirectConnect::Model::BGPPeer::GetCustomerAddress
const Aws::String & GetCustomerAddress() const
Definition: BGPPeer.h:233
Aws::DirectConnect::Model::BGPPeer
Definition: BGPPeer.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DirectConnect::Model::BGPPeer::SetAuthKey
void SetAuthKey(const Aws::String &value)
Definition: BGPPeer.h:125
AWSString.h
Aws::DirectConnect::Model::BGPPeer::GetAmazonAddress
const Aws::String & GetAmazonAddress() const
Definition: BGPPeer.h:192
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DirectConnect::Model::BGPPeer::BgpStatusHasBeenSet
bool BgpStatusHasBeenSet() const
Definition: BGPPeer.h:368
AddressFamily.h
Aws::DirectConnect::Model::BGPPeer::SetAwsDeviceV2
void SetAwsDeviceV2(const Aws::String &value)
Definition: BGPPeer.h:424
Aws::DirectConnect::Model::BGPPeer::BgpPeerStateHasBeenSet
bool BgpPeerStateHasBeenSet() const
Definition: BGPPeer.h:295
Aws::DirectConnect::Model::BGPPeer::GetAwsLogicalDeviceId
const Aws::String & GetAwsLogicalDeviceId() const
Definition: BGPPeer.h:457
Aws::DirectConnect::Model::BGPPeer::WithBgpPeerId
BGPPeer & WithBgpPeerId(const Aws::String &value)
Definition: BGPPeer.h:71
Aws::DirectConnect::Model::BGPPeer::SetAuthKey
void SetAuthKey(const char *value)
Definition: BGPPeer.h:137
Aws::DirectConnect::Model::BGPPeer::WithAwsDeviceV2
BGPPeer & WithAwsDeviceV2(const Aws::String &value)
Definition: BGPPeer.h:439
Aws::DirectConnect::Model::BGPPeer::SetAwsDeviceV2
void SetAwsDeviceV2(const char *value)
Definition: BGPPeer.h:434
Aws::DirectConnect::Model::BGPPeer::WithAmazonAddress
BGPPeer & WithAmazonAddress(const Aws::String &value)
Definition: BGPPeer.h:217
Aws::DirectConnect::Model::BGPPeer::AwsLogicalDeviceIdHasBeenSet
bool AwsLogicalDeviceIdHasBeenSet() const
Definition: BGPPeer.h:464
Aws::DirectConnect::Model::BGPPeer::SetAsn
void SetAsn(int value)
Definition: BGPPeer.h:100
Aws::DirectConnect::Model::BGPPeer::WithAwsLogicalDeviceId
BGPPeer & WithAwsLogicalDeviceId(Aws::String &&value)
Definition: BGPPeer.h:499
Aws::DirectConnect::Model::BGPPeer::SetAuthKey
void SetAuthKey(Aws::String &&value)
Definition: BGPPeer.h:131
Aws::DirectConnect::Model::BGPStatus
BGPStatus
Definition: BGPStatus.h:17
Aws::DirectConnect::Model::BGPPeer::WithAsn
BGPPeer & WithAsn(int value)
Definition: BGPPeer.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::BGPPeer::WithBgpPeerId
BGPPeer & WithBgpPeerId(const char *value)
Definition: BGPPeer.h:81
Aws::DirectConnect::Model::BGPPeer::BGPPeer
BGPPeer(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::BGPPeer::WithAwsLogicalDeviceId
BGPPeer & WithAwsLogicalDeviceId(const Aws::String &value)
Definition: BGPPeer.h:492
Aws::DirectConnect::Model::BGPPeer::AwsDeviceV2HasBeenSet
bool AwsDeviceV2HasBeenSet() const
Definition: BGPPeer.h:419
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectConnect::Model::BGPPeer::WithBgpStatus
BGPPeer & WithBgpStatus(BGPStatus &&value)
Definition: BGPPeer.h:408
Aws::DirectConnect::Model::BGPPeer::WithBgpStatus
BGPPeer & WithBgpStatus(const BGPStatus &value)
Definition: BGPPeer.h:398
Aws::DirectConnect::Model::BGPPeer::GetBgpPeerId
const Aws::String & GetBgpPeerId() const
Definition: BGPPeer.h:46
Aws::DirectConnect::Model::BGPPeer::SetBgpPeerState
void SetBgpPeerState(const BGPPeerState &value)
Definition: BGPPeer.h:308
Aws::DirectConnect::Model::BGPPeer::SetCustomerAddress
void SetCustomerAddress(const Aws::String &value)
Definition: BGPPeer.h:243
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::BGPPeer::WithBgpPeerState
BGPPeer & WithBgpPeerState(BGPPeerState &&value)
Definition: BGPPeer.h:347
Aws::DirectConnect::Model::BGPPeer::SetBgpPeerId
void SetBgpPeerId(Aws::String &&value)
Definition: BGPPeer.h:61
Aws::DirectConnect::Model::BGPPeer::SetBgpStatus
void SetBgpStatus(BGPStatus &&value)
Definition: BGPPeer.h:388
Aws::DirectConnect::Model::BGPPeer::AsnHasBeenSet
bool AsnHasBeenSet() const
Definition: BGPPeer.h:94
Aws::DirectConnect::Model::BGPPeer::SetBgpPeerState
void SetBgpPeerState(BGPPeerState &&value)
Definition: BGPPeer.h:321
Aws::DirectConnect::Model::BGPPeer::SetAwsLogicalDeviceId
void SetAwsLogicalDeviceId(const char *value)
Definition: BGPPeer.h:485
Aws::DirectConnect::Model::BGPPeer::WithBgpPeerId
BGPPeer & WithBgpPeerId(Aws::String &&value)
Definition: BGPPeer.h:76
Aws::DirectConnect::Model::BGPPeer::SetBgpStatus
void SetBgpStatus(const BGPStatus &value)
Definition: BGPPeer.h:378