AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AllocatePrivateVirtualInterfaceResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/AddressFamily.h>
11#include <aws/directconnect/model/BGPPeer.h>
12#include <aws/directconnect/model/RouteFilterPrefix.h>
13#include <aws/directconnect/model/Tag.h>
14#include <aws/directconnect/model/VirtualInterfaceState.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DirectConnect {
28namespace Model {
35 public:
36 AWS_DIRECTCONNECT_API AllocatePrivateVirtualInterfaceResult() = 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
174 inline int GetAsn() const { return m_asn; }
175 inline void SetAsn(int value) {
176 m_asnHasBeenSet = true;
177 m_asn = value;
178 }
180 SetAsn(value);
181 return *this;
182 }
184
186
196 inline long long GetAsnLong() const { return m_asnLong; }
197 inline void SetAsnLong(long long value) {
198 m_asnLongHasBeenSet = true;
199 m_asnLong = value;
200 }
202 SetAsnLong(value);
203 return *this;
204 }
206
208
211 inline long long GetAmazonSideAsn() const { return m_amazonSideAsn; }
212 inline void SetAmazonSideAsn(long long value) {
213 m_amazonSideAsnHasBeenSet = true;
214 m_amazonSideAsn = value;
215 }
217 SetAmazonSideAsn(value);
218 return *this;
219 }
221
223
227 inline const Aws::String& GetAuthKey() const { return m_authKey; }
228 template <typename AuthKeyT = Aws::String>
229 void SetAuthKey(AuthKeyT&& value) {
230 m_authKeyHasBeenSet = true;
231 m_authKey = std::forward<AuthKeyT>(value);
232 }
233 template <typename AuthKeyT = Aws::String>
235 SetAuthKey(std::forward<AuthKeyT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
245 template <typename AmazonAddressT = Aws::String>
246 void SetAmazonAddress(AmazonAddressT&& value) {
247 m_amazonAddressHasBeenSet = true;
248 m_amazonAddress = std::forward<AmazonAddressT>(value);
249 }
250 template <typename AmazonAddressT = Aws::String>
252 SetAmazonAddress(std::forward<AmazonAddressT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
262 template <typename CustomerAddressT = Aws::String>
263 void SetCustomerAddress(CustomerAddressT&& value) {
264 m_customerAddressHasBeenSet = true;
265 m_customerAddress = std::forward<CustomerAddressT>(value);
266 }
267 template <typename CustomerAddressT = Aws::String>
269 SetCustomerAddress(std::forward<CustomerAddressT>(value));
270 return *this;
271 }
273
275
278 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
279 inline void SetAddressFamily(AddressFamily value) {
280 m_addressFamilyHasBeenSet = true;
281 m_addressFamily = value;
282 }
284 SetAddressFamily(value);
285 return *this;
286 }
288
290
316 inline VirtualInterfaceState GetVirtualInterfaceState() const { return m_virtualInterfaceState; }
318 m_virtualInterfaceStateHasBeenSet = true;
319 m_virtualInterfaceState = value;
320 }
323 return *this;
324 }
326
328
331 inline const Aws::String& GetCustomerRouterConfig() const { return m_customerRouterConfig; }
332 template <typename CustomerRouterConfigT = Aws::String>
333 void SetCustomerRouterConfig(CustomerRouterConfigT&& value) {
334 m_customerRouterConfigHasBeenSet = true;
335 m_customerRouterConfig = std::forward<CustomerRouterConfigT>(value);
336 }
337 template <typename CustomerRouterConfigT = Aws::String>
339 SetCustomerRouterConfig(std::forward<CustomerRouterConfigT>(value));
340 return *this;
341 }
343
345
349 inline int GetMtu() const { return m_mtu; }
350 inline void SetMtu(int value) {
351 m_mtuHasBeenSet = true;
352 m_mtu = value;
353 }
355 SetMtu(value);
356 return *this;
357 }
359
361
364 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
365 inline void SetJumboFrameCapable(bool value) {
366 m_jumboFrameCapableHasBeenSet = true;
367 m_jumboFrameCapable = value;
368 }
371 return *this;
372 }
374
376
380 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
381 template <typename VirtualGatewayIdT = Aws::String>
382 void SetVirtualGatewayId(VirtualGatewayIdT&& value) {
383 m_virtualGatewayIdHasBeenSet = true;
384 m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value);
385 }
386 template <typename VirtualGatewayIdT = Aws::String>
388 SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value));
389 return *this;
390 }
392
394
397 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
398 template <typename DirectConnectGatewayIdT = Aws::String>
399 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
400 m_directConnectGatewayIdHasBeenSet = true;
401 m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value);
402 }
403 template <typename DirectConnectGatewayIdT = Aws::String>
405 SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value));
406 return *this;
407 }
409
411
415 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
416 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
417 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
418 m_routeFilterPrefixesHasBeenSet = true;
419 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
420 }
421 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
423 SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value));
424 return *this;
425 }
426 template <typename RouteFilterPrefixesT = RouteFilterPrefix>
428 m_routeFilterPrefixesHasBeenSet = true;
429 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
430 return *this;
431 }
433
435
438 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const { return m_bgpPeers; }
439 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
440 void SetBgpPeers(BgpPeersT&& value) {
441 m_bgpPeersHasBeenSet = true;
442 m_bgpPeers = std::forward<BgpPeersT>(value);
443 }
444 template <typename BgpPeersT = Aws::Vector<BGPPeer>>
446 SetBgpPeers(std::forward<BgpPeersT>(value));
447 return *this;
448 }
449 template <typename BgpPeersT = BGPPeer>
451 m_bgpPeersHasBeenSet = true;
452 m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value));
453 return *this;
454 }
456
458
461 inline const Aws::String& GetRegion() const { return m_region; }
462 template <typename RegionT = Aws::String>
463 void SetRegion(RegionT&& value) {
464 m_regionHasBeenSet = true;
465 m_region = std::forward<RegionT>(value);
466 }
467 template <typename RegionT = Aws::String>
469 SetRegion(std::forward<RegionT>(value));
470 return *this;
471 }
473
475
478 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
479 template <typename AwsDeviceV2T = Aws::String>
480 void SetAwsDeviceV2(AwsDeviceV2T&& value) {
481 m_awsDeviceV2HasBeenSet = true;
482 m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value);
483 }
484 template <typename AwsDeviceV2T = Aws::String>
486 SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value));
487 return *this;
488 }
490
492
497 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
498 template <typename AwsLogicalDeviceIdT = Aws::String>
499 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) {
500 m_awsLogicalDeviceIdHasBeenSet = true;
501 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
502 }
503 template <typename AwsLogicalDeviceIdT = Aws::String>
505 SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value));
506 return *this;
507 }
509
511
514 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
515 template <typename TagsT = Aws::Vector<Tag>>
516 void SetTags(TagsT&& value) {
517 m_tagsHasBeenSet = true;
518 m_tags = std::forward<TagsT>(value);
519 }
520 template <typename TagsT = Aws::Vector<Tag>>
522 SetTags(std::forward<TagsT>(value));
523 return *this;
524 }
525 template <typename TagsT = Tag>
527 m_tagsHasBeenSet = true;
528 m_tags.emplace_back(std::forward<TagsT>(value));
529 return *this;
530 }
532
534
537 inline bool GetSiteLinkEnabled() const { return m_siteLinkEnabled; }
538 inline void SetSiteLinkEnabled(bool value) {
539 m_siteLinkEnabledHasBeenSet = true;
540 m_siteLinkEnabled = value;
541 }
543 SetSiteLinkEnabled(value);
544 return *this;
545 }
547
549
550 inline const Aws::String& GetRequestId() const { return m_requestId; }
551 template <typename RequestIdT = Aws::String>
552 void SetRequestId(RequestIdT&& value) {
553 m_requestIdHasBeenSet = true;
554 m_requestId = std::forward<RequestIdT>(value);
555 }
556 template <typename RequestIdT = Aws::String>
558 SetRequestId(std::forward<RequestIdT>(value));
559 return *this;
560 }
562 private:
563 Aws::String m_ownerAccount;
564
565 Aws::String m_virtualInterfaceId;
566
567 Aws::String m_location;
568
569 Aws::String m_connectionId;
570
571 Aws::String m_virtualInterfaceType;
572
573 Aws::String m_virtualInterfaceName;
574
575 int m_vlan{0};
576
577 int m_asn{0};
578
579 long long m_asnLong{0};
580
581 long long m_amazonSideAsn{0};
582
583 Aws::String m_authKey;
584
585 Aws::String m_amazonAddress;
586
587 Aws::String m_customerAddress;
588
589 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
590
592
593 Aws::String m_customerRouterConfig;
594
595 int m_mtu{0};
596
597 bool m_jumboFrameCapable{false};
598
599 Aws::String m_virtualGatewayId;
600
601 Aws::String m_directConnectGatewayId;
602
603 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
604
605 Aws::Vector<BGPPeer> m_bgpPeers;
606
607 Aws::String m_region;
608
609 Aws::String m_awsDeviceV2;
610
611 Aws::String m_awsLogicalDeviceId;
612
613 Aws::Vector<Tag> m_tags;
614
615 bool m_siteLinkEnabled{false};
616
617 Aws::String m_requestId;
618 bool m_ownerAccountHasBeenSet = false;
619 bool m_virtualInterfaceIdHasBeenSet = false;
620 bool m_locationHasBeenSet = false;
621 bool m_connectionIdHasBeenSet = false;
622 bool m_virtualInterfaceTypeHasBeenSet = false;
623 bool m_virtualInterfaceNameHasBeenSet = false;
624 bool m_vlanHasBeenSet = false;
625 bool m_asnHasBeenSet = false;
626 bool m_asnLongHasBeenSet = false;
627 bool m_amazonSideAsnHasBeenSet = false;
628 bool m_authKeyHasBeenSet = false;
629 bool m_amazonAddressHasBeenSet = false;
630 bool m_customerAddressHasBeenSet = false;
631 bool m_addressFamilyHasBeenSet = false;
632 bool m_virtualInterfaceStateHasBeenSet = false;
633 bool m_customerRouterConfigHasBeenSet = false;
634 bool m_mtuHasBeenSet = false;
635 bool m_jumboFrameCapableHasBeenSet = false;
636 bool m_virtualGatewayIdHasBeenSet = false;
637 bool m_directConnectGatewayIdHasBeenSet = false;
638 bool m_routeFilterPrefixesHasBeenSet = false;
639 bool m_bgpPeersHasBeenSet = false;
640 bool m_regionHasBeenSet = false;
641 bool m_awsDeviceV2HasBeenSet = false;
642 bool m_awsLogicalDeviceIdHasBeenSet = false;
643 bool m_tagsHasBeenSet = false;
644 bool m_siteLinkEnabledHasBeenSet = false;
645 bool m_requestIdHasBeenSet = false;
646};
647
648} // namespace Model
649} // namespace DirectConnect
650} // namespace Aws
AllocatePrivateVirtualInterfaceResult & WithConnectionId(ConnectionIdT &&value)
AllocatePrivateVirtualInterfaceResult & WithVirtualGatewayId(VirtualGatewayIdT &&value)
AllocatePrivateVirtualInterfaceResult & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
AllocatePrivateVirtualInterfaceResult & AddBgpPeers(BgpPeersT &&value)
AllocatePrivateVirtualInterfaceResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
AllocatePrivateVirtualInterfaceResult & WithRequestId(RequestIdT &&value)
AllocatePrivateVirtualInterfaceResult & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AllocatePrivateVirtualInterfaceResult & WithLocation(LocationT &&value)
AWS_DIRECTCONNECT_API AllocatePrivateVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocatePrivateVirtualInterfaceResult & WithAmazonAddress(AmazonAddressT &&value)
AllocatePrivateVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AllocatePrivateVirtualInterfaceResult & WithVirtualInterfaceType(VirtualInterfaceTypeT &&value)
AllocatePrivateVirtualInterfaceResult & WithOwnerAccount(OwnerAccountT &&value)
AllocatePrivateVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState value)
AWS_DIRECTCONNECT_API AllocatePrivateVirtualInterfaceResult()=default
AllocatePrivateVirtualInterfaceResult & WithAddressFamily(AddressFamily value)
AllocatePrivateVirtualInterfaceResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AllocatePrivateVirtualInterfaceResult & WithAmazonSideAsn(long long value)
AllocatePrivateVirtualInterfaceResult & WithBgpPeers(BgpPeersT &&value)
AllocatePrivateVirtualInterfaceResult & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
AllocatePrivateVirtualInterfaceResult & WithCustomerAddress(CustomerAddressT &&value)
AllocatePrivateVirtualInterfaceResult & WithAuthKey(AuthKeyT &&value)
AllocatePrivateVirtualInterfaceResult & WithCustomerRouterConfig(CustomerRouterConfigT &&value)
AWS_DIRECTCONNECT_API AllocatePrivateVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AllocatePrivateVirtualInterfaceResult & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&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