AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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
67 inline int GetAsn() const { return m_asn; }
68 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
69 inline void SetAsn(int value) {
70 m_asnHasBeenSet = true;
71 m_asn = value;
72 }
73 inline BGPPeer& WithAsn(int value) {
74 SetAsn(value);
75 return *this;
76 }
78
80
90 inline long long GetAsnLong() const { return m_asnLong; }
91 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
92 inline void SetAsnLong(long long value) {
93 m_asnLongHasBeenSet = true;
94 m_asnLong = value;
95 }
96 inline BGPPeer& WithAsnLong(long long value) {
97 SetAsnLong(value);
98 return *this;
99 }
101
103
107 inline const Aws::String& GetAuthKey() const { return m_authKey; }
108 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
109 template <typename AuthKeyT = Aws::String>
110 void SetAuthKey(AuthKeyT&& value) {
111 m_authKeyHasBeenSet = true;
112 m_authKey = std::forward<AuthKeyT>(value);
113 }
114 template <typename AuthKeyT = Aws::String>
115 BGPPeer& WithAuthKey(AuthKeyT&& value) {
116 SetAuthKey(std::forward<AuthKeyT>(value));
117 return *this;
118 }
120
122
125 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
126 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
127 inline void SetAddressFamily(AddressFamily value) {
128 m_addressFamilyHasBeenSet = true;
129 m_addressFamily = value;
130 }
132 SetAddressFamily(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
142 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
143 template <typename AmazonAddressT = Aws::String>
144 void SetAmazonAddress(AmazonAddressT&& value) {
145 m_amazonAddressHasBeenSet = true;
146 m_amazonAddress = std::forward<AmazonAddressT>(value);
147 }
148 template <typename AmazonAddressT = Aws::String>
149 BGPPeer& WithAmazonAddress(AmazonAddressT&& value) {
150 SetAmazonAddress(std::forward<AmazonAddressT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
160 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
161 template <typename CustomerAddressT = Aws::String>
162 void SetCustomerAddress(CustomerAddressT&& value) {
163 m_customerAddressHasBeenSet = true;
164 m_customerAddress = std::forward<CustomerAddressT>(value);
165 }
166 template <typename CustomerAddressT = Aws::String>
167 BGPPeer& WithCustomerAddress(CustomerAddressT&& value) {
168 SetCustomerAddress(std::forward<CustomerAddressT>(value));
169 return *this;
170 }
172
174
185 inline BGPPeerState GetBgpPeerState() const { return m_bgpPeerState; }
186 inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
187 inline void SetBgpPeerState(BGPPeerState value) {
188 m_bgpPeerStateHasBeenSet = true;
189 m_bgpPeerState = value;
190 }
192 SetBgpPeerState(value);
193 return *this;
194 }
196
198
206 inline BGPStatus GetBgpStatus() const { return m_bgpStatus; }
207 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
208 inline void SetBgpStatus(BGPStatus value) {
209 m_bgpStatusHasBeenSet = true;
210 m_bgpStatus = value;
211 }
213 SetBgpStatus(value);
214 return *this;
215 }
217
219
222 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
223 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
224 template <typename AwsDeviceV2T = Aws::String>
225 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
226 m_awsDeviceV2HasBeenSet = true;
227 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
228 }
229 template <typename AwsDeviceV2T = Aws::String>
230 BGPPeer& WithAwsDeviceV2(AwsDeviceV2T&& value) {
231 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
232 return *this;
233 }
235
237
242 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
243 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
244 template <typename AwsLogicalDeviceIdT = Aws::String>
245 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
246 m_awsLogicalDeviceIdHasBeenSet = true;
247 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
248 }
249 template <typename AwsLogicalDeviceIdT = Aws::String>
250 BGPPeer& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
251 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_bgpPeerId;
257
258 int m_asn{0};
259
260 long long m_asnLong{0};
261
262 Aws::String m_authKey;
263
264 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
265
266 Aws::String m_amazonAddress;
267
268 Aws::String m_customerAddress;
269
270 BGPPeerState m_bgpPeerState{BGPPeerState::NOT_SET};
271
272 BGPStatus m_bgpStatus{BGPStatus::NOT_SET};
273
274 Aws::String m_awsDeviceV2;
275
276 Aws::String m_awsLogicalDeviceId;
277 bool m_bgpPeerIdHasBeenSet = false;
278 bool m_asnHasBeenSet = false;
279 bool m_asnLongHasBeenSet = false;
280 bool m_authKeyHasBeenSet = false;
281 bool m_addressFamilyHasBeenSet = false;
282 bool m_amazonAddressHasBeenSet = false;
283 bool m_customerAddressHasBeenSet = false;
284 bool m_bgpPeerStateHasBeenSet = false;
285 bool m_bgpStatusHasBeenSet = false;
286 bool m_awsDeviceV2HasBeenSet = false;
287 bool m_awsLogicalDeviceIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace DirectConnect
292} // namespace Aws
BGPStatus GetBgpStatus() const
Definition BGPPeer.h:206
AWS_DIRECTCONNECT_API BGPPeer()=default
void SetBgpStatus(BGPStatus value)
Definition BGPPeer.h:208
BGPPeer & WithCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:167
void SetBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:44
long long GetAsnLong() const
Definition BGPPeer.h:90
void SetAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:110
BGPPeer & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:250
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:222
BGPPeer & WithBgpStatus(BGPStatus value)
Definition BGPPeer.h:212
const Aws::String & GetAmazonAddress() const
Definition BGPPeer.h:141
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:245
BGPPeer & WithBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:191
void SetAddressFamily(AddressFamily value)
Definition BGPPeer.h:127
void SetBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:187
BGPPeer & WithAddressFamily(AddressFamily value)
Definition BGPPeer.h:131
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
Definition BGPPeer.h:125
const Aws::String & GetAuthKey() const
Definition BGPPeer.h:107
BGPPeer & WithAsnLong(long long value)
Definition BGPPeer.h:96
const Aws::String & GetCustomerAddress() const
Definition BGPPeer.h:159
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:225
void SetAsnLong(long long value)
Definition BGPPeer.h:92
BGPPeer & WithBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:49
const Aws::String & GetAwsLogicalDeviceId() const
Definition BGPPeer.h:242
BGPPeer & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:230
void SetCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:162
void SetAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:144
BGPPeer & WithAsn(int value)
Definition BGPPeer.h:73
bool AwsLogicalDeviceIdHasBeenSet() const
Definition BGPPeer.h:243
BGPPeerState GetBgpPeerState() const
Definition BGPPeer.h:185
BGPPeer & WithAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:115
BGPPeer & WithAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:149
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue