AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Connection.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/ConnectionState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/directconnect/model/HasLogicalRedundancy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/directconnect/model/Tag.h>
14#include <aws/directconnect/model/MacSecKey.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DirectConnect
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DIRECTCONNECT_API Connection() = default;
41 AWS_DIRECTCONNECT_API Connection(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DIRECTCONNECT_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
51 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
52 template<typename OwnerAccountT = Aws::String>
53 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
54 template<typename OwnerAccountT = Aws::String>
55 Connection& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
57
59
62 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
63 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
64 template<typename ConnectionIdT = Aws::String>
65 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
66 template<typename ConnectionIdT = Aws::String>
67 Connection& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
75 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
76 template<typename ConnectionNameT = Aws::String>
77 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
78 template<typename ConnectionNameT = Aws::String>
79 Connection& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
81
83
101 inline ConnectionState GetConnectionState() const { return m_connectionState; }
102 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
103 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
104 inline Connection& WithConnectionState(ConnectionState value) { SetConnectionState(value); return *this;}
106
108
111 inline const Aws::String& GetRegion() const { return m_region; }
112 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
113 template<typename RegionT = Aws::String>
114 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
115 template<typename RegionT = Aws::String>
116 Connection& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
118
120
123 inline const Aws::String& GetLocation() const { return m_location; }
124 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
125 template<typename LocationT = Aws::String>
126 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
127 template<typename LocationT = Aws::String>
128 Connection& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
130
132
135 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
136 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
137 template<typename BandwidthT = Aws::String>
138 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
139 template<typename BandwidthT = Aws::String>
140 Connection& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
142
144
147 inline int GetVlan() const { return m_vlan; }
148 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
149 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
150 inline Connection& WithVlan(int value) { SetVlan(value); return *this;}
152
154
158 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
159 inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; }
160 template<typename PartnerNameT = Aws::String>
161 void SetPartnerName(PartnerNameT&& value) { m_partnerNameHasBeenSet = true; m_partnerName = std::forward<PartnerNameT>(value); }
162 template<typename PartnerNameT = Aws::String>
163 Connection& WithPartnerName(PartnerNameT&& value) { SetPartnerName(std::forward<PartnerNameT>(value)); return *this;}
165
167
171 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
172 inline bool LoaIssueTimeHasBeenSet() const { return m_loaIssueTimeHasBeenSet; }
173 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
174 void SetLoaIssueTime(LoaIssueTimeT&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = std::forward<LoaIssueTimeT>(value); }
175 template<typename LoaIssueTimeT = Aws::Utils::DateTime>
176 Connection& WithLoaIssueTime(LoaIssueTimeT&& value) { SetLoaIssueTime(std::forward<LoaIssueTimeT>(value)); return *this;}
178
180
183 inline const Aws::String& GetLagId() const { return m_lagId; }
184 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
185 template<typename LagIdT = Aws::String>
186 void SetLagId(LagIdT&& value) { m_lagIdHasBeenSet = true; m_lagId = std::forward<LagIdT>(value); }
187 template<typename LagIdT = Aws::String>
188 Connection& WithLagId(LagIdT&& value) { SetLagId(std::forward<LagIdT>(value)); return *this;}
190
192
195 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
196 inline bool AwsDeviceHasBeenSet() const { return m_awsDeviceHasBeenSet; }
197 template<typename AwsDeviceT = Aws::String>
198 void SetAwsDevice(AwsDeviceT&& value) { m_awsDeviceHasBeenSet = true; m_awsDevice = std::forward<AwsDeviceT>(value); }
199 template<typename AwsDeviceT = Aws::String>
200 Connection& WithAwsDevice(AwsDeviceT&& value) { SetAwsDevice(std::forward<AwsDeviceT>(value)); return *this;}
202
204
207 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
208 inline bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; }
209 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; }
210 inline Connection& WithJumboFrameCapable(bool value) { SetJumboFrameCapable(value); return *this;}
212
214
217 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
218 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
219 template<typename AwsDeviceV2T = Aws::String>
220 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
221 template<typename AwsDeviceV2T = Aws::String>
222 Connection& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
224
226
231 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
232 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
233 template<typename AwsLogicalDeviceIdT = Aws::String>
234 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
235 template<typename AwsLogicalDeviceIdT = Aws::String>
236 Connection& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
238
240
244 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
245 inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; }
246 inline void SetHasLogicalRedundancy(HasLogicalRedundancy value) { m_hasLogicalRedundancyHasBeenSet = true; m_hasLogicalRedundancy = value; }
249
251
254 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
255 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
256 template<typename TagsT = Aws::Vector<Tag>>
257 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
258 template<typename TagsT = Aws::Vector<Tag>>
259 Connection& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
260 template<typename TagsT = Tag>
261 Connection& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
263
265
268 inline const Aws::String& GetProviderName() const { return m_providerName; }
269 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
270 template<typename ProviderNameT = Aws::String>
271 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
272 template<typename ProviderNameT = Aws::String>
273 Connection& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
275
277
280 inline bool GetMacSecCapable() const { return m_macSecCapable; }
281 inline bool MacSecCapableHasBeenSet() const { return m_macSecCapableHasBeenSet; }
282 inline void SetMacSecCapable(bool value) { m_macSecCapableHasBeenSet = true; m_macSecCapable = value; }
283 inline Connection& WithMacSecCapable(bool value) { SetMacSecCapable(value); return *this;}
285
287
292 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
293 inline bool PortEncryptionStatusHasBeenSet() const { return m_portEncryptionStatusHasBeenSet; }
294 template<typename PortEncryptionStatusT = Aws::String>
295 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) { m_portEncryptionStatusHasBeenSet = true; m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value); }
296 template<typename PortEncryptionStatusT = Aws::String>
297 Connection& WithPortEncryptionStatus(PortEncryptionStatusT&& value) { SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value)); return *this;}
299
301
306 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
307 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
308 template<typename EncryptionModeT = Aws::String>
309 void SetEncryptionMode(EncryptionModeT&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::forward<EncryptionModeT>(value); }
310 template<typename EncryptionModeT = Aws::String>
311 Connection& WithEncryptionMode(EncryptionModeT&& value) { SetEncryptionMode(std::forward<EncryptionModeT>(value)); return *this;}
313
315
318 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
319 inline bool MacSecKeysHasBeenSet() const { return m_macSecKeysHasBeenSet; }
320 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
321 void SetMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys = std::forward<MacSecKeysT>(value); }
322 template<typename MacSecKeysT = Aws::Vector<MacSecKey>>
323 Connection& WithMacSecKeys(MacSecKeysT&& value) { SetMacSecKeys(std::forward<MacSecKeysT>(value)); return *this;}
324 template<typename MacSecKeysT = MacSecKey>
325 Connection& AddMacSecKeys(MacSecKeysT&& value) { m_macSecKeysHasBeenSet = true; m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value)); return *this; }
327
329
330 inline const Aws::String& GetRequestId() const { return m_requestId; }
331 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
332 template<typename RequestIdT = Aws::String>
333 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
334 template<typename RequestIdT = Aws::String>
335 Connection& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
337 private:
338
339 Aws::String m_ownerAccount;
340 bool m_ownerAccountHasBeenSet = false;
341
342 Aws::String m_connectionId;
343 bool m_connectionIdHasBeenSet = false;
344
345 Aws::String m_connectionName;
346 bool m_connectionNameHasBeenSet = false;
347
348 ConnectionState m_connectionState{ConnectionState::NOT_SET};
349 bool m_connectionStateHasBeenSet = false;
350
351 Aws::String m_region;
352 bool m_regionHasBeenSet = false;
353
354 Aws::String m_location;
355 bool m_locationHasBeenSet = false;
356
357 Aws::String m_bandwidth;
358 bool m_bandwidthHasBeenSet = false;
359
360 int m_vlan{0};
361 bool m_vlanHasBeenSet = false;
362
363 Aws::String m_partnerName;
364 bool m_partnerNameHasBeenSet = false;
365
366 Aws::Utils::DateTime m_loaIssueTime{};
367 bool m_loaIssueTimeHasBeenSet = false;
368
369 Aws::String m_lagId;
370 bool m_lagIdHasBeenSet = false;
371
372 Aws::String m_awsDevice;
373 bool m_awsDeviceHasBeenSet = false;
374
375 bool m_jumboFrameCapable{false};
376 bool m_jumboFrameCapableHasBeenSet = false;
377
378 Aws::String m_awsDeviceV2;
379 bool m_awsDeviceV2HasBeenSet = false;
380
381 Aws::String m_awsLogicalDeviceId;
382 bool m_awsLogicalDeviceIdHasBeenSet = false;
383
385 bool m_hasLogicalRedundancyHasBeenSet = false;
386
387 Aws::Vector<Tag> m_tags;
388 bool m_tagsHasBeenSet = false;
389
390 Aws::String m_providerName;
391 bool m_providerNameHasBeenSet = false;
392
393 bool m_macSecCapable{false};
394 bool m_macSecCapableHasBeenSet = false;
395
396 Aws::String m_portEncryptionStatus;
397 bool m_portEncryptionStatusHasBeenSet = false;
398
399 Aws::String m_encryptionMode;
400 bool m_encryptionModeHasBeenSet = false;
401
402 Aws::Vector<MacSecKey> m_macSecKeys;
403 bool m_macSecKeysHasBeenSet = false;
404
405 Aws::String m_requestId;
406 bool m_requestIdHasBeenSet = false;
407 };
408
409} // namespace Model
410} // namespace DirectConnect
411} // namespace Aws
void SetLocation(LocationT &&value)
Definition Connection.h:126
const Aws::Vector< Tag > & GetTags() const
Definition Connection.h:254
Connection & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
Definition Connection.h:297
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Connection.h:246
const Aws::String & GetAwsDevice() const
Definition Connection.h:195
Connection & WithProviderName(ProviderNameT &&value)
Definition Connection.h:273
void SetProviderName(ProviderNameT &&value)
Definition Connection.h:271
const Aws::String & GetEncryptionMode() const
Definition Connection.h:306
Connection & WithVlan(int value)
Definition Connection.h:150
const Aws::String & GetLagId() const
Definition Connection.h:183
void SetConnectionName(ConnectionNameT &&value)
Definition Connection.h:77
void SetAwsDevice(AwsDeviceT &&value)
Definition Connection.h:198
Connection & WithAwsDevice(AwsDeviceT &&value)
Definition Connection.h:200
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Connection.h:234
const Aws::String & GetPartnerName() const
Definition Connection.h:158
void SetConnectionState(ConnectionState value)
Definition Connection.h:103
Connection & WithRequestId(RequestIdT &&value)
Definition Connection.h:335
const Aws::Utils::DateTime & GetLoaIssueTime() const
Definition Connection.h:171
Connection & WithLocation(LocationT &&value)
Definition Connection.h:128
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:104
AWS_DIRECTCONNECT_API Connection()=default
void SetPartnerName(PartnerNameT &&value)
Definition Connection.h:161
void SetConnectionId(ConnectionIdT &&value)
Definition Connection.h:65
void SetEncryptionMode(EncryptionModeT &&value)
Definition Connection.h:309
const Aws::String & GetBandwidth() const
Definition Connection.h:135
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
Definition Connection.h:295
const Aws::String & GetLocation() const
Definition Connection.h:123
void SetRequestId(RequestIdT &&value)
Definition Connection.h:333
const Aws::String & GetPortEncryptionStatus() const
Definition Connection.h:292
Connection & WithHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Connection.h:247
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition Connection.h:220
Connection & WithBandwidth(BandwidthT &&value)
Definition Connection.h:140
void SetMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:321
Connection & WithPartnerName(PartnerNameT &&value)
Definition Connection.h:163
Connection & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition Connection.h:222
void SetOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:53
HasLogicalRedundancy GetHasLogicalRedundancy() const
Definition Connection.h:244
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:79
const Aws::String & GetConnectionName() const
Definition Connection.h:74
void SetLoaIssueTime(LoaIssueTimeT &&value)
Definition Connection.h:174
AWS_DIRECTCONNECT_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & AddMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:325
const Aws::String & GetRequestId() const
Definition Connection.h:330
AWS_DIRECTCONNECT_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
Connection & WithOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:55
Connection & WithLoaIssueTime(LoaIssueTimeT &&value)
Definition Connection.h:176
Connection & WithTags(TagsT &&value)
Definition Connection.h:259
Connection & WithLagId(LagIdT &&value)
Definition Connection.h:188
const Aws::String & GetConnectionId() const
Definition Connection.h:62
Connection & WithRegion(RegionT &&value)
Definition Connection.h:116
Connection & WithEncryptionMode(EncryptionModeT &&value)
Definition Connection.h:311
Connection & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Connection.h:236
Connection & WithMacSecCapable(bool value)
Definition Connection.h:283
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
Definition Connection.h:318
const Aws::String & GetAwsDeviceV2() const
Definition Connection.h:217
Connection & WithJumboFrameCapable(bool value)
Definition Connection.h:210
void SetBandwidth(BandwidthT &&value)
Definition Connection.h:138
const Aws::String & GetAwsLogicalDeviceId() const
Definition Connection.h:231
const Aws::String & GetRegion() const
Definition Connection.h:111
Connection & WithMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:323
const Aws::String & GetProviderName() const
Definition Connection.h:268
Connection & AddTags(TagsT &&value)
Definition Connection.h:261
const Aws::String & GetOwnerAccount() const
Definition Connection.h:50
ConnectionState GetConnectionState() const
Definition Connection.h:101
Connection & WithConnectionId(ConnectionIdT &&value)
Definition Connection.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue