AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePublicVirtualInterfaceResult.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 CreatePublicVirtualInterfaceResult() = 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& 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 CreatePublicVirtualInterfaceResult& WithVlan(int value) { SetVlan(value); return *this;}
124
126
130 inline int GetAsn() const { return m_asn; }
131 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
132 inline CreatePublicVirtualInterfaceResult& WithAsn(int value) { SetAsn(value); return *this;}
134
136
139 inline long long GetAmazonSideAsn() const { return m_amazonSideAsn; }
140 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
141 inline CreatePublicVirtualInterfaceResult& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
143
145
149 inline const Aws::String& GetAuthKey() const { return m_authKey; }
150 template<typename AuthKeyT = Aws::String>
151 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
152 template<typename AuthKeyT = Aws::String>
153 CreatePublicVirtualInterfaceResult& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
155
157
160 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
161 template<typename AmazonAddressT = Aws::String>
162 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
163 template<typename AmazonAddressT = Aws::String>
164 CreatePublicVirtualInterfaceResult& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
166
168
171 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
172 template<typename CustomerAddressT = Aws::String>
173 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
174 template<typename CustomerAddressT = Aws::String>
175 CreatePublicVirtualInterfaceResult& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
177
179
182 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
183 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
186
188
214 inline VirtualInterfaceState GetVirtualInterfaceState() const { return m_virtualInterfaceState; }
215 inline void SetVirtualInterfaceState(VirtualInterfaceState value) { m_virtualInterfaceStateHasBeenSet = true; m_virtualInterfaceState = value; }
218
220
223 inline const Aws::String& GetCustomerRouterConfig() const { return m_customerRouterConfig; }
224 template<typename CustomerRouterConfigT = Aws::String>
225 void SetCustomerRouterConfig(CustomerRouterConfigT&& value) { m_customerRouterConfigHasBeenSet = true; m_customerRouterConfig = std::forward<CustomerRouterConfigT>(value); }
226 template<typename CustomerRouterConfigT = Aws::String>
227 CreatePublicVirtualInterfaceResult& WithCustomerRouterConfig(CustomerRouterConfigT&& value) { SetCustomerRouterConfig(std::forward<CustomerRouterConfigT>(value)); return *this;}
229
231
235 inline int GetMtu() const { return m_mtu; }
236 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
237 inline CreatePublicVirtualInterfaceResult& WithMtu(int value) { SetMtu(value); return *this;}
239
241
244 inline bool GetJumboFrameCapable() const { return m_jumboFrameCapable; }
245 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapableHasBeenSet = true; m_jumboFrameCapable = value; }
248
250
254 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
255 template<typename VirtualGatewayIdT = Aws::String>
256 void SetVirtualGatewayId(VirtualGatewayIdT&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value); }
257 template<typename VirtualGatewayIdT = Aws::String>
258 CreatePublicVirtualInterfaceResult& WithVirtualGatewayId(VirtualGatewayIdT&& value) { SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value)); return *this;}
260
262
265 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
266 template<typename DirectConnectGatewayIdT = Aws::String>
267 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value); }
268 template<typename DirectConnectGatewayIdT = Aws::String>
269 CreatePublicVirtualInterfaceResult& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value)); return *this;}
271
273
277 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
278 template<typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
279 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value); }
280 template<typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
281 CreatePublicVirtualInterfaceResult& WithRouteFilterPrefixes(RouteFilterPrefixesT&& value) { SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value)); return *this;}
282 template<typename RouteFilterPrefixesT = RouteFilterPrefix>
283 CreatePublicVirtualInterfaceResult& AddRouteFilterPrefixes(RouteFilterPrefixesT&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value)); return *this; }
285
287
290 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const { return m_bgpPeers; }
291 template<typename BgpPeersT = Aws::Vector<BGPPeer>>
292 void SetBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = std::forward<BgpPeersT>(value); }
293 template<typename BgpPeersT = Aws::Vector<BGPPeer>>
294 CreatePublicVirtualInterfaceResult& WithBgpPeers(BgpPeersT&& value) { SetBgpPeers(std::forward<BgpPeersT>(value)); return *this;}
295 template<typename BgpPeersT = BGPPeer>
296 CreatePublicVirtualInterfaceResult& AddBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value)); return *this; }
298
300
303 inline const Aws::String& GetRegion() const { return m_region; }
304 template<typename RegionT = Aws::String>
305 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
306 template<typename RegionT = Aws::String>
307 CreatePublicVirtualInterfaceResult& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
309
311
314 inline const Aws::String& GetAwsDeviceV2() const { return m_awsDeviceV2; }
315 template<typename AwsDeviceV2T = Aws::String>
316 void SetAwsDeviceV2(AwsDeviceV2T&& value) { m_awsDeviceV2HasBeenSet = true; m_awsDeviceV2 = std::forward<AwsDeviceV2T>(value); }
317 template<typename AwsDeviceV2T = Aws::String>
318 CreatePublicVirtualInterfaceResult& WithAwsDeviceV2(AwsDeviceV2T&& value) { SetAwsDeviceV2(std::forward<AwsDeviceV2T>(value)); return *this;}
320
322
327 inline const Aws::String& GetAwsLogicalDeviceId() const { return m_awsLogicalDeviceId; }
328 template<typename AwsLogicalDeviceIdT = Aws::String>
329 void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { m_awsLogicalDeviceIdHasBeenSet = true; m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value); }
330 template<typename AwsLogicalDeviceIdT = Aws::String>
331 CreatePublicVirtualInterfaceResult& WithAwsLogicalDeviceId(AwsLogicalDeviceIdT&& value) { SetAwsLogicalDeviceId(std::forward<AwsLogicalDeviceIdT>(value)); return *this;}
333
335
338 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
339 template<typename TagsT = Aws::Vector<Tag>>
340 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
341 template<typename TagsT = Aws::Vector<Tag>>
342 CreatePublicVirtualInterfaceResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
343 template<typename TagsT = Tag>
344 CreatePublicVirtualInterfaceResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
346
348
351 inline bool GetSiteLinkEnabled() const { return m_siteLinkEnabled; }
352 inline void SetSiteLinkEnabled(bool value) { m_siteLinkEnabledHasBeenSet = true; m_siteLinkEnabled = value; }
355
357
358 inline const Aws::String& GetRequestId() const { return m_requestId; }
359 template<typename RequestIdT = Aws::String>
360 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
361 template<typename RequestIdT = Aws::String>
362 CreatePublicVirtualInterfaceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
364 private:
365
366 Aws::String m_ownerAccount;
367 bool m_ownerAccountHasBeenSet = false;
368
369 Aws::String m_virtualInterfaceId;
370 bool m_virtualInterfaceIdHasBeenSet = false;
371
372 Aws::String m_location;
373 bool m_locationHasBeenSet = false;
374
375 Aws::String m_connectionId;
376 bool m_connectionIdHasBeenSet = false;
377
378 Aws::String m_virtualInterfaceType;
379 bool m_virtualInterfaceTypeHasBeenSet = false;
380
381 Aws::String m_virtualInterfaceName;
382 bool m_virtualInterfaceNameHasBeenSet = false;
383
384 int m_vlan{0};
385 bool m_vlanHasBeenSet = false;
386
387 int m_asn{0};
388 bool m_asnHasBeenSet = false;
389
390 long long m_amazonSideAsn{0};
391 bool m_amazonSideAsnHasBeenSet = false;
392
393 Aws::String m_authKey;
394 bool m_authKeyHasBeenSet = false;
395
396 Aws::String m_amazonAddress;
397 bool m_amazonAddressHasBeenSet = false;
398
399 Aws::String m_customerAddress;
400 bool m_customerAddressHasBeenSet = false;
401
402 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
403 bool m_addressFamilyHasBeenSet = false;
404
406 bool m_virtualInterfaceStateHasBeenSet = false;
407
408 Aws::String m_customerRouterConfig;
409 bool m_customerRouterConfigHasBeenSet = false;
410
411 int m_mtu{0};
412 bool m_mtuHasBeenSet = false;
413
414 bool m_jumboFrameCapable{false};
415 bool m_jumboFrameCapableHasBeenSet = false;
416
417 Aws::String m_virtualGatewayId;
418 bool m_virtualGatewayIdHasBeenSet = false;
419
420 Aws::String m_directConnectGatewayId;
421 bool m_directConnectGatewayIdHasBeenSet = false;
422
423 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
424 bool m_routeFilterPrefixesHasBeenSet = false;
425
426 Aws::Vector<BGPPeer> m_bgpPeers;
427 bool m_bgpPeersHasBeenSet = false;
428
429 Aws::String m_region;
430 bool m_regionHasBeenSet = false;
431
432 Aws::String m_awsDeviceV2;
433 bool m_awsDeviceV2HasBeenSet = false;
434
435 Aws::String m_awsLogicalDeviceId;
436 bool m_awsLogicalDeviceIdHasBeenSet = false;
437
438 Aws::Vector<Tag> m_tags;
439 bool m_tagsHasBeenSet = false;
440
441 bool m_siteLinkEnabled{false};
442 bool m_siteLinkEnabledHasBeenSet = false;
443
444 Aws::String m_requestId;
445 bool m_requestIdHasBeenSet = false;
446 };
447
448} // namespace Model
449} // namespace DirectConnect
450} // namespace Aws
CreatePublicVirtualInterfaceResult & WithAwsDeviceV2(AwsDeviceV2T &&value)
CreatePublicVirtualInterfaceResult & WithCustomerAddress(CustomerAddressT &&value)
CreatePublicVirtualInterfaceResult & WithConnectionId(ConnectionIdT &&value)
CreatePublicVirtualInterfaceResult & WithOwnerAccount(OwnerAccountT &&value)
CreatePublicVirtualInterfaceResult & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
CreatePublicVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState value)
CreatePublicVirtualInterfaceResult & WithCustomerRouterConfig(CustomerRouterConfigT &&value)
AWS_DIRECTCONNECT_API CreatePublicVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePublicVirtualInterfaceResult & WithVirtualInterfaceType(VirtualInterfaceTypeT &&value)
CreatePublicVirtualInterfaceResult & WithRequestId(RequestIdT &&value)
CreatePublicVirtualInterfaceResult & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
CreatePublicVirtualInterfaceResult & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
AWS_DIRECTCONNECT_API CreatePublicVirtualInterfaceResult()=default
CreatePublicVirtualInterfaceResult & WithLocation(LocationT &&value)
CreatePublicVirtualInterfaceResult & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
CreatePublicVirtualInterfaceResult & WithAddressFamily(AddressFamily value)
CreatePublicVirtualInterfaceResult & WithAuthKey(AuthKeyT &&value)
CreatePublicVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
CreatePublicVirtualInterfaceResult & WithVirtualGatewayId(VirtualGatewayIdT &&value)
CreatePublicVirtualInterfaceResult & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
AWS_DIRECTCONNECT_API CreatePublicVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePublicVirtualInterfaceResult & WithAmazonAddress(AmazonAddressT &&value)
CreatePublicVirtualInterfaceResult & AddBgpPeers(BgpPeersT &&value)
CreatePublicVirtualInterfaceResult & WithAmazonSideAsn(long long value)
CreatePublicVirtualInterfaceResult & WithBgpPeers(BgpPeersT &&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