AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
AssociateVirtualInterfaceResult.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 AssociateVirtualInterfaceResult() = default;
40
42
46 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
47 template <typename OwnerAccountT = Aws::String>
48 void SetOwnerAccount(OwnerAccountT&& value) {
49 m_ownerAccountHasBeenSet = true;
50 m_ownerAccount = std::forward<OwnerAccountT>(value);
51 }
52 template <typename OwnerAccountT = Aws::String>
54 SetOwnerAccount(std::forward<OwnerAccountT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
64 template <typename VirtualInterfaceIdT = Aws::String>
65 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) {
66 m_virtualInterfaceIdHasBeenSet = true;
67 m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value);
68 }
69 template <typename VirtualInterfaceIdT = Aws::String>
71 SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLocation() const { return m_location; }
81 template <typename LocationT = Aws::String>
82 void SetLocation(LocationT&& value) {
83 m_locationHasBeenSet = true;
84 m_location = std::forward<LocationT>(value);
85 }
86 template <typename LocationT = Aws::String>
88 SetLocation(std::forward<LocationT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
98 template <typename ConnectionIdT = Aws::String>
99 void SetConnectionId(ConnectionIdT&& value) {
100 m_connectionIdHasBeenSet = true;
101 m_connectionId = std::forward<ConnectionIdT>(value);
102 }
103 template <typename ConnectionIdT = Aws::String>
105 SetConnectionId(std::forward<ConnectionIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetVirtualInterfaceType() const { return m_virtualInterfaceType; }
116 template <typename VirtualInterfaceTypeT = Aws::String>
117 void SetVirtualInterfaceType(VirtualInterfaceTypeT&& value) {
118 m_virtualInterfaceTypeHasBeenSet = true;
119 m_virtualInterfaceType = std::forward<VirtualInterfaceTypeT>(value);
120 }
121 template <typename VirtualInterfaceTypeT = Aws::String>
123 SetVirtualInterfaceType(std::forward<VirtualInterfaceTypeT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
135 template <typename VirtualInterfaceNameT = Aws::String>
136 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
137 m_virtualInterfaceNameHasBeenSet = true;
138 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
139 }
140 template <typename VirtualInterfaceNameT = Aws::String>
142 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
143 return *this;
144 }
146
148
151 inline int GetVlan() const { return m_vlan; }
152 inline void SetVlan(int value) {
153 m_vlanHasBeenSet = true;
154 m_vlan = value;
155 }
157 SetVlan(value);
158 return *this;
159 }
161
163
176 inline int GetAsn() const { return m_asn; }
177 inline void SetAsn(int value) {
178 m_asnHasBeenSet = true;
179 m_asn = value;
180 }
182 SetAsn(value);
183 return *this;
184 }
186
188
204 inline long long GetAsnLong() const { return m_asnLong; }
205 inline void SetAsnLong(long long value) {
206 m_asnLongHasBeenSet = true;
207 m_asnLong = value;
208 }
210 SetAsnLong(value);
211 return *this;
212 }
214
216
219 inline long long GetAmazonSideAsn() const { return m_amazonSideAsn; }
220 inline void SetAmazonSideAsn(long long value) {
221 m_amazonSideAsnHasBeenSet = true;
222 m_amazonSideAsn = value;
223 }
225 SetAmazonSideAsn(value);
226 return *this;
227 }
229
231
235 inline const Aws::String& GetAuthKey() const { return m_authKey; }
236 template <typename AuthKeyT = Aws::String>
237 void SetAuthKey(AuthKeyT&& value) {
238 m_authKeyHasBeenSet = true;
239 m_authKey = std::forward<AuthKeyT>(value);
240 }
241 template <typename AuthKeyT = Aws::String>
243 SetAuthKey(std::forward<AuthKeyT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
253 template <typename AmazonAddressT = Aws::String>
254 void SetAmazonAddress(AmazonAddressT&& value) {
255 m_amazonAddressHasBeenSet = true;
256 m_amazonAddress = std::forward<AmazonAddressT>(value);
257 }
258 template <typename AmazonAddressT = Aws::String>
260 SetAmazonAddress(std::forward<AmazonAddressT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
270 template <typename CustomerAddressT = Aws::String>
271 void SetCustomerAddress(CustomerAddressT&& value) {
272 m_customerAddressHasBeenSet = true;
273 m_customerAddress = std::forward<CustomerAddressT>(value);
274 }
275 template <typename CustomerAddressT = Aws::String>
277 SetCustomerAddress(std::forward<CustomerAddressT>(value));
278 return *this;
279 }
281
283
286 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
287 inline void SetAddressFamily(AddressFamily value) {
288 m_addressFamilyHasBeenSet = true;
289 m_addressFamily = value;
290 }
292 SetAddressFamily(value);
293 return *this;
294 }
296
298
324 inline VirtualInterfaceState GetVirtualInterfaceState() const { return m_virtualInterfaceState; }
326 m_virtualInterfaceStateHasBeenSet = true;
327 m_virtualInterfaceState = value;
328 }
331 return *this;
332 }
334
336
339 inline const Aws::String& GetCustomerRouterConfig() const { return m_customerRouterConfig; }
340 template <typename CustomerRouterConfigT = Aws::String>
341 void SetCustomerRouterConfig(CustomerRouterConfigT&& value) {
342 m_customerRouterConfigHasBeenSet = true;
343 m_customerRouterConfig = std::forward<CustomerRouterConfigT>(value);
344 }
345 template <typename CustomerRouterConfigT = Aws::String>
347 SetCustomerRouterConfig(std::forward<CustomerRouterConfigT>(value));
348 return *this;
349 }
351
353
357 inline int GetMtu() const { return m_mtu; }
358 inline void SetMtu(int value) {
359 m_mtuHasBeenSet = true;
360 m_mtu = value;
361 }
363 SetMtu(value);
364 return *this;
365 }
367
369
372 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
373 inline void SetJumboFrameCapable(bool value) {
374 m_jumboFrameCapableHasBeenSet = true;
375 m_jumboFrameCapable = value;
376 }
379 return *this;
380 }
382
384
388 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
389 template <typename VirtualGatewayIdT = Aws::String>
390 void SetVirtualGatewayId(VirtualGatewayIdT&& value) {
391 m_virtualGatewayIdHasBeenSet = true;
392 m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value);
393 }
394 template <typename VirtualGatewayIdT = Aws::String>
396 SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value));
397 return *this;
398 }
400
402
405 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
406 template <typename DirectConnectGatewayIdT = Aws::String>
407 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
408 m_directConnectGatewayIdHasBeenSet = true;
409 m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value);
410 }
411 template <typename DirectConnectGatewayIdT = Aws::String>
413 SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value));
414 return *this;
415 }
417
419
423 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
424 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
425 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
426 m_routeFilterPrefixesHasBeenSet = true;
427 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
428 }
429 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
431 SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value));
432 return *this;
433 }
434 template <typename RouteFilterPrefixesT = RouteFilterPrefix>
436 m_routeFilterPrefixesHasBeenSet = true;
437 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
438 return *this;
439 }
441
443
446 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const { return m_bgpPeers; }
447 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
448 void SetBgpPeers(BgpPeersT&& value) {
449 m_bgpPeersHasBeenSet = true;
450 m_bgpPeers = std::forward<BgpPeersT>(value);
451 }
452 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
454 SetBgpPeers(std::forward<BgpPeersT>(value));
455 return *this;
456 }
457 template <typename BgpPeersT = BGPPeer>
459 m_bgpPeersHasBeenSet = true;
460 m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value));
461 return *this;
462 }
464
466
469 inline const Aws::String& GetRegion() const { return m_region; }
470 template <typename RegionT = Aws::String>
471 void SetRegion(RegionT&& value) {
472 m_regionHasBeenSet = true;
473 m_region = std::forward<RegionT>(value);
474 }
475 template <typename RegionT = Aws::String>
477 SetRegion(std::forward<RegionT>(value));
478 return *this;
479 }
481
483
486 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
487 template <typename AwsDeviceV2T = Aws::String>
488 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
489 m_awsDeviceV2HasBeenSet = true;
490 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
491 }
492 template <typename AwsDeviceV2T = Aws::String>
494 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
495 return *this;
496 }
498
500
505 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
506 template <typename AwsLogicalDeviceIdT = Aws::String>
507 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
508 m_awsLogicalDeviceIdHasBeenSet = true;
509 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
510 }
511 template <typename AwsLogicalDeviceIdT = Aws::String>
513 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
514 return *this;
515 }
517
519
522 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
523 template <typename TagsT = Aws::Vector<Tag>>
524 void SetTags(TagsT&& value) {
525 m_tagsHasBeenSet = true;
526 m_tags = std::forward<TagsT>(value);
527 }
528 template <typename TagsT = Aws::Vector<Tag>>
530 SetTags(std::forward<TagsT>(value));
531 return *this;
532 }
533 template <typename TagsT = Tag>
535 m_tagsHasBeenSet = true;
536 m_tags.emplace_back(std::forward<TagsT>(value));
537 return *this;
538 }
540
542
545 inline bool GetSiteLinkEnabled() const { return m_siteLinkEnabled; }
546 inline void SetSiteLinkEnabled(bool value) {
547 m_siteLinkEnabledHasBeenSet = true;
548 m_siteLinkEnabled = value;
549 }
551 SetSiteLinkEnabled(value);
552 return *this;
553 }
555
557
564 inline const Aws::String& GetRateLimit() const { return m_rateLimit; }
565 template <typename RateLimitT = Aws::String>
566 void SetRateLimit(RateLimitT&& value) {
567 m_rateLimitHasBeenSet = true;
568 m_rateLimit = std::forward<RateLimitT>(value);
569 }
570 template <typename RateLimitT = Aws::String>
572 SetRateLimit(std::forward<RateLimitT>(value));
573 return *this;
574 }
576
578
579 inline const Aws::String& GetRequestId() const { return m_requestId; }
580 template <typename RequestIdT = Aws::String>
581 void SetRequestId(RequestIdT&& value) {
582 m_requestIdHasBeenSet = true;
583 m_requestId = std::forward<RequestIdT>(value);
584 }
585 template <typename RequestIdT = Aws::String>
587 SetRequestId(std::forward<RequestIdT>(value));
588 return *this;
589 }
591 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
592
593 private:
594 Aws::String m_ownerAccount;
595
596 Aws::String m_virtualInterfaceId;
597
598 Aws::String m_location;
599
600 Aws::String m_connectionId;
601
602 Aws::String m_virtualInterfaceType;
603
604 Aws::String m_virtualInterfaceName;
605
606 int m_vlan{0};
607
608 int m_asn{0};
609
610 long long m_asnLong{0};
611
612 long long m_amazonSideAsn{0};
613
614 Aws::String m_authKey;
615
616 Aws::String m_amazonAddress;
617
618 Aws::String m_customerAddress;
619
620 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
621
623
624 Aws::String m_customerRouterConfig;
625
626 int m_mtu{0};
627
628 bool m_jumboFrameCapable{false};
629
630 Aws::String m_virtualGatewayId;
631
632 Aws::String m_directConnectGatewayId;
633
634 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
635
636 Aws::Vector<BGPPeer> m_bgpPeers;
637
638 Aws::String m_region;
639
640 Aws::String m_awsDeviceV2;
641
642 Aws::String m_awsLogicalDeviceId;
643
644 Aws::Vector<Tag> m_tags;
645
646 bool m_siteLinkEnabled{false};
647
648 Aws::String m_rateLimit;
649
650 Aws::String m_requestId;
651 Aws::Http::HttpResponseCode m_HttpResponseCode;
652 bool m_ownerAccountHasBeenSet = false;
653 bool m_virtualInterfaceIdHasBeenSet = false;
654 bool m_locationHasBeenSet = false;
655 bool m_connectionIdHasBeenSet = false;
656 bool m_virtualInterfaceTypeHasBeenSet = false;
657 bool m_virtualInterfaceNameHasBeenSet = false;
658 bool m_vlanHasBeenSet = false;
659 bool m_asnHasBeenSet = false;
660 bool m_asnLongHasBeenSet = false;
661 bool m_amazonSideAsnHasBeenSet = false;
662 bool m_authKeyHasBeenSet = false;
663 bool m_amazonAddressHasBeenSet = false;
664 bool m_customerAddressHasBeenSet = false;
665 bool m_addressFamilyHasBeenSet = false;
666 bool m_virtualInterfaceStateHasBeenSet = false;
667 bool m_customerRouterConfigHasBeenSet = false;
668 bool m_mtuHasBeenSet = false;
669 bool m_jumboFrameCapableHasBeenSet = false;
670 bool m_virtualGatewayIdHasBeenSet = false;
671 bool m_directConnectGatewayIdHasBeenSet = false;
672 bool m_routeFilterPrefixesHasBeenSet = false;
673 bool m_bgpPeersHasBeenSet = false;
674 bool m_regionHasBeenSet = false;
675 bool m_awsDeviceV2HasBeenSet = false;
676 bool m_awsLogicalDeviceIdHasBeenSet = false;
677 bool m_tagsHasBeenSet = false;
678 bool m_siteLinkEnabledHasBeenSet = false;
679 bool m_rateLimitHasBeenSet = false;
680 bool m_requestIdHasBeenSet = false;
681};
682
683} // namespace Model
684} // namespace DirectConnect
685} // namespace Aws
AWS_DIRECTCONNECT_API AssociateVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateVirtualInterfaceResult & WithAuthKey(AuthKeyT &&value)
AssociateVirtualInterfaceResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceType(VirtualInterfaceTypeT &&value)
AWS_DIRECTCONNECT_API AssociateVirtualInterfaceResult()=default
AssociateVirtualInterfaceResult & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AssociateVirtualInterfaceResult & WithCustomerRouterConfig(CustomerRouterConfigT &&value)
AssociateVirtualInterfaceResult & WithAsnLong(long long value)
AssociateVirtualInterfaceResult & AddBgpPeers(BgpPeersT &&value)
AssociateVirtualInterfaceResult & WithAddressFamily(AddressFamily value)
AssociateVirtualInterfaceResult & WithCustomerAddress(CustomerAddressT &&value)
AssociateVirtualInterfaceResult & WithOwnerAccount(OwnerAccountT &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState value)
AssociateVirtualInterfaceResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AssociateVirtualInterfaceResult & WithRequestId(RequestIdT &&value)
AssociateVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AWS_DIRECTCONNECT_API AssociateVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
AssociateVirtualInterfaceResult & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
AssociateVirtualInterfaceResult & WithAmazonAddress(AmazonAddressT &&value)
AssociateVirtualInterfaceResult & WithConnectionId(ConnectionIdT &&value)
AssociateVirtualInterfaceResult & WithRateLimit(RateLimitT &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
AssociateVirtualInterfaceResult & WithVirtualGatewayId(VirtualGatewayIdT &&value)
AssociateVirtualInterfaceResult & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
AssociateVirtualInterfaceResult & WithBgpPeers(BgpPeersT &&value)
AssociateVirtualInterfaceResult & WithAmazonSideAsn(long long value)
AssociateVirtualInterfaceResult & WithRegion(RegionT &&value)
AssociateVirtualInterfaceResult & WithLocation(LocationT &&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