AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBgpPeerId(const Aws::String& value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId = value; }
50 inline void SetBgpPeerId(Aws::String&& value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId = std::move(value); }
51 inline void SetBgpPeerId(const char* value) { m_bgpPeerIdHasBeenSet = true; m_bgpPeerId.assign(value); }
52 inline BGPPeer& WithBgpPeerId(const Aws::String& value) { SetBgpPeerId(value); return *this;}
53 inline BGPPeer& WithBgpPeerId(Aws::String&& value) { SetBgpPeerId(std::move(value)); return *this;}
54 inline BGPPeer& WithBgpPeerId(const char* value) { SetBgpPeerId(value); return *this;}
56
58
62 inline int GetAsn() const{ return m_asn; }
63 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
64 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
65 inline BGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
67
69
73 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
74 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
75 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
76 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
77 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
78 inline BGPPeer& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
79 inline BGPPeer& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
80 inline BGPPeer& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
82
84
87 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
88 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
89 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
90 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
91 inline BGPPeer& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
92 inline BGPPeer& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
100 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
101 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
102 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
103 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
104 inline BGPPeer& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
105 inline BGPPeer& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
106 inline BGPPeer& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
108
110
113 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
114 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
115 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
116 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
117 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
118 inline BGPPeer& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
119 inline BGPPeer& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
120 inline BGPPeer& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
122
124
135 inline const BGPPeerState& GetBgpPeerState() const{ return m_bgpPeerState; }
136 inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
137 inline void SetBgpPeerState(const BGPPeerState& value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = value; }
138 inline void SetBgpPeerState(BGPPeerState&& value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = std::move(value); }
139 inline BGPPeer& WithBgpPeerState(const BGPPeerState& value) { SetBgpPeerState(value); return *this;}
140 inline BGPPeer& WithBgpPeerState(BGPPeerState&& value) { SetBgpPeerState(std::move(value)); return *this;}
142
144
152 inline const BGPStatus& GetBgpStatus() const{ return m_bgpStatus; }
153 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
154 inline void SetBgpStatus(const BGPStatus& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
155 inline void SetBgpStatus(BGPStatus&& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = std::move(value); }
156 inline BGPPeer& WithBgpStatus(const BGPStatus& value) { SetBgpStatus(value); return *this;}
157 inline BGPPeer& WithBgpStatus(BGPStatus&& value) { SetBgpStatus(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; }
165 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
166 inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = value; }
167 inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::move(value); }
168 inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2.assign(value); }
169 inline BGPPeer& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;}
170 inline BGPPeer& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;}
171 inline BGPPeer& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;}
173
175
180 inline const Aws::String& GetAwsLogicalDeviceId() const{ return m_awsLogicalDeviceId; }
181 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
182 inline void SetAwsLogicalDeviceId(const Aws::String& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = value; }
183 inline void SetAwsLogicalDeviceId(Aws::String&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::move(value); }
184 inline void SetAwsLogicalDeviceId(const char* value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId.assign(value); }
185 inline BGPPeer& WithAwsLogicalDeviceId(const Aws::String& value) { SetAwsLogicalDeviceId(value); return *this;}
186 inline BGPPeer& WithAwsLogicalDeviceId(Aws::String&& value) { SetAwsLogicalDeviceId(std::move(value)); return *this;}
187 inline BGPPeer& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(value); return *this;}
189 private:
190
191 Aws::String m_bgpPeerId;
192 bool m_bgpPeerIdHasBeenSet = false;
193
194 int m_asn;
195 bool m_asnHasBeenSet = false;
196
197 Aws::String m_authKey;
198 bool m_authKeyHasBeenSet = false;
199
200 AddressFamily m_addressFamily;
201 bool m_addressFamilyHasBeenSet = false;
202
203 Aws::String m_amazonAddress;
204 bool m_amazonAddressHasBeenSet = false;
205
206 Aws::String m_customerAddress;
207 bool m_customerAddressHasBeenSet = false;
208
209 BGPPeerState m_bgpPeerState;
210 bool m_bgpPeerStateHasBeenSet = false;
211
212 BGPStatus m_bgpStatus;
213 bool m_bgpStatusHasBeenSet = false;
214
215 Aws::String m_awsDeviceV2;
216 bool m_awsDeviceV2HasBeenSet = false;
217
218 Aws::String m_awsLogicalDeviceId;
219 bool m_awsLogicalDeviceIdHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace DirectConnect
224} // namespace Aws
void SetBgpPeerId(Aws::String &&value)
Definition BGPPeer.h:50
void SetAmazonAddress(const char *value)
Definition BGPPeer.h:103
BGPPeer & WithBgpPeerId(const Aws::String &value)
Definition BGPPeer.h:52
void SetAwsDeviceV2(Aws::String &&value)
Definition BGPPeer.h:167
BGPPeer & WithAwsDeviceV2(const char *value)
Definition BGPPeer.h:171
void SetAwsDeviceV2(const Aws::String &value)
Definition BGPPeer.h:166
BGPPeer & WithBgpPeerState(const BGPPeerState &value)
Definition BGPPeer.h:139
AWS_DIRECTCONNECT_API BGPPeer(Aws::Utils::Json::JsonView jsonValue)
BGPPeer & WithBgpStatus(const BGPStatus &value)
Definition BGPPeer.h:156
BGPPeer & WithBgpStatus(BGPStatus &&value)
Definition BGPPeer.h:157
const Aws::String & GetBgpPeerId() const
Definition BGPPeer.h:47
AWS_DIRECTCONNECT_API BGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAwsDeviceV2(const char *value)
Definition BGPPeer.h:168
const Aws::String & GetAwsDeviceV2() const
Definition BGPPeer.h:164
BGPPeer & WithBgpPeerId(Aws::String &&value)
Definition BGPPeer.h:53
void SetAuthKey(const Aws::String &value)
Definition BGPPeer.h:75
void SetBgpPeerId(const char *value)
Definition BGPPeer.h:51
const Aws::String & GetAmazonAddress() const
Definition BGPPeer.h:99
void SetAddressFamily(AddressFamily &&value)
Definition BGPPeer.h:90
void SetAuthKey(const char *value)
Definition BGPPeer.h:77
void SetAwsLogicalDeviceId(const char *value)
Definition BGPPeer.h:184
BGPPeer & WithAwsDeviceV2(const Aws::String &value)
Definition BGPPeer.h:169
BGPPeer & WithCustomerAddress(const char *value)
Definition BGPPeer.h:120
void SetCustomerAddress(Aws::String &&value)
Definition BGPPeer.h:116
BGPPeer & WithAmazonAddress(const char *value)
Definition BGPPeer.h:106
BGPPeer & WithBgpPeerState(BGPPeerState &&value)
Definition BGPPeer.h:140
void SetBgpPeerState(BGPPeerState &&value)
Definition BGPPeer.h:138
void SetAmazonAddress(const Aws::String &value)
Definition BGPPeer.h:101
BGPPeer & WithAwsLogicalDeviceId(const char *value)
Definition BGPPeer.h:187
BGPPeer & WithBgpPeerId(const char *value)
Definition BGPPeer.h:54
BGPPeer & WithAmazonAddress(const Aws::String &value)
Definition BGPPeer.h:104
void SetAmazonAddress(Aws::String &&value)
Definition BGPPeer.h:102
AWS_DIRECTCONNECT_API BGPPeer()
void SetCustomerAddress(const Aws::String &value)
Definition BGPPeer.h:115
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
BGPPeer & WithAuthKey(const char *value)
Definition BGPPeer.h:80
BGPPeer & WithAwsDeviceV2(Aws::String &&value)
Definition BGPPeer.h:170
const Aws::String & GetAuthKey() const
Definition BGPPeer.h:73
void SetAwsLogicalDeviceId(const Aws::String &value)
Definition BGPPeer.h:182
BGPPeer & WithAddressFamily(AddressFamily &&value)
Definition BGPPeer.h:92
BGPPeer & WithAuthKey(const Aws::String &value)
Definition BGPPeer.h:78
const Aws::String & GetCustomerAddress() const
Definition BGPPeer.h:113
void SetBgpPeerId(const Aws::String &value)
Definition BGPPeer.h:49
BGPPeer & WithCustomerAddress(Aws::String &&value)
Definition BGPPeer.h:119
const BGPPeerState & GetBgpPeerState() const
Definition BGPPeer.h:135
const AddressFamily & GetAddressFamily() const
Definition BGPPeer.h:87
void SetAuthKey(Aws::String &&value)
Definition BGPPeer.h:76
const BGPStatus & GetBgpStatus() const
Definition BGPPeer.h:152
void SetAwsLogicalDeviceId(Aws::String &&value)
Definition BGPPeer.h:183
void SetBgpStatus(const BGPStatus &value)
Definition BGPPeer.h:154
BGPPeer & WithCustomerAddress(const Aws::String &value)
Definition BGPPeer.h:118
const Aws::String & GetAwsLogicalDeviceId() const
Definition BGPPeer.h:180
void SetBgpStatus(BGPStatus &&value)
Definition BGPPeer.h:155
BGPPeer & WithAwsLogicalDeviceId(Aws::String &&value)
Definition BGPPeer.h:186
void SetCustomerAddress(const char *value)
Definition BGPPeer.h:117
BGPPeer & WithAsn(int value)
Definition BGPPeer.h:65
bool AwsLogicalDeviceIdHasBeenSet() const
Definition BGPPeer.h:181
BGPPeer & WithAddressFamily(const AddressFamily &value)
Definition BGPPeer.h:91
void SetAddressFamily(const AddressFamily &value)
Definition BGPPeer.h:89
BGPPeer & WithAmazonAddress(Aws::String &&value)
Definition BGPPeer.h:105
BGPPeer & WithAwsLogicalDeviceId(const Aws::String &value)
Definition BGPPeer.h:185
BGPPeer & WithAuthKey(Aws::String &&value)
Definition BGPPeer.h:79
void SetBgpPeerState(const BGPPeerState &value)
Definition BGPPeer.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue