AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
CreatePrivateVirtualInterfaceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/AddressFamily.h>
12#include <aws/directconnect/model/BGPPeer.h>
13#include <aws/directconnect/model/RouteFilterPrefix.h>
14#include <aws/directconnect/model/Tag.h>
15#include <aws/directconnect/model/VirtualInterfaceState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DirectConnect {
29namespace Model {
36 public:
37 AWS_DIRECTCONNECT_API CreatePrivateVirtualInterfaceResult() = default;
41
43
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>
55 SetOwnerAccount(std::forward<OwnerAccountT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
65 template <typename VirtualInterfaceIdT = Aws::String>
66 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) {
67 m_virtualInterfaceIdHasBeenSet = true;
68 m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value);
69 }
70 template <typename VirtualInterfaceIdT = Aws::String>
72 SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetLocation() const { return m_location; }
82 template <typename LocationT = Aws::String>
83 void SetLocation(LocationT&& value) {
84 m_locationHasBeenSet = true;
85 m_location = std::forward<LocationT>(value);
86 }
87 template <typename LocationT = Aws::String>
89 SetLocation(std::forward<LocationT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
99 template <typename ConnectionIdT = Aws::String>
100 void SetConnectionId(ConnectionIdT&& value) {
101 m_connectionIdHasBeenSet = true;
102 m_connectionId = std::forward<ConnectionIdT>(value);
103 }
104 template <typename ConnectionIdT = Aws::String>
106 SetConnectionId(std::forward<ConnectionIdT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetVirtualInterfaceType() const { return m_virtualInterfaceType; }
117 template <typename VirtualInterfaceTypeT = Aws::String>
118 void SetVirtualInterfaceType(VirtualInterfaceTypeT&& value) {
119 m_virtualInterfaceTypeHasBeenSet = true;
120 m_virtualInterfaceType = std::forward<VirtualInterfaceTypeT>(value);
121 }
122 template <typename VirtualInterfaceTypeT = Aws::String>
124 SetVirtualInterfaceType(std::forward<VirtualInterfaceTypeT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
136 template <typename VirtualInterfaceNameT = Aws::String>
137 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
138 m_virtualInterfaceNameHasBeenSet = true;
139 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
140 }
141 template <typename VirtualInterfaceNameT = Aws::String>
143 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
144 return *this;
145 }
147
149
152 inline int GetVlan() const { return m_vlan; }
153 inline void SetVlan(int value) {
154 m_vlanHasBeenSet = true;
155 m_vlan = value;
156 }
158 SetVlan(value);
159 return *this;
160 }
162
164
177 inline int GetAsn() const { return m_asn; }
178 inline void SetAsn(int value) {
179 m_asnHasBeenSet = true;
180 m_asn = value;
181 }
183 SetAsn(value);
184 return *this;
185 }
187
189
205 inline long long GetAsnLong() const { return m_asnLong; }
206 inline void SetAsnLong(long long value) {
207 m_asnLongHasBeenSet = true;
208 m_asnLong = value;
209 }
211 SetAsnLong(value);
212 return *this;
213 }
215
217
220 inline long long GetAmazonSideAsn() const { return m_amazonSideAsn; }
221 inline void SetAmazonSideAsn(long long value) {
222 m_amazonSideAsnHasBeenSet = true;
223 m_amazonSideAsn = value;
224 }
226 SetAmazonSideAsn(value);
227 return *this;
228 }
230
232
236 inline const Aws::String& GetAuthKey() const { return m_authKey; }
237 template <typename AuthKeyT = Aws::String>
238 void SetAuthKey(AuthKeyT&& value) {
239 m_authKeyHasBeenSet = true;
240 m_authKey = std::forward<AuthKeyT>(value);
241 }
242 template <typename AuthKeyT = Aws::String>
244 SetAuthKey(std::forward<AuthKeyT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
254 template <typename AmazonAddressT = Aws::String>
255 void SetAmazonAddress(AmazonAddressT&& value) {
256 m_amazonAddressHasBeenSet = true;
257 m_amazonAddress = std::forward<AmazonAddressT>(value);
258 }
259 template <typename AmazonAddressT = Aws::String>
261 SetAmazonAddress(std::forward<AmazonAddressT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
271 template <typename CustomerAddressT = Aws::String>
272 void SetCustomerAddress(CustomerAddressT&& value) {
273 m_customerAddressHasBeenSet = true;
274 m_customerAddress = std::forward<CustomerAddressT>(value);
275 }
276 template <typename CustomerAddressT = Aws::String>
278 SetCustomerAddress(std::forward<CustomerAddressT>(value));
279 return *this;
280 }
282
284
287 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
288 inline void SetAddressFamily(AddressFamily value) {
289 m_addressFamilyHasBeenSet = true;
290 m_addressFamily = value;
291 }
293 SetAddressFamily(value);
294 return *this;
295 }
297
299
325 inline VirtualInterfaceState GetVirtualInterfaceState() const { return m_virtualInterfaceState; }
327 m_virtualInterfaceStateHasBeenSet = true;
328 m_virtualInterfaceState = value;
329 }
332 return *this;
333 }
335
337
340 inline const Aws::String& GetCustomerRouterConfig() const { return m_customerRouterConfig; }
341 template <typename CustomerRouterConfigT = Aws::String>
342 void SetCustomerRouterConfig(CustomerRouterConfigT&& value) {
343 m_customerRouterConfigHasBeenSet = true;
344 m_customerRouterConfig = std::forward<CustomerRouterConfigT>(value);
345 }
346 template <typename CustomerRouterConfigT = Aws::String>
348 SetCustomerRouterConfig(std::forward<CustomerRouterConfigT>(value));
349 return *this;
350 }
352
354
358 inline int GetMtu() const { return m_mtu; }
359 inline void SetMtu(int value) {
360 m_mtuHasBeenSet = true;
361 m_mtu = value;
362 }
364 SetMtu(value);
365 return *this;
366 }
368
370
373 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
374 inline void SetJumboFrameCapable(bool value) {
375 m_jumboFrameCapableHasBeenSet = true;
376 m_jumboFrameCapable = value;
377 }
380 return *this;
381 }
383
385
389 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
390 template <typename VirtualGatewayIdT = Aws::String>
391 void SetVirtualGatewayId(VirtualGatewayIdT&& value) {
392 m_virtualGatewayIdHasBeenSet = true;
393 m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value);
394 }
395 template <typename VirtualGatewayIdT = Aws::String>
397 SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value));
398 return *this;
399 }
401
403
406 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
407 template <typename DirectConnectGatewayIdT = Aws::String>
408 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
409 m_directConnectGatewayIdHasBeenSet = true;
410 m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value);
411 }
412 template <typename DirectConnectGatewayIdT = Aws::String>
414 SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value));
415 return *this;
416 }
418
420
424 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
425 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
426 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
427 m_routeFilterPrefixesHasBeenSet = true;
428 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
429 }
430 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
432 SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value));
433 return *this;
434 }
435 template <typename RouteFilterPrefixesT = RouteFilterPrefix>
437 m_routeFilterPrefixesHasBeenSet = true;
438 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
439 return *this;
440 }
442
444
447 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const { return m_bgpPeers; }
448 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
449 void SetBgpPeers(BgpPeersT&& value) {
450 m_bgpPeersHasBeenSet = true;
451 m_bgpPeers = std::forward<BgpPeersT>(value);
452 }
453 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
455 SetBgpPeers(std::forward<BgpPeersT>(value));
456 return *this;
457 }
458 template <typename BgpPeersT = BGPPeer>
460 m_bgpPeersHasBeenSet = true;
461 m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value));
462 return *this;
463 }
465
467
470 inline const Aws::String& GetRegion() const { return m_region; }
471 template <typename RegionT = Aws::String>
472 void SetRegion(RegionT&& value) {
473 m_regionHasBeenSet = true;
474 m_region = std::forward<RegionT>(value);
475 }
476 template <typename RegionT = Aws::String>
478 SetRegion(std::forward<RegionT>(value));
479 return *this;
480 }
482
484
487 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
488 template <typename AwsDeviceV2T = Aws::String>
489 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
490 m_awsDeviceV2HasBeenSet = true;
491 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
492 }
493 template <typename AwsDeviceV2T = Aws::String>
495 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
496 return *this;
497 }
499
501
506 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
507 template <typename AwsLogicalDeviceIdT = Aws::String>
508 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
509 m_awsLogicalDeviceIdHasBeenSet = true;
510 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
511 }
512 template <typename AwsLogicalDeviceIdT = Aws::String>
514 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
515 return *this;
516 }
518
520
523 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
524 template <typename TagsT = Aws::Vector<Tag>>
525 void SetTags(TagsT&& value) {
526 m_tagsHasBeenSet = true;
527 m_tags = std::forward<TagsT>(value);
528 }
529 template <typename TagsT = Aws::Vector<Tag>>
531 SetTags(std::forward<TagsT>(value));
532 return *this;
533 }
534 template <typename TagsT = Tag>
536 m_tagsHasBeenSet = true;
537 m_tags.emplace_back(std::forward<TagsT>(value));
538 return *this;
539 }
541
543
546 inline bool GetSiteLinkEnabled() const { return m_siteLinkEnabled; }
547 inline void SetSiteLinkEnabled(bool value) {
548 m_siteLinkEnabledHasBeenSet = true;
549 m_siteLinkEnabled = value;
550 }
552 SetSiteLinkEnabled(value);
553 return *this;
554 }
556
558
562 inline int GetPrefixPoolAllocatedCountIpv4() const { return m_prefixPoolAllocatedCountIpv4; }
563 inline void SetPrefixPoolAllocatedCountIpv4(int value) {
564 m_prefixPoolAllocatedCountIpv4HasBeenSet = true;
565 m_prefixPoolAllocatedCountIpv4 = value;
566 }
569 return *this;
570 }
572
574
578 inline int GetPrefixPoolAllocatedCountIpv6() const { return m_prefixPoolAllocatedCountIpv6; }
579 inline void SetPrefixPoolAllocatedCountIpv6(int value) {
580 m_prefixPoolAllocatedCountIpv6HasBeenSet = true;
581 m_prefixPoolAllocatedCountIpv6 = value;
582 }
585 return *this;
586 }
588
590
618 inline const Aws::String& GetRateLimit() const { return m_rateLimit; }
619 template <typename RateLimitT = Aws::String>
620 void SetRateLimit(RateLimitT&& value) {
621 m_rateLimitHasBeenSet = true;
622 m_rateLimit = std::forward<RateLimitT>(value);
623 }
624 template <typename RateLimitT = Aws::String>
626 SetRateLimit(std::forward<RateLimitT>(value));
627 return *this;
628 }
630
632
633 inline const Aws::String& GetRequestId() const { return m_requestId; }
634 template <typename RequestIdT = Aws::String>
635 void SetRequestId(RequestIdT&& value) {
636 m_requestIdHasBeenSet = true;
637 m_requestId = std::forward<RequestIdT>(value);
638 }
639 template <typename RequestIdT = Aws::String>
641 SetRequestId(std::forward<RequestIdT>(value));
642 return *this;
643 }
645 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
646
647 private:
648 Aws::String m_ownerAccount;
649
650 Aws::String m_virtualInterfaceId;
651
652 Aws::String m_location;
653
654 Aws::String m_connectionId;
655
656 Aws::String m_virtualInterfaceType;
657
658 Aws::String m_virtualInterfaceName;
659
660 int m_vlan{0};
661
662 int m_asn{0};
663
664 long long m_asnLong{0};
665
666 long long m_amazonSideAsn{0};
667
668 Aws::String m_authKey;
669
670 Aws::String m_amazonAddress;
671
672 Aws::String m_customerAddress;
673
674 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
675
677
678 Aws::String m_customerRouterConfig;
679
680 int m_mtu{0};
681
682 bool m_jumboFrameCapable{false};
683
684 Aws::String m_virtualGatewayId;
685
686 Aws::String m_directConnectGatewayId;
687
688 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
689
690 Aws::Vector<BGPPeer> m_bgpPeers;
691
692 Aws::String m_region;
693
694 Aws::String m_awsDeviceV2;
695
696 Aws::String m_awsLogicalDeviceId;
697
698 Aws::Vector<Tag> m_tags;
699
700 bool m_siteLinkEnabled{false};
701
702 int m_prefixPoolAllocatedCountIpv4{0};
703
704 int m_prefixPoolAllocatedCountIpv6{0};
705
706 Aws::String m_rateLimit;
707
708 Aws::String m_requestId;
709 Aws::Http::HttpResponseCode m_HttpResponseCode;
710 bool m_ownerAccountHasBeenSet = false;
711 bool m_virtualInterfaceIdHasBeenSet = false;
712 bool m_locationHasBeenSet = false;
713 bool m_connectionIdHasBeenSet = false;
714 bool m_virtualInterfaceTypeHasBeenSet = false;
715 bool m_virtualInterfaceNameHasBeenSet = false;
716 bool m_vlanHasBeenSet = false;
717 bool m_asnHasBeenSet = false;
718 bool m_asnLongHasBeenSet = false;
719 bool m_amazonSideAsnHasBeenSet = false;
720 bool m_authKeyHasBeenSet = false;
721 bool m_amazonAddressHasBeenSet = false;
722 bool m_customerAddressHasBeenSet = false;
723 bool m_addressFamilyHasBeenSet = false;
724 bool m_virtualInterfaceStateHasBeenSet = false;
725 bool m_customerRouterConfigHasBeenSet = false;
726 bool m_mtuHasBeenSet = false;
727 bool m_jumboFrameCapableHasBeenSet = false;
728 bool m_virtualGatewayIdHasBeenSet = false;
729 bool m_directConnectGatewayIdHasBeenSet = false;
730 bool m_routeFilterPrefixesHasBeenSet = false;
731 bool m_bgpPeersHasBeenSet = false;
732 bool m_regionHasBeenSet = false;
733 bool m_awsDeviceV2HasBeenSet = false;
734 bool m_awsLogicalDeviceIdHasBeenSet = false;
735 bool m_tagsHasBeenSet = false;
736 bool m_siteLinkEnabledHasBeenSet = false;
737 bool m_prefixPoolAllocatedCountIpv4HasBeenSet = false;
738 bool m_prefixPoolAllocatedCountIpv6HasBeenSet = false;
739 bool m_rateLimitHasBeenSet = false;
740 bool m_requestIdHasBeenSet = false;
741};
742
743} // namespace Model
744} // namespace DirectConnect
745} // namespace Aws
CreatePrivateVirtualInterfaceResult & WithCustomerRouterConfig(CustomerRouterConfigT &&value)
CreatePrivateVirtualInterfaceResult & WithOwnerAccount(OwnerAccountT &&value)
AWS_DIRECTCONNECT_API CreatePrivateVirtualInterfaceResult()=default
CreatePrivateVirtualInterfaceResult & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
CreatePrivateVirtualInterfaceResult & WithConnectionId(ConnectionIdT &&value)
CreatePrivateVirtualInterfaceResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
CreatePrivateVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState value)
AWS_DIRECTCONNECT_API CreatePrivateVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePrivateVirtualInterfaceResult & WithRateLimit(RateLimitT &&value)
CreatePrivateVirtualInterfaceResult & WithAuthKey(AuthKeyT &&value)
CreatePrivateVirtualInterfaceResult & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
CreatePrivateVirtualInterfaceResult & AddBgpPeers(BgpPeersT &&value)
CreatePrivateVirtualInterfaceResult & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
CreatePrivateVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
CreatePrivateVirtualInterfaceResult & WithAmazonSideAsn(long long value)
CreatePrivateVirtualInterfaceResult & WithVirtualGatewayId(VirtualGatewayIdT &&value)
CreatePrivateVirtualInterfaceResult & WithPrefixPoolAllocatedCountIpv4(int value)
CreatePrivateVirtualInterfaceResult & WithBgpPeers(BgpPeersT &&value)
AWS_DIRECTCONNECT_API CreatePrivateVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePrivateVirtualInterfaceResult & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
CreatePrivateVirtualInterfaceResult & WithVirtualInterfaceType(VirtualInterfaceTypeT &&value)
CreatePrivateVirtualInterfaceResult & WithAddressFamily(AddressFamily value)
CreatePrivateVirtualInterfaceResult & WithCustomerAddress(CustomerAddressT &&value)
CreatePrivateVirtualInterfaceResult & WithAmazonAddress(AmazonAddressT &&value)
CreatePrivateVirtualInterfaceResult & WithRequestId(RequestIdT &&value)
CreatePrivateVirtualInterfaceResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
CreatePrivateVirtualInterfaceResult & WithLocation(LocationT &&value)
CreatePrivateVirtualInterfaceResult & WithPrefixPoolAllocatedCountIpv6(int 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