AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
CreateConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/DirectConnect_EXPORTS.h>
12#include <aws/directconnect/model/BillingMode.h>
13#include <aws/directconnect/model/ConnectionState.h>
14#include <aws/directconnect/model/HasLogicalRedundancy.h>
15#include <aws/directconnect/model/MacSecKey.h>
16#include <aws/directconnect/model/RateLimiterStatus.h>
17#include <aws/directconnect/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DirectConnect {
31namespace Model {
38 public:
39 AWS_DIRECTCONNECT_API CreateConnectionResult() = default;
42
44
47 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
48 template <typename OwnerAccountT = Aws::String>
49 void SetOwnerAccount(OwnerAccountT&& value) {
50 m_ownerAccountHasBeenSet = true;
51 m_ownerAccount = std::forward<OwnerAccountT>(value);
52 }
53 template <typename OwnerAccountT = Aws::String>
54 CreateConnectionResult& WithOwnerAccount(OwnerAccountT&& value) {
55 SetOwnerAccount(std::forward<OwnerAccountT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
65 template <typename ConnectionIdT = Aws::String>
66 void SetConnectionId(ConnectionIdT&& value) {
67 m_connectionIdHasBeenSet = true;
68 m_connectionId = std::forward<ConnectionIdT>(value);
69 }
70 template <typename ConnectionIdT = Aws::String>
71 CreateConnectionResult& WithConnectionId(ConnectionIdT&& value) {
72 SetConnectionId(std::forward<ConnectionIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
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 CreateConnectionResult& WithConnectionName(ConnectionNameT&& value) {
89 SetConnectionName(std::forward<ConnectionNameT>(value));
90 return *this;
91 }
93
95
113 inline ConnectionState GetConnectionState() const { return m_connectionState; }
115 m_connectionStateHasBeenSet = true;
116 m_connectionState = value;
117 }
119 SetConnectionState(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetRegion() const { return m_region; }
129 template <typename RegionT = Aws::String>
130 void SetRegion(RegionT&& value) {
131 m_regionHasBeenSet = true;
132 m_region = std::forward<RegionT>(value);
133 }
134 template <typename RegionT = Aws::String>
136 SetRegion(std::forward<RegionT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetLocation() const { return m_location; }
146 template <typename LocationT = Aws::String>
147 void SetLocation(LocationT&& value) {
148 m_locationHasBeenSet = true;
149 m_location = std::forward<LocationT>(value);
150 }
151 template <typename LocationT = Aws::String>
153 SetLocation(std::forward<LocationT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
163 template <typename BandwidthT = Aws::String>
164 void SetBandwidth(BandwidthT&& value) {
165 m_bandwidthHasBeenSet = true;
166 m_bandwidth = std::forward<BandwidthT>(value);
167 }
168 template <typename BandwidthT = Aws::String>
170 SetBandwidth(std::forward<BandwidthT>(value));
171 return *this;
172 }
174
176
179 inline int GetVlan() const { return m_vlan; }
180 inline void SetVlan(int value) {
181 m_vlanHasBeenSet = true;
182 m_vlan = value;
183 }
184 inline CreateConnectionResult& WithVlan(int value) {
185 SetVlan(value);
186 return *this;
187 }
189
191
195 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
196 template <typename PartnerNameT = Aws::String>
197 void SetPartnerName(PartnerNameT&& value) {
198 m_partnerNameHasBeenSet = true;
199 m_partnerName = std::forward<PartnerNameT>(value);
200 }
201 template <typename PartnerNameT = Aws::String>
203 SetPartnerName(std::forward<PartnerNameT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::Utils::DateTime& GetLoaIssueTime() const { return m_loaIssueTime; }
214 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
215 void SetLoaIssueTime(LoaIssueTimeT&& value) {
216 m_loaIssueTimeHasBeenSet = true;
217 m_loaIssueTime = std::forward<LoaIssueTimeT>(value);
218 }
219 template <typename LoaIssueTimeT = Aws::Utils::DateTime>
220 CreateConnectionResult& WithLoaIssueTime(LoaIssueTimeT&& value) {
221 SetLoaIssueTime(std::forward<LoaIssueTimeT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetLagId() const { return m_lagId; }
231 template <typename LagIdT = Aws::String>
232 void SetLagId(LagIdT&& value) {
233 m_lagIdHasBeenSet = true;
234 m_lagId = std::forward<LagIdT>(value);
235 }
236 template <typename LagIdT = Aws::String>
238 SetLagId(std::forward<LagIdT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetAwsDevice() const { return m_awsDevice; }
248 template <typename AwsDeviceT = Aws::String>
249 void SetAwsDevice(AwsDeviceT&& value) {
250 m_awsDeviceHasBeenSet = true;
251 m_awsDevice = std::forward<AwsDeviceT>(value);
252 }
253 template <typename AwsDeviceT = Aws::String>
255 SetAwsDevice(std::forward<AwsDeviceT>(value));
256 return *this;
257 }
259
261
264 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
265 inline void SetJumboFrameCapable(bool value) {
266 m_jumboFrameCapableHasBeenSet = true;
267 m_jumboFrameCapable = value;
268 }
271 return *this;
272 }
274
276
279 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
280 template <typename AwsDeviceV2T = Aws::String>
281 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
282 m_awsDeviceV2HasBeenSet = true;
283 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
284 }
285 template <typename AwsDeviceV2T = Aws::String>
287 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
288 return *this;
289 }
291
293
298 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
299 template <typename AwsLogicalDeviceIdT = Aws::String>
300 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
301 m_awsLogicalDeviceIdHasBeenSet = true;
302 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
303 }
304 template <typename AwsLogicalDeviceIdT = Aws::String>
305 CreateConnectionResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
306 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
307 return *this;
308 }
310
312
316 inline HasLogicalRedundancy GetHasLogicalRedundancy() const { return m_hasLogicalRedundancy; }
318 m_hasLogicalRedundancyHasBeenSet = true;
319 m_hasLogicalRedundancy = value;
320 }
323 return *this;
324 }
326
328
331 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
332 template <typename TagsT = Aws::Vector<Tag>>
333 void SetTags(TagsT&& value) {
334 m_tagsHasBeenSet = true;
335 m_tags = std::forward<TagsT>(value);
336 }
337 template <typename TagsT = Aws::Vector<Tag>>
339 SetTags(std::forward<TagsT>(value));
340 return *this;
341 }
342 template <typename TagsT = Tag>
344 m_tagsHasBeenSet = true;
345 m_tags.emplace_back(std::forward<TagsT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::String& GetProviderName() const { return m_providerName; }
355 template <typename ProviderNameT = Aws::String>
356 void SetProviderName(ProviderNameT&& value) {
357 m_providerNameHasBeenSet = true;
358 m_providerName = std::forward<ProviderNameT>(value);
359 }
360 template <typename ProviderNameT = Aws::String>
361 CreateConnectionResult& WithProviderName(ProviderNameT&& value) {
362 SetProviderName(std::forward<ProviderNameT>(value));
363 return *this;
364 }
366
368
371 inline bool GetMacSecCapable() const { return m_macSecCapable; }
372 inline void SetMacSecCapable(bool value) {
373 m_macSecCapableHasBeenSet = true;
374 m_macSecCapable = value;
375 }
377 SetMacSecCapable(value);
378 return *this;
379 }
381
383
388 inline const Aws::String& GetPortEncryptionStatus() const { return m_portEncryptionStatus; }
389 template <typename PortEncryptionStatusT = Aws::String>
390 void SetPortEncryptionStatus(PortEncryptionStatusT&& value) {
391 m_portEncryptionStatusHasBeenSet = true;
392 m_portEncryptionStatus = std::forward<PortEncryptionStatusT>(value);
393 }
394 template <typename PortEncryptionStatusT = Aws::String>
395 CreateConnectionResult& WithPortEncryptionStatus(PortEncryptionStatusT&& value) {
396 SetPortEncryptionStatus(std::forward<PortEncryptionStatusT>(value));
397 return *this;
398 }
400
402
407 inline const Aws::String& GetEncryptionMode() const { return m_encryptionMode; }
408 template <typename EncryptionModeT = Aws::String>
409 void SetEncryptionMode(EncryptionModeT&& value) {
410 m_encryptionModeHasBeenSet = true;
411 m_encryptionMode = std::forward<EncryptionModeT>(value);
412 }
413 template <typename EncryptionModeT = Aws::String>
414 CreateConnectionResult& WithEncryptionMode(EncryptionModeT&& value) {
415 SetEncryptionMode(std::forward<EncryptionModeT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::Vector<MacSecKey>& GetMacSecKeys() const { return m_macSecKeys; }
425 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
426 void SetMacSecKeys(MacSecKeysT&& value) {
427 m_macSecKeysHasBeenSet = true;
428 m_macSecKeys = std::forward<MacSecKeysT>(value);
429 }
430 template <typename MacSecKeysT = Aws::Vector<MacSecKey>>
432 SetMacSecKeys(std::forward<MacSecKeysT>(value));
433 return *this;
434 }
435 template <typename MacSecKeysT = MacSecKey>
436 CreateConnectionResult& AddMacSecKeys(MacSecKeysT&& value) {
437 m_macSecKeysHasBeenSet = true;
438 m_macSecKeys.emplace_back(std::forward<MacSecKeysT>(value));
439 return *this;
440 }
442
444
448 inline const RateLimiterStatus& GetRateLimiterStatus() const { return m_rateLimiterStatus; }
449 template <typename RateLimiterStatusT = RateLimiterStatus>
450 void SetRateLimiterStatus(RateLimiterStatusT&& value) {
451 m_rateLimiterStatusHasBeenSet = true;
452 m_rateLimiterStatus = std::forward<RateLimiterStatusT>(value);
453 }
454 template <typename RateLimiterStatusT = RateLimiterStatus>
455 CreateConnectionResult& WithRateLimiterStatus(RateLimiterStatusT&& value) {
456 SetRateLimiterStatus(std::forward<RateLimiterStatusT>(value));
457 return *this;
458 }
460
462
466 inline bool GetPartnerInterconnectMacSecCapable() const { return m_partnerInterconnectMacSecCapable; }
467 inline void SetPartnerInterconnectMacSecCapable(bool value) {
468 m_partnerInterconnectMacSecCapableHasBeenSet = true;
469 m_partnerInterconnectMacSecCapable = value;
470 }
473 return *this;
474 }
476
478
483 inline int GetPrefixPoolSizeIpv4() const { return m_prefixPoolSizeIpv4; }
484 inline void SetPrefixPoolSizeIpv4(int value) {
485 m_prefixPoolSizeIpv4HasBeenSet = true;
486 m_prefixPoolSizeIpv4 = value;
487 }
490 return *this;
491 }
493
495
500 inline int GetPrefixPoolSizeIpv6() const { return m_prefixPoolSizeIpv6; }
501 inline void SetPrefixPoolSizeIpv6(int value) {
502 m_prefixPoolSizeIpv6HasBeenSet = true;
503 m_prefixPoolSizeIpv6 = value;
504 }
507 return *this;
508 }
510
512
517 inline int GetPrefixPoolUnallocatedCountIpv4() const { return m_prefixPoolUnallocatedCountIpv4; }
518 inline void SetPrefixPoolUnallocatedCountIpv4(int value) {
519 m_prefixPoolUnallocatedCountIpv4HasBeenSet = true;
520 m_prefixPoolUnallocatedCountIpv4 = value;
521 }
524 return *this;
525 }
527
529
534 inline int GetPrefixPoolUnallocatedCountIpv6() const { return m_prefixPoolUnallocatedCountIpv6; }
535 inline void SetPrefixPoolUnallocatedCountIpv6(int value) {
536 m_prefixPoolUnallocatedCountIpv6HasBeenSet = true;
537 m_prefixPoolUnallocatedCountIpv6 = value;
538 }
541 return *this;
542 }
544
546
549 inline BillingMode GetBillingMode() const { return m_billingMode; }
550 inline void SetBillingMode(BillingMode value) {
551 m_billingModeHasBeenSet = true;
552 m_billingMode = value;
553 }
555 SetBillingMode(value);
556 return *this;
557 }
559
561
562 inline const Aws::String& GetRequestId() const { return m_requestId; }
563 template <typename RequestIdT = Aws::String>
564 void SetRequestId(RequestIdT&& value) {
565 m_requestIdHasBeenSet = true;
566 m_requestId = std::forward<RequestIdT>(value);
567 }
568 template <typename RequestIdT = Aws::String>
570 SetRequestId(std::forward<RequestIdT>(value));
571 return *this;
572 }
574 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
575
576 private:
577 Aws::String m_ownerAccount;
578
579 Aws::String m_connectionId;
580
581 Aws::String m_connectionName;
582
583 ConnectionState m_connectionState{ConnectionState::NOT_SET};
584
585 Aws::String m_region;
586
587 Aws::String m_location;
588
589 Aws::String m_bandwidth;
590
591 int m_vlan{0};
592
593 Aws::String m_partnerName;
594
595 Aws::Utils::DateTime m_loaIssueTime{};
596
597 Aws::String m_lagId;
598
599 Aws::String m_awsDevice;
600
601 bool m_jumboFrameCapable{false};
602
603 Aws::String m_awsDeviceV2;
604
605 Aws::String m_awsLogicalDeviceId;
606
608
609 Aws::Vector<Tag> m_tags;
610
611 Aws::String m_providerName;
612
613 bool m_macSecCapable{false};
614
615 Aws::String m_portEncryptionStatus;
616
617 Aws::String m_encryptionMode;
618
619 Aws::Vector<MacSecKey> m_macSecKeys;
620
621 RateLimiterStatus m_rateLimiterStatus;
622
623 bool m_partnerInterconnectMacSecCapable{false};
624
625 int m_prefixPoolSizeIpv4{0};
626
627 int m_prefixPoolSizeIpv6{0};
628
629 int m_prefixPoolUnallocatedCountIpv4{0};
630
631 int m_prefixPoolUnallocatedCountIpv6{0};
632
633 BillingMode m_billingMode{BillingMode::NOT_SET};
634
635 Aws::String m_requestId;
636 Aws::Http::HttpResponseCode m_HttpResponseCode;
637 bool m_ownerAccountHasBeenSet = false;
638 bool m_connectionIdHasBeenSet = false;
639 bool m_connectionNameHasBeenSet = false;
640 bool m_connectionStateHasBeenSet = false;
641 bool m_regionHasBeenSet = false;
642 bool m_locationHasBeenSet = false;
643 bool m_bandwidthHasBeenSet = false;
644 bool m_vlanHasBeenSet = false;
645 bool m_partnerNameHasBeenSet = false;
646 bool m_loaIssueTimeHasBeenSet = false;
647 bool m_lagIdHasBeenSet = false;
648 bool m_awsDeviceHasBeenSet = false;
649 bool m_jumboFrameCapableHasBeenSet = false;
650 bool m_awsDeviceV2HasBeenSet = false;
651 bool m_awsLogicalDeviceIdHasBeenSet = false;
652 bool m_hasLogicalRedundancyHasBeenSet = false;
653 bool m_tagsHasBeenSet = false;
654 bool m_providerNameHasBeenSet = false;
655 bool m_macSecCapableHasBeenSet = false;
656 bool m_portEncryptionStatusHasBeenSet = false;
657 bool m_encryptionModeHasBeenSet = false;
658 bool m_macSecKeysHasBeenSet = false;
659 bool m_rateLimiterStatusHasBeenSet = false;
660 bool m_partnerInterconnectMacSecCapableHasBeenSet = false;
661 bool m_prefixPoolSizeIpv4HasBeenSet = false;
662 bool m_prefixPoolSizeIpv6HasBeenSet = false;
663 bool m_prefixPoolUnallocatedCountIpv4HasBeenSet = false;
664 bool m_prefixPoolUnallocatedCountIpv6HasBeenSet = false;
665 bool m_billingModeHasBeenSet = false;
666 bool m_requestIdHasBeenSet = false;
667};
668
669} // namespace Model
670} // namespace DirectConnect
671} // namespace Aws
CreateConnectionResult & WithProviderName(ProviderNameT &&value)
CreateConnectionResult & AddTags(TagsT &&value)
CreateConnectionResult & WithConnectionState(ConnectionState value)
CreateConnectionResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AWS_DIRECTCONNECT_API CreateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConnectionResult & WithPrefixPoolSizeIpv4(int value)
AWS_DIRECTCONNECT_API CreateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConnectionResult & WithBillingMode(BillingMode value)
CreateConnectionResult & WithLagId(LagIdT &&value)
CreateConnectionResult & WithPrefixPoolUnallocatedCountIpv4(int value)
CreateConnectionResult & WithLoaIssueTime(LoaIssueTimeT &&value)
void SetPortEncryptionStatus(PortEncryptionStatusT &&value)
CreateConnectionResult & AddMacSecKeys(MacSecKeysT &&value)
CreateConnectionResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
const Aws::Vector< MacSecKey > & GetMacSecKeys() const
const Aws::Utils::DateTime & GetLoaIssueTime() const
CreateConnectionResult & WithConnectionName(ConnectionNameT &&value)
CreateConnectionResult & WithMacSecKeys(MacSecKeysT &&value)
CreateConnectionResult & WithHasLogicalRedundancy(HasLogicalRedundancy value)
CreateConnectionResult & WithTags(TagsT &&value)
CreateConnectionResult & WithJumboFrameCapable(bool value)
CreateConnectionResult & WithRateLimiterStatus(RateLimiterStatusT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateConnectionResult & WithPartnerInterconnectMacSecCapable(bool value)
CreateConnectionResult & WithRequestId(RequestIdT &&value)
CreateConnectionResult & WithOwnerAccount(OwnerAccountT &&value)
CreateConnectionResult & WithPortEncryptionStatus(PortEncryptionStatusT &&value)
CreateConnectionResult & WithEncryptionMode(EncryptionModeT &&value)
CreateConnectionResult & WithRegion(RegionT &&value)
CreateConnectionResult & WithAwsDevice(AwsDeviceT &&value)
CreateConnectionResult & WithPartnerName(PartnerNameT &&value)
AWS_DIRECTCONNECT_API CreateConnectionResult()=default
CreateConnectionResult & WithPrefixPoolSizeIpv6(int value)
CreateConnectionResult & WithBandwidth(BandwidthT &&value)
CreateConnectionResult & WithPrefixPoolUnallocatedCountIpv6(int value)
CreateConnectionResult & WithLocation(LocationT &&value)
CreateConnectionResult & WithConnectionId(ConnectionIdT &&value)
CreateConnectionResult & WithMacSecCapable(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue