AWS SDK for C++

AWS SDK for C++ Version 1.11.641

Loading...
Searching...
No Matches
AllocatePublicVirtualInterfaceResult.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/AddressFamily.h>
10#include <aws/directconnect/model/VirtualInterfaceState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/directconnect/model/RouteFilterPrefix.h>
13#include <aws/directconnect/model/BGPPeer.h>
14#include <aws/directconnect/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DirectConnect
30{
31namespace Model
32{
39 {
40 public:
41 AWS_DIRECTCONNECT_API AllocatePublicVirtualInterfaceResult() = default;
44
45
47
51 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
52 template<typename OwnerAccountT = Aws::String>
53 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
54 template<typename OwnerAccountT = Aws::String>
55 AllocatePublicVirtualInterfaceResult& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
57
59
62 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
63 template<typename VirtualInterfaceIdT = Aws::String>
64 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value); }
65 template<typename VirtualInterfaceIdT = Aws::String>
66 AllocatePublicVirtualInterfaceResult& WithVirtualInterfaceId(VirtualInterfaceIdT&& value) { SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetLocation() const { return m_location; }
74 template<typename LocationT = Aws::String>
75 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
76 template<typename LocationT = Aws::String>
77 AllocatePublicVirtualInterfaceResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
79
81
84 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
85 template<typename ConnectionIdT = Aws::String>
86 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
87 template<typename ConnectionIdT = Aws::String>
88 AllocatePublicVirtualInterfaceResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
90
92
96 inline const Aws::String& GetVirtualInterfaceType() const { return m_virtualInterfaceType; }
97 template<typename VirtualInterfaceTypeT = Aws::String>
98 void SetVirtualInterfaceType(VirtualInterfaceTypeT&& value) { m_virtualInterfaceTypeHasBeenSet = true; m_virtualInterfaceType = std::forward<VirtualInterfaceTypeT>(value); }
99 template<typename VirtualInterfaceTypeT = Aws::String>
100 AllocatePublicVirtualInterfaceResult& WithVirtualInterfaceType(VirtualInterfaceTypeT&& value) { SetVirtualInterfaceType(std::forward<VirtualInterfaceTypeT>(value)); return *this;}
102
104
109 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
110 template<typename VirtualInterfaceNameT = Aws::String>
111 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value); }
112 template<typename VirtualInterfaceNameT = Aws::String>
113 AllocatePublicVirtualInterfaceResult& WithVirtualInterfaceName(VirtualInterfaceNameT&& value) { SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value)); return *this;}
115
117
120 inline int GetVlan() const { return m_vlan; }
121 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
122 inline AllocatePublicVirtualInterfaceResult& WithVlan(int value) { SetVlan(value); return *this;}
124
126
137 inline int GetAsn() const { return m_asn; }
138 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
139 inline AllocatePublicVirtualInterfaceResult& WithAsn(int value) { SetAsn(value); return *this;}
141
143
153 inline long long GetAsnLong() const { return m_asnLong; }
154 inline void SetAsnLong(long long value) { m_asnLongHasBeenSet = true; m_asnLong = value; }
155 inline AllocatePublicVirtualInterfaceResult& WithAsnLong(long long value) { SetAsnLong(value); return *this;}
157
159
162 inline long long GetAmazonSideAsn() const { return m_amazonSideAsn; }
163 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
164 inline AllocatePublicVirtualInterfaceResult& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
166
168
172 inline const Aws::String& GetAuthKey() const { return m_authKey; }
173 template<typename AuthKeyT = Aws::String>
174 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
175 template<typename AuthKeyT = Aws::String>
176 AllocatePublicVirtualInterfaceResult& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
178
180
183 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
184 template<typename AmazonAddressT = Aws::String>
185 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
186 template<typename AmazonAddressT = Aws::String>
187 AllocatePublicVirtualInterfaceResult& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
189
191
194 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
195 template<typename CustomerAddressT = Aws::String>
196 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
197 template<typename CustomerAddressT = Aws::String>
198 AllocatePublicVirtualInterfaceResult& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
200
202
205 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
206 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
209
211
237 inline VirtualInterfaceState GetVirtualInterfaceState() const { return m_virtualInterfaceState; }
238 inline void SetVirtualInterfaceState(VirtualInterfaceState value) { m_virtualInterfaceStateHasBeenSet = true; m_virtualInterfaceState = value; }
241
243
246 inline const Aws::String& GetCustomerRouterConfig() const { return m_customerRouterConfig; }
247 template<typename CustomerRouterConfigT = Aws::String>
248 void SetCustomerRouterConfig(CustomerRouterConfigT&& value) { m_customerRouterConfigHasBeenSet = true; m_customerRouterConfig = std::forward<CustomerRouterConfigT>(value); }
249 template<typename CustomerRouterConfigT = Aws::String>
250 AllocatePublicVirtualInterfaceResult& WithCustomerRouterConfig(CustomerRouterConfigT&& value) { SetCustomerRouterConfig(std::forward<CustomerRouterConfigT>(value)); return *this;}
252
254
258 inline int GetMtu() const { return m_mtu; }
259 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
260 inline AllocatePublicVirtualInterfaceResult& WithMtu(int value) { SetMtu(value); return *this;}
262
264
267 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
268 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; }
271
273
277 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
278 template<typename VirtualGatewayIdT = Aws::String>
279 void SetVirtualGatewayId(VirtualGatewayIdT&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value); }
280 template<typename VirtualGatewayIdT = Aws::String>
281 AllocatePublicVirtualInterfaceResult& WithVirtualGatewayId(VirtualGatewayIdT&& value) { SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value)); return *this;}
283
285
288 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
289 template<typename DirectConnectGatewayIdT = Aws::String>
290 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value); }
291 template<typename DirectConnectGatewayIdT = Aws::String>
292 AllocatePublicVirtualInterfaceResult& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value)); return *this;}
294
296
300 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
301 template<typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
302 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value); }
303 template<typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
304 AllocatePublicVirtualInterfaceResult& WithRouteFilterPrefixes(RouteFilterPrefixesT&& value) { SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value)); return *this;}
305 template<typename RouteFilterPrefixesT = RouteFilterPrefix>
306 AllocatePublicVirtualInterfaceResult& AddRouteFilterPrefixes(RouteFilterPrefixesT&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value)); return *this; }
308
310
313 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const { return m_bgpPeers; }
314 template<typename BgpPeersT = Aws::Vector<BGPPeer>>
315 void SetBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = std::forward<BgpPeersT>(value); }
316 template<typename BgpPeersT = Aws::Vector<BGPPeer>>
317 AllocatePublicVirtualInterfaceResult& WithBgpPeers(BgpPeersT&& value) { SetBgpPeers(std::forward<BgpPeersT>(value)); return *this;}
318 template<typename BgpPeersT = BGPPeer>
319 AllocatePublicVirtualInterfaceResult& AddBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value)); return *this; }
321
323
326 inline const Aws::String& GetRegion() const { return m_region; }
327 template<typename RegionT = Aws::String>
328 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
329 template<typename RegionT = Aws::String>
330 AllocatePublicVirtualInterfaceResult& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
332
334
337 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
338 template<typename AwsDeviceV2T = Aws::String>
339 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
340 template<typename AwsDeviceV2T = Aws::String>
341 AllocatePublicVirtualInterfaceResult& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
343
345
350 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
351 template<typename AwsLogicalDeviceIdT = Aws::String>
352 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
353 template<typename AwsLogicalDeviceIdT = Aws::String>
354 AllocatePublicVirtualInterfaceResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
356
358
361 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
362 template<typename TagsT = Aws::Vector<Tag>>
363 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
364 template<typename TagsT = Aws::Vector<Tag>>
365 AllocatePublicVirtualInterfaceResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
366 template<typename TagsT = Tag>
367 AllocatePublicVirtualInterfaceResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
369
371
374 inline bool GetSiteLinkEnabled() const { return m_siteLinkEnabled; }
375 inline void SetSiteLinkEnabled(bool value) { m_siteLinkEnabledHasBeenSet = true; m_siteLinkEnabled = value; }
378
380
381 inline const Aws::String& GetRequestId() const { return m_requestId; }
382 template<typename RequestIdT = Aws::String>
383 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
384 template<typename RequestIdT = Aws::String>
385 AllocatePublicVirtualInterfaceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
387 private:
388
389 Aws::String m_ownerAccount;
390 bool m_ownerAccountHasBeenSet = false;
391
392 Aws::String m_virtualInterfaceId;
393 bool m_virtualInterfaceIdHasBeenSet = false;
394
395 Aws::String m_location;
396 bool m_locationHasBeenSet = false;
397
398 Aws::String m_connectionId;
399 bool m_connectionIdHasBeenSet = false;
400
401 Aws::String m_virtualInterfaceType;
402 bool m_virtualInterfaceTypeHasBeenSet = false;
403
404 Aws::String m_virtualInterfaceName;
405 bool m_virtualInterfaceNameHasBeenSet = false;
406
407 int m_vlan{0};
408 bool m_vlanHasBeenSet = false;
409
410 int m_asn{0};
411 bool m_asnHasBeenSet = false;
412
413 long long m_asnLong{0};
414 bool m_asnLongHasBeenSet = false;
415
416 long long m_amazonSideAsn{0};
417 bool m_amazonSideAsnHasBeenSet = false;
418
419 Aws::String m_authKey;
420 bool m_authKeyHasBeenSet = false;
421
422 Aws::String m_amazonAddress;
423 bool m_amazonAddressHasBeenSet = false;
424
425 Aws::String m_customerAddress;
426 bool m_customerAddressHasBeenSet = false;
427
428 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
429 bool m_addressFamilyHasBeenSet = false;
430
432 bool m_virtualInterfaceStateHasBeenSet = false;
433
434 Aws::String m_customerRouterConfig;
435 bool m_customerRouterConfigHasBeenSet = false;
436
437 int m_mtu{0};
438 bool m_mtuHasBeenSet = false;
439
440 bool m_jumboFrameCapable{false};
441 bool m_jumboFrameCapableHasBeenSet = false;
442
443 Aws::String m_virtualGatewayId;
444 bool m_virtualGatewayIdHasBeenSet = false;
445
446 Aws::String m_directConnectGatewayId;
447 bool m_directConnectGatewayIdHasBeenSet = false;
448
449 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
450 bool m_routeFilterPrefixesHasBeenSet = false;
451
452 Aws::Vector<BGPPeer> m_bgpPeers;
453 bool m_bgpPeersHasBeenSet = false;
454
455 Aws::String m_region;
456 bool m_regionHasBeenSet = false;
457
458 Aws::String m_awsDeviceV2;
459 bool m_awsDeviceV2HasBeenSet = false;
460
461 Aws::String m_awsLogicalDeviceId;
462 bool m_awsLogicalDeviceIdHasBeenSet = false;
463
464 Aws::Vector<Tag> m_tags;
465 bool m_tagsHasBeenSet = false;
466
467 bool m_siteLinkEnabled{false};
468 bool m_siteLinkEnabledHasBeenSet = false;
469
470 Aws::String m_requestId;
471 bool m_requestIdHasBeenSet = false;
472 };
473
474} // namespace Model
475} // namespace DirectConnect
476} // 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 & 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