AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
AllocatePublicVirtualInterfaceResult.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 AllocatePublicVirtualInterfaceResult() = 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
586 inline const Aws::String& GetRateLimit() const { return m_rateLimit; }
587 template <typename RateLimitT = Aws::String>
588 void SetRateLimit(RateLimitT&& value) {
589 m_rateLimitHasBeenSet = true;
590 m_rateLimit = std::forward<RateLimitT>(value);
591 }
592 template <typename RateLimitT = Aws::String>
594 SetRateLimit(std::forward<RateLimitT>(value));
595 return *this;
596 }
598
600
601 inline const Aws::String& GetRequestId() const { return m_requestId; }
602 template <typename RequestIdT = Aws::String>
603 void SetRequestId(RequestIdT&& value) {
604 m_requestIdHasBeenSet = true;
605 m_requestId = std::forward<RequestIdT>(value);
606 }
607 template <typename RequestIdT = Aws::String>
609 SetRequestId(std::forward<RequestIdT>(value));
610 return *this;
611 }
613 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
614
615 private:
616 Aws::String m_ownerAccount;
617
618 Aws::String m_virtualInterfaceId;
619
620 Aws::String m_location;
621
622 Aws::String m_connectionId;
623
624 Aws::String m_virtualInterfaceType;
625
626 Aws::String m_virtualInterfaceName;
627
628 int m_vlan{0};
629
630 int m_asn{0};
631
632 long long m_asnLong{0};
633
634 long long m_amazonSideAsn{0};
635
636 Aws::String m_authKey;
637
638 Aws::String m_amazonAddress;
639
640 Aws::String m_customerAddress;
641
642 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
643
645
646 Aws::String m_customerRouterConfig;
647
648 int m_mtu{0};
649
650 bool m_jumboFrameCapable{false};
651
652 Aws::String m_virtualGatewayId;
653
654 Aws::String m_directConnectGatewayId;
655
656 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
657
658 Aws::Vector<BGPPeer> m_bgpPeers;
659
660 Aws::String m_region;
661
662 Aws::String m_awsDeviceV2;
663
664 Aws::String m_awsLogicalDeviceId;
665
666 Aws::Vector<Tag> m_tags;
667
668 bool m_siteLinkEnabled{false};
669
670 Aws::String m_rateLimit;
671
672 Aws::String m_requestId;
673 Aws::Http::HttpResponseCode m_HttpResponseCode;
674 bool m_ownerAccountHasBeenSet = false;
675 bool m_virtualInterfaceIdHasBeenSet = false;
676 bool m_locationHasBeenSet = false;
677 bool m_connectionIdHasBeenSet = false;
678 bool m_virtualInterfaceTypeHasBeenSet = false;
679 bool m_virtualInterfaceNameHasBeenSet = false;
680 bool m_vlanHasBeenSet = false;
681 bool m_asnHasBeenSet = false;
682 bool m_asnLongHasBeenSet = false;
683 bool m_amazonSideAsnHasBeenSet = false;
684 bool m_authKeyHasBeenSet = false;
685 bool m_amazonAddressHasBeenSet = false;
686 bool m_customerAddressHasBeenSet = false;
687 bool m_addressFamilyHasBeenSet = false;
688 bool m_virtualInterfaceStateHasBeenSet = false;
689 bool m_customerRouterConfigHasBeenSet = false;
690 bool m_mtuHasBeenSet = false;
691 bool m_jumboFrameCapableHasBeenSet = false;
692 bool m_virtualGatewayIdHasBeenSet = false;
693 bool m_directConnectGatewayIdHasBeenSet = false;
694 bool m_routeFilterPrefixesHasBeenSet = false;
695 bool m_bgpPeersHasBeenSet = false;
696 bool m_regionHasBeenSet = false;
697 bool m_awsDeviceV2HasBeenSet = false;
698 bool m_awsLogicalDeviceIdHasBeenSet = false;
699 bool m_tagsHasBeenSet = false;
700 bool m_siteLinkEnabledHasBeenSet = false;
701 bool m_rateLimitHasBeenSet = false;
702 bool m_requestIdHasBeenSet = false;
703};
704
705} // namespace Model
706} // namespace DirectConnect
707} // namespace Aws
AllocatePublicVirtualInterfaceResult & WithAddressFamily(AddressFamily value)
AllocatePublicVirtualInterfaceResult & WithOwnerAccount(OwnerAccountT &&value)
AllocatePublicVirtualInterfaceResult & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
AllocatePublicVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AllocatePublicVirtualInterfaceResult & WithCustomerAddress(CustomerAddressT &&value)
AllocatePublicVirtualInterfaceResult & WithAmazonAddress(AmazonAddressT &&value)
AllocatePublicVirtualInterfaceResult & WithAmazonSideAsn(long long value)
AllocatePublicVirtualInterfaceResult & WithLocation(LocationT &&value)
AllocatePublicVirtualInterfaceResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AllocatePublicVirtualInterfaceResult & WithVirtualInterfaceType(VirtualInterfaceTypeT &&value)
AllocatePublicVirtualInterfaceResult & WithConnectionId(ConnectionIdT &&value)
AllocatePublicVirtualInterfaceResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AllocatePublicVirtualInterfaceResult & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocatePublicVirtualInterfaceResult & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceResult()=default
AllocatePublicVirtualInterfaceResult & WithRateLimit(RateLimitT &&value)
AllocatePublicVirtualInterfaceResult & WithBgpPeers(BgpPeersT &&value)
AllocatePublicVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState value)
AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocatePublicVirtualInterfaceResult & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
AllocatePublicVirtualInterfaceResult & AddBgpPeers(BgpPeersT &&value)
AllocatePublicVirtualInterfaceResult & WithAuthKey(AuthKeyT &&value)
AllocatePublicVirtualInterfaceResult & WithVirtualGatewayId(VirtualGatewayIdT &&value)
AllocatePublicVirtualInterfaceResult & WithRequestId(RequestIdT &&value)
AllocatePublicVirtualInterfaceResult & WithCustomerRouterConfig(CustomerRouterConfigT &&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