AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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
67 inline int GetAsn() const { return m_asn; }
68 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
69 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
70 inline BGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
72
74
84 inline long long GetAsnLong() const { return m_asnLong; }
85 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
86 inline void SetAsnLong(long long value) { m_asnLongHasBeenSet = true; m_asnLong = value; }
87 inline BGPPeer& WithAsnLong(long long value) { SetAsnLong(value); return *this;}
89
91
95 inline const Aws::String& GetAuthKey() const { return m_authKey; }
96 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
97 template<typename AuthKeyT = Aws::String>
98 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
99 template<typename AuthKeyT = Aws::String>
100 BGPPeer& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
102
104
107 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
108 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
109 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
110 inline BGPPeer& WithAddressFamily(AddressFamily value) { SetAddressFamily(value); return *this;}
112
114
117 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
118 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
119 template<typename AmazonAddressT = Aws::String>
120 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
121 template<typename AmazonAddressT = Aws::String>
122 BGPPeer& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
124
126
129 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
130 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
131 template<typename CustomerAddressT = Aws::String>
132 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
133 template<typename CustomerAddressT = Aws::String>
134 BGPPeer& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
136
138
149 inline BGPPeerState GetBgpPeerState() const { return m_bgpPeerState; }
150 inline bool BgpPeerStateHasBeenSet() const { return m_bgpPeerStateHasBeenSet; }
151 inline void SetBgpPeerState(BGPPeerState value) { m_bgpPeerStateHasBeenSet = true; m_bgpPeerState = value; }
152 inline BGPPeer& WithBgpPeerState(BGPPeerState value) { SetBgpPeerState(value); return *this;}
154
156
164 inline BGPStatus GetBgpStatus() const { return m_bgpStatus; }
165 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
166 inline void SetBgpStatus(BGPStatus value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
167 inline BGPPeer& WithBgpStatus(BGPStatus value) { SetBgpStatus(value); return *this;}
169
171
174 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
175 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
176 template<typename AwsDeviceV2T = Aws::String>
177 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
178 template<typename AwsDeviceV2T = Aws::String>
179 BGPPeer& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
181
183
188 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
189 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
190 template<typename AwsLogicalDeviceIdT = Aws::String>
191 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
192 template<typename AwsLogicalDeviceIdT = Aws::String>
193 BGPPeer& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
195 private:
196
197 Aws::String m_bgpPeerId;
198 bool m_bgpPeerIdHasBeenSet = false;
199
200 int m_asn{0};
201 bool m_asnHasBeenSet = false;
202
203 long long m_asnLong{0};
204 bool m_asnLongHasBeenSet = false;
205
206 Aws::String m_authKey;
207 bool m_authKeyHasBeenSet = false;
208
209 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
210 bool m_addressFamilyHasBeenSet = false;
211
212 Aws::String m_amazonAddress;
213 bool m_amazonAddressHasBeenSet = false;
214
215 Aws::String m_customerAddress;
216 bool m_customerAddressHasBeenSet = false;
217
218 BGPPeerState m_bgpPeerState{BGPPeerState::NOT_SET};
219 bool m_bgpPeerStateHasBeenSet = false;
220
221 BGPStatus m_bgpStatus{BGPStatus::NOT_SET};
222 bool m_bgpStatusHasBeenSet = false;
223
224 Aws::String m_awsDeviceV2;
225 bool m_awsDeviceV2HasBeenSet = false;
226
227 Aws::String m_awsLogicalDeviceId;
228 bool m_awsLogicalDeviceIdHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace DirectConnect
233} // namespace Aws
BGPStatus GetBgpStatus() const
Definition BGPPeer.h:164
AWS_DIRECTCONNECT_API BGPPeer()=default
void SetBgpStatus(BGPStatus value)
Definition BGPPeer.h:166
BGPPeer & WithCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:134
void SetBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:50
long long GetAsnLong() const
Definition BGPPeer.h:84
void SetAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:98
BGPPeer & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:193
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:174
BGPPeer & WithBgpStatus(BGPStatus value)
Definition BGPPeer.h:167
const Aws::String & GetAmazonAddress() const
Definition BGPPeer.h:117
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition BGPPeer.h:191
BGPPeer & WithBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:152
void SetAddressFamily(AddressFamily value)
Definition BGPPeer.h:109
void SetBgpPeerState(BGPPeerState value)
Definition BGPPeer.h:151
BGPPeer & WithAddressFamily(AddressFamily value)
Definition BGPPeer.h:110
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressFamily GetAddressFamily() const
Definition BGPPeer.h:107
const Aws::String & GetAuthKey() const
Definition BGPPeer.h:95
BGPPeer & WithAsnLong(long long value)
Definition BGPPeer.h:87
const Aws::String & GetCustomerAddress() const
Definition BGPPeer.h:129
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:177
void SetAsnLong(long long value)
Definition BGPPeer.h:86
BGPPeer & WithBgpPeerId(BgpPeerIdT &&value)
Definition BGPPeer.h:52
const Aws::String & GetAwsLogicalDeviceId() const
Definition BGPPeer.h:188
BGPPeer & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition BGPPeer.h:179
void SetCustomerAddress(CustomerAddressT &&value)
Definition BGPPeer.h:132
void SetAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:120
BGPPeer & WithAsn(int value)
Definition BGPPeer.h:70
bool AwsLogicalDeviceIdHasBeenSet() const
Definition BGPPeer.h:189
BGPPeerState GetBgpPeerState() const
Definition BGPPeer.h:149
BGPPeer & WithAuthKey(AuthKeyT &&value)
Definition BGPPeer.h:100
BGPPeer & WithAmazonAddress(AmazonAddressT &&value)
Definition BGPPeer.h:122
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue