AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Connection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/ConnectionState.h>
12#include <aws/directconnect/model/HasLogicalRedundancy.h>
13#include <aws/directconnect/model/MacSecKey.h>
14#include <aws/directconnect/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DirectConnect {
26namespace Model {
27
34 public:
35 AWS_DIRECTCONNECT_API Connection() = default;
36 AWS_DIRECTCONNECT_API Connection(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTCONNECT_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
45 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
46 template <typename OwnerAccountT = Aws::String>
47 void SetOwnerAccount(OwnerAccountT&& value) {
48 m_ownerAccountHasBeenSet = true;
49 m_ownerAccount = std::forward<OwnerAccountT>(value);
50 }
51 template <typename OwnerAccountT = Aws::String>
52 Connection& WithOwnerAccount(OwnerAccountT&& value) {
53 SetOwnerAccount(std::forward<OwnerAccountT>(value));
54 return *this;
55 }
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) {
66 m_connectionIdHasBeenSet = true;
67 m_connectionId = std::forward<ConnectionIdT>(value);
68 }
69 template <typename ConnectionIdT = Aws::String>
70 Connection& WithConnectionId(ConnectionIdT&& value) {
71 SetConnectionId(std::forward<ConnectionIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
81 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
82 template <typename ConnectionNameT = Aws::String>
83 void SetConnectionName(ConnectionNameT&& value) {
84 m_connectionNameHasBeenSet = true;
85 m_connectionName = std::forward<ConnectionNameT>(value);
86 }
87 template <typename ConnectionNameT = Aws::String>
88 Connection& WithConnectionName(ConnectionNameT&& value) {
89 SetConnectionName(std::forward<ConnectionNameT>(value));
90 return *this;
91 }
93
95
113 inline ConnectionState GetConnectionState() const { return m_connectionState; }
114 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
116 m_connectionStateHasBeenSet = true;
117 m_connectionState = value;
118 }
120 SetConnectionState(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetRegion() const { return m_region; }
130 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
131 template <typename RegionT = Aws::String>
132 void SetRegion(RegionT&& value) {
133 m_regionHasBeenSet = true;
134 m_region = std::forward<RegionT>(value);
135 }
136 template <typename RegionT = Aws::String>
137 Connection& WithRegion(RegionT&& value) {
138 SetRegion(std::forward<RegionT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetLocation() const { return m_location; }
148 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
149 template <typename LocationT = Aws::String>
150 void SetLocation(LocationT&& value) {
151 m_locationHasBeenSet = true;
152 m_location = std::forward<LocationT>(value);
153 }
154 template <typename LocationT = Aws::String>
155 Connection& WithLocation(LocationT&& value) {
156 SetLocation(std::forward<LocationT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
166 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
167 template <typename BandwidthT = Aws::String>
168 void SetBandwidth(BandwidthT&& value) {
169 m_bandwidthHasBeenSet = true;
170 m_bandwidth = std::forward<BandwidthT>(value);
171 }
172 template <typename BandwidthT = Aws::String>
173 Connection& WithBandwidth(BandwidthT&& value) {
174 SetBandwidth(std::forward<BandwidthT>(value));
175 return *this;
176 }
178
180
183 inline int GetVlan() const { return m_vlan; }
184 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
185 inline void SetVlan(int value) {
186 m_vlanHasBeenSet = true;
187 m_vlan = value;
188 }
189 inline Connection& WithVlan(int value) {
190 SetVlan(value);
191 return *this;
192 }
194
196
200 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
201 inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; }
202 template <typename PartnerNameT = Aws::String>
203 void SetPartnerName(PartnerNameT&& value) {
204 m_partnerNameHasBeenSet = true;
205 m_partnerName = std::forward<PartnerNameT>(value);
206 }
207 template <typename PartnerNameT = Aws::String>
208 Connection& WithPartnerName(PartnerNameT&& value) {
209 SetPartnerName(std::forward<PartnerNameT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
220 inline bool LoaIssueTimeHasBeenSet() const { return m_loaIssueTimeHasBeenSet; }
221 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
222 void SetLoaIssueTime(LoaIssueTimeT&& value) {
223 m_loaIssueTimeHasBeenSet = true;
224 m_loaIssueTime = std::forward<LoaIssueTimeT>(value);
225 }
226 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
227 Connection& WithLoaIssueTime(LoaIssueTimeT&& value) {
228 SetLoaIssueTime(std::forward<LoaIssueTimeT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetLagId() const { return m_lagId; }
238 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
239 template <typename LagIdT = Aws::String>
240 void SetLagId(LagIdT&& value) {
241 m_lagIdHasBeenSet = true;
242 m_lagId = std::forward<LagIdT>(value);
243 }
244 template <typename LagIdT = Aws::String>
245 Connection& WithLagId(LagIdT&& value) {
246 SetLagId(std::forward<LagIdT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
256 inline bool AwsDeviceHasBeenSet() const { return m_awsDeviceHasBeenSet; }
257 template <typename AwsDeviceT = Aws::String>
258 void SetAwsDevice(AwsDeviceT&& value) {
259 m_awsDeviceHasBeenSet = true;
260 m_awsDevice = std::forward<AwsDeviceT>(value);
261 }
262 template <typename AwsDeviceT = Aws::String>
263 Connection& WithAwsDevice(AwsDeviceT&& value) {
264 SetAwsDevice(std::forward<AwsDeviceT>(value));
265 return *this;
266 }
268
270
273 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
274 inline bool JumboFrameCapableHasBeenSet() const { return m_jumboFrameCapableHasBeenSet; }
275 inline void SetJumboFrameCapable(bool value) {
276 m_jumboFrameCapableHasBeenSet = true;
277 m_jumboFrameCapable = value;
278 }
279 inline Connection& WithJumboFrameCapable(bool value) {
281 return *this;
282 }
284
286
289 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
290 inline bool AwsDeviceV2HasBeenSet() const { return m_awsDeviceV2HasBeenSet; }
291 template <typename AwsDeviceV2T = Aws::String>
292 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
293 m_awsDeviceV2HasBeenSet = true;
294 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
295 }
296 template <typename AwsDeviceV2T = Aws::String>
297 Connection& WithAwsDeviceV2(AwsDeviceV2T&& value) {
298 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
299 return *this;
300 }
302
304
309 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
310 inline bool AwsLogicalDeviceIdHasBeenSet() const { return m_awsLogicalDeviceIdHasBeenSet; }
311 template <typename AwsLogicalDeviceIdT = Aws::String>
312 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
313 m_awsLogicalDeviceIdHasBeenSet = true;
314 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
315 }
316 template <typename AwsLogicalDeviceIdT = Aws::String>
317 Connection& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
318 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
319 return *this;
320 }
322
324
328 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
329 inline bool HasLogicalRedundancyHasBeenSet() const { return m_hasLogicalRedundancyHasBeenSet; }
331 m_hasLogicalRedundancyHasBeenSet = true;
332 m_hasLogicalRedundancy = value;
333 }
336 return *this;
337 }
339
341
344 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
345 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
346 template <typename TagsT = Aws::Vector<Tag>>
347 void SetTags(TagsT&& value) {
348 m_tagsHasBeenSet = true;
349 m_tags = std::forward<TagsT>(value);
350 }
351 template <typename TagsT = Aws::Vector<Tag>>
352 Connection& WithTags(TagsT&& value) {
353 SetTags(std::forward<TagsT>(value));
354 return *this;
355 }
356 template <typename TagsT = Tag>
357 Connection& AddTags(TagsT&& value) {
358 m_tagsHasBeenSet = true;
359 m_tags.emplace_back(std::forward<TagsT>(value));
360 return *this;
361 }
363
365
368 inline const Aws::String& GetProviderName() const { return m_providerName; }
369 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
370 template <typename ProviderNameT = Aws::String>
371 void SetProviderName(ProviderNameT&& value) {
372 m_providerNameHasBeenSet = true;
373 m_providerName = std::forward<ProviderNameT>(value);
374 }
375 template <typename ProviderNameT = Aws::String>
376 Connection& WithProviderName(ProviderNameT&& value) {
377 SetProviderName(std::forward<ProviderNameT>(value));
378 return *this;
379 }
381
383
386 inline bool GetMacSecCapable() const { return m_macSecCapable; }
387 inline bool MacSecCapableHasBeenSet() const { return m_macSecCapableHasBeenSet; }
388 inline void SetMacSecCapable(bool value) {
389 m_macSecCapableHasBeenSet = true;
390 m_macSecCapable = value;
391 }
392 inline Connection& WithMacSecCapable(bool value) {
393 SetMacSecCapable(value);
394 return *this;
395 }
397
399
404 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
405 inline bool PortEncryptionStatusHasBeenSet() const { return m_portEncryptionStatusHasBeenSet; }
406 template <typename PortEncryptionStatusT = Aws::String>
407 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) {
408 m_portEncryptionStatusHasBeenSet = true;
409 m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value);
410 }
411 template <typename PortEncryptionStatusT = Aws::String>
412 Connection& WithPortEncryptionStatus(PortEncryptionStatusT&& value) {
413 SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value));
414 return *this;
415 }
417
419
424 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
425 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
426 template <typename EncryptionModeT = Aws::String>
427 void SetEncryptionMode(EncryptionModeT&& value) {
428 m_encryptionModeHasBeenSet = true;
429 m_encryptionMode = std::forward<EncryptionModeT>(value);
430 }
431 template <typename EncryptionModeT = Aws::String>
432 Connection& WithEncryptionMode(EncryptionModeT&& value) {
433 SetEncryptionMode(std::forward<EncryptionModeT>(value));
434 return *this;
435 }
437
439
442 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
443 inline bool MacSecKeysHasBeenSet() const { return m_macSecKeysHasBeenSet; }
444 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
445 void SetMacSecKeys(MacSecKeysT&& value) {
446 m_macSecKeysHasBeenSet = true;
447 m_macSecKeys = std::forward<MacSecKeysT>(value);
448 }
449 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
450 Connection& WithMacSecKeys(MacSecKeysT&& value) {
451 SetMacSecKeys(std::forward<MacSecKeysT>(value));
452 return *this;
453 }
454 template <typename MacSecKeysT = MacSecKey>
455 Connection& AddMacSecKeys(MacSecKeysT&& value) {
456 m_macSecKeysHasBeenSet = true;
457 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
458 return *this;
459 }
461
463
467 inline bool GetPartnerInterconnectMacSecCapable() const { return m_partnerInterconnectMacSecCapable; }
468 inline bool PartnerInterconnectMacSecCapableHasBeenSet() const { return m_partnerInterconnectMacSecCapableHasBeenSet; }
469 inline void SetPartnerInterconnectMacSecCapable(bool value) {
470 m_partnerInterconnectMacSecCapableHasBeenSet = true;
471 m_partnerInterconnectMacSecCapable = value;
472 }
475 return *this;
476 }
478
480
481 inline const Aws::String& GetRequestId() const { return m_requestId; }
482 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
483 template <typename RequestIdT = Aws::String>
484 void SetRequestId(RequestIdT&& value) {
485 m_requestIdHasBeenSet = true;
486 m_requestId = std::forward<RequestIdT>(value);
487 }
488 template <typename RequestIdT = Aws::String>
489 Connection& WithRequestId(RequestIdT&& value) {
490 SetRequestId(std::forward<RequestIdT>(value));
491 return *this;
492 }
494 private:
495 Aws::String m_ownerAccount;
496
497 Aws::String m_connectionId;
498
499 Aws::String m_connectionName;
500
501 ConnectionState m_connectionState{ConnectionState::NOT_SET};
502
503 Aws::String m_region;
504
505 Aws::String m_location;
506
507 Aws::String m_bandwidth;
508
509 int m_vlan{0};
510
511 Aws::String m_partnerName;
512
513 Aws::Utils::DateTime m_loaIssueTime{};
514
515 Aws::String m_lagId;
516
517 Aws::String m_awsDevice;
518
519 bool m_jumboFrameCapable{false};
520
521 Aws::String m_awsDeviceV2;
522
523 Aws::String m_awsLogicalDeviceId;
524
526
527 Aws::Vector<Tag> m_tags;
528
529 Aws::String m_providerName;
530
531 bool m_macSecCapable{false};
532
533 Aws::String m_portEncryptionStatus;
534
535 Aws::String m_encryptionMode;
536
537 Aws::Vector<MacSecKey> m_macSecKeys;
538
539 bool m_partnerInterconnectMacSecCapable{false};
540
541 Aws::String m_requestId;
542 bool m_ownerAccountHasBeenSet = false;
543 bool m_connectionIdHasBeenSet = false;
544 bool m_connectionNameHasBeenSet = false;
545 bool m_connectionStateHasBeenSet = false;
546 bool m_regionHasBeenSet = false;
547 bool m_locationHasBeenSet = false;
548 bool m_bandwidthHasBeenSet = false;
549 bool m_vlanHasBeenSet = false;
550 bool m_partnerNameHasBeenSet = false;
551 bool m_loaIssueTimeHasBeenSet = false;
552 bool m_lagIdHasBeenSet = false;
553 bool m_awsDeviceHasBeenSet = false;
554 bool m_jumboFrameCapableHasBeenSet = false;
555 bool m_awsDeviceV2HasBeenSet = false;
556 bool m_awsLogicalDeviceIdHasBeenSet = false;
557 bool m_hasLogicalRedundancyHasBeenSet = false;
558 bool m_tagsHasBeenSet = false;
559 bool m_providerNameHasBeenSet = false;
560 bool m_macSecCapableHasBeenSet = false;
561 bool m_portEncryptionStatusHasBeenSet = false;
562 bool m_encryptionModeHasBeenSet = false;
563 bool m_macSecKeysHasBeenSet = false;
564 bool m_partnerInterconnectMacSecCapableHasBeenSet = false;
565 bool m_requestIdHasBeenSet = false;
566};
567
568} // namespace Model
569} // namespace DirectConnect
570} // namespace Aws
void SetLocation(LocationT &&value)
Definition Connection.h:150
const Aws::Vector< Tag > & GetTags() const
Definition Connection.h:344
Connection & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
Definition Connection.h:412
void SetHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Connection.h:330
const Aws::String & GetAwsDevice() const
Definition Connection.h:255
Connection & WithProviderName(ProviderNameT &&value)
Definition Connection.h:376
void SetProviderName(ProviderNameT &&value)
Definition Connection.h:371
const Aws::String & GetEncryptionMode() const
Definition Connection.h:424
Connection & WithPartnerInterconnectMacSecCapable(bool value)
Definition Connection.h:473
Connection & WithVlan(int value)
Definition Connection.h:189
const Aws::String & GetLagId() const
Definition Connection.h:237
void SetConnectionName(ConnectionNameT &&value)
Definition Connection.h:83
void SetPartnerInterconnectMacSecCapable(bool value)
Definition Connection.h:469
void SetAwsDevice(AwsDeviceT &&value)
Definition Connection.h:258
Connection & WithAwsDevice(AwsDeviceT &&value)
Definition Connection.h:263
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Connection.h:312
const Aws::String & GetPartnerName() const
Definition Connection.h:200
void SetConnectionState(ConnectionState value)
Definition Connection.h:115
Connection & WithRequestId(RequestIdT &&value)
Definition Connection.h:489
const Aws::Utils::DateTime & GetLoaIssueTime() const
Definition Connection.h:219
Connection & WithLocation(LocationT &&value)
Definition Connection.h:155
Connection & WithConnectionState(ConnectionState value)
Definition Connection.h:119
AWS_DIRECTCONNECT_API Connection()=default
void SetPartnerName(PartnerNameT &&value)
Definition Connection.h:203
void SetConnectionId(ConnectionIdT &&value)
Definition Connection.h:65
void SetEncryptionMode(EncryptionModeT &&value)
Definition Connection.h:427
const Aws::String & GetBandwidth() const
Definition Connection.h:165
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
Definition Connection.h:407
const Aws::String & GetLocation() const
Definition Connection.h:147
void SetRequestId(RequestIdT &&value)
Definition Connection.h:484
const Aws::String & GetPortEncryptionStatus() const
Definition Connection.h:404
Connection & WithHasLogicalRedundancy(HasLogicalRedundancy value)
Definition Connection.h:334
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAwsDeviceV2(AwsDeviceV2T &&value)
Definition Connection.h:292
Connection & WithBandwidth(BandwidthT &&value)
Definition Connection.h:173
void SetMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:445
Connection & WithPartnerName(PartnerNameT &&value)
Definition Connection.h:208
Connection & WithAwsDeviceV2(AwsDeviceV2T &&value)
Definition Connection.h:297
void SetOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:47
HasLogicalRedundancy GetHasLogicalRedundancy() const
Definition Connection.h:328
Connection & WithConnectionName(ConnectionNameT &&value)
Definition Connection.h:88
const Aws::String & GetConnectionName() const
Definition Connection.h:80
void SetLoaIssueTime(LoaIssueTimeT &&value)
Definition Connection.h:222
AWS_DIRECTCONNECT_API Connection(Aws::Utils::Json::JsonView jsonValue)
Connection & AddMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:455
const Aws::String & GetRequestId() const
Definition Connection.h:481
AWS_DIRECTCONNECT_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
Connection & WithOwnerAccount(OwnerAccountT &&value)
Definition Connection.h:52
Connection & WithLoaIssueTime(LoaIssueTimeT &&value)
Definition Connection.h:227
bool PartnerInterconnectMacSecCapableHasBeenSet() const
Definition Connection.h:468
Connection & WithTags(TagsT &&value)
Definition Connection.h:352
Connection & WithLagId(LagIdT &&value)
Definition Connection.h:245
const Aws::String & GetConnectionId() const
Definition Connection.h:62
Connection & WithRegion(RegionT &&value)
Definition Connection.h:137
Connection & WithEncryptionMode(EncryptionModeT &&value)
Definition Connection.h:432
Connection & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Definition Connection.h:317
Connection & WithMacSecCapable(bool value)
Definition Connection.h:392
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
Definition Connection.h:442
const Aws::String & GetAwsDeviceV2() const
Definition Connection.h:289
Connection & WithJumboFrameCapable(bool value)
Definition Connection.h:279
void SetBandwidth(BandwidthT &&value)
Definition Connection.h:168
const Aws::String & GetAwsLogicalDeviceId() const
Definition Connection.h:309
const Aws::String & GetRegion() const
Definition Connection.h:129
Connection & WithMacSecKeys(MacSecKeysT &&value)
Definition Connection.h:450
const Aws::String & GetProviderName() const
Definition Connection.h:368
Connection & AddTags(TagsT &&value)
Definition Connection.h:357
const Aws::String & GetOwnerAccount() const
Definition Connection.h:44
ConnectionState GetConnectionState() const
Definition Connection.h:113
Connection & WithConnectionId(ConnectionIdT &&value)
Definition Connection.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue