AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateVirtualInterfaceResult.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 AssociateVirtualInterfaceResult();
44
45
47
51 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
52 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccount = value; }
53 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccount = std::move(value); }
54 inline void SetOwnerAccount(const char* value) { m_ownerAccount.assign(value); }
55 inline AssociateVirtualInterfaceResult& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
56 inline AssociateVirtualInterfaceResult& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
57 inline AssociateVirtualInterfaceResult& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
59
61
64 inline const Aws::String& GetVirtualInterfaceId() const{ return m_virtualInterfaceId; }
65 inline void SetVirtualInterfaceId(const Aws::String& value) { m_virtualInterfaceId = value; }
66 inline void SetVirtualInterfaceId(Aws::String&& value) { m_virtualInterfaceId = std::move(value); }
67 inline void SetVirtualInterfaceId(const char* value) { m_virtualInterfaceId.assign(value); }
70 inline AssociateVirtualInterfaceResult& WithVirtualInterfaceId(const char* value) { SetVirtualInterfaceId(value); return *this;}
72
74
77 inline const Aws::String& GetLocation() const{ return m_location; }
78 inline void SetLocation(const Aws::String& value) { m_location = value; }
79 inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
80 inline void SetLocation(const char* value) { m_location.assign(value); }
81 inline AssociateVirtualInterfaceResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
82 inline AssociateVirtualInterfaceResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
83 inline AssociateVirtualInterfaceResult& WithLocation(const char* value) { SetLocation(value); return *this;}
85
87
90 inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
91 inline void SetConnectionId(const Aws::String& value) { m_connectionId = value; }
92 inline void SetConnectionId(Aws::String&& value) { m_connectionId = std::move(value); }
93 inline void SetConnectionId(const char* value) { m_connectionId.assign(value); }
94 inline AssociateVirtualInterfaceResult& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
95 inline AssociateVirtualInterfaceResult& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
96 inline AssociateVirtualInterfaceResult& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
98
100
104 inline const Aws::String& GetVirtualInterfaceType() const{ return m_virtualInterfaceType; }
105 inline void SetVirtualInterfaceType(const Aws::String& value) { m_virtualInterfaceType = value; }
106 inline void SetVirtualInterfaceType(Aws::String&& value) { m_virtualInterfaceType = std::move(value); }
107 inline void SetVirtualInterfaceType(const char* value) { m_virtualInterfaceType.assign(value); }
110 inline AssociateVirtualInterfaceResult& WithVirtualInterfaceType(const char* value) { SetVirtualInterfaceType(value); return *this;}
112
114
119 inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
120 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceName = value; }
121 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceName = std::move(value); }
122 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceName.assign(value); }
125 inline AssociateVirtualInterfaceResult& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
127
129
132 inline int GetVlan() const{ return m_vlan; }
133 inline void SetVlan(int value) { m_vlan = value; }
134 inline AssociateVirtualInterfaceResult& WithVlan(int value) { SetVlan(value); return *this;}
136
138
142 inline int GetAsn() const{ return m_asn; }
143 inline void SetAsn(int value) { m_asn = value; }
144 inline AssociateVirtualInterfaceResult& WithAsn(int value) { SetAsn(value); return *this;}
146
148
151 inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
152 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsn = value; }
153 inline AssociateVirtualInterfaceResult& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
155
157
161 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
162 inline void SetAuthKey(const Aws::String& value) { m_authKey = value; }
163 inline void SetAuthKey(Aws::String&& value) { m_authKey = std::move(value); }
164 inline void SetAuthKey(const char* value) { m_authKey.assign(value); }
165 inline AssociateVirtualInterfaceResult& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
166 inline AssociateVirtualInterfaceResult& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
167 inline AssociateVirtualInterfaceResult& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
169
171
174 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
175 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddress = value; }
176 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddress = std::move(value); }
177 inline void SetAmazonAddress(const char* value) { m_amazonAddress.assign(value); }
179 inline AssociateVirtualInterfaceResult& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
180 inline AssociateVirtualInterfaceResult& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
182
184
187 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
188 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddress = value; }
189 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddress = std::move(value); }
190 inline void SetCustomerAddress(const char* value) { m_customerAddress.assign(value); }
192 inline AssociateVirtualInterfaceResult& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
193 inline AssociateVirtualInterfaceResult& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
195
197
200 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
201 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamily = value; }
202 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamily = std::move(value); }
204 inline AssociateVirtualInterfaceResult& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
206
208
232 inline const VirtualInterfaceState& GetVirtualInterfaceState() const{ return m_virtualInterfaceState; }
233 inline void SetVirtualInterfaceState(const VirtualInterfaceState& value) { m_virtualInterfaceState = value; }
234 inline void SetVirtualInterfaceState(VirtualInterfaceState&& value) { m_virtualInterfaceState = std::move(value); }
238
240
243 inline const Aws::String& GetCustomerRouterConfig() const{ return m_customerRouterConfig; }
244 inline void SetCustomerRouterConfig(const Aws::String& value) { m_customerRouterConfig = value; }
245 inline void SetCustomerRouterConfig(Aws::String&& value) { m_customerRouterConfig = std::move(value); }
246 inline void SetCustomerRouterConfig(const char* value) { m_customerRouterConfig.assign(value); }
249 inline AssociateVirtualInterfaceResult& WithCustomerRouterConfig(const char* value) { SetCustomerRouterConfig(value); return *this;}
251
253
257 inline int GetMtu() const{ return m_mtu; }
258 inline void SetMtu(int value) { m_mtu = value; }
259 inline AssociateVirtualInterfaceResult& WithMtu(int value) { SetMtu(value); return *this;}
261
263
266 inline bool GetJumboFrameCapable() const{ return m_jumboFrameCapable; }
267 inline void SetJumboFrameCapable(bool value) { m_jumboFrameCapable = value; }
270
272
276 inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; }
277 inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayId = value; }
278 inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayId = std::move(value); }
279 inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayId.assign(value); }
281 inline AssociateVirtualInterfaceResult& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;}
282 inline AssociateVirtualInterfaceResult& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;}
284
286
289 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
290 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayId = value; }
291 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayId = std::move(value); }
292 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayId.assign(value); }
297
299
303 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
304 inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixes = value; }
305 inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixes = std::move(value); }
308 inline AssociateVirtualInterfaceResult& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixes.push_back(value); return *this; }
309 inline AssociateVirtualInterfaceResult& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixes.push_back(std::move(value)); return *this; }
311
313
316 inline const Aws::Vector<BGPPeer>& GetBgpPeers() const{ return m_bgpPeers; }
317 inline void SetBgpPeers(const Aws::Vector<BGPPeer>& value) { m_bgpPeers = value; }
318 inline void SetBgpPeers(Aws::Vector<BGPPeer>&& value) { m_bgpPeers = std::move(value); }
320 inline AssociateVirtualInterfaceResult& WithBgpPeers(Aws::Vector<BGPPeer>&& value) { SetBgpPeers(std::move(value)); return *this;}
321 inline AssociateVirtualInterfaceResult& AddBgpPeers(const BGPPeer& value) { m_bgpPeers.push_back(value); return *this; }
322 inline AssociateVirtualInterfaceResult& AddBgpPeers(BGPPeer&& value) { m_bgpPeers.push_back(std::move(value)); return *this; }
324
326
329 inline const Aws::String& GetRegion() const{ return m_region; }
330 inline void SetRegion(const Aws::String& value) { m_region = value; }
331 inline void SetRegion(Aws::String&& value) { m_region = std::move(value); }
332 inline void SetRegion(const char* value) { m_region.assign(value); }
333 inline AssociateVirtualInterfaceResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
334 inline AssociateVirtualInterfaceResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
335 inline AssociateVirtualInterfaceResult& WithRegion(const char* value) { SetRegion(value); return *this;}
337
339
342 inline const Aws::String& GetAwsDeviceV2() const{ return m_awsDeviceV2; }
343 inline void SetAwsDeviceV2(const Aws::String& value) { m_awsDeviceV2 = value; }
344 inline void SetAwsDeviceV2(Aws::String&& value) { m_awsDeviceV2 = std::move(value); }
345 inline void SetAwsDeviceV2(const char* value) { m_awsDeviceV2.assign(value); }
346 inline AssociateVirtualInterfaceResult& WithAwsDeviceV2(const Aws::String& value) { SetAwsDeviceV2(value); return *this;}
347 inline AssociateVirtualInterfaceResult& WithAwsDeviceV2(Aws::String&& value) { SetAwsDeviceV2(std::move(value)); return *this;}
348 inline AssociateVirtualInterfaceResult& WithAwsDeviceV2(const char* value) { SetAwsDeviceV2(value); return *this;}
350
352
357 inline const Aws::String& GetAwsLogicalDeviceId() const{ return m_awsLogicalDeviceId; }
358 inline void SetAwsLogicalDeviceId(const Aws::String& value) { m_awsLogicalDeviceId = value; }
359 inline void SetAwsLogicalDeviceId(Aws::String&& value) { m_awsLogicalDeviceId = std::move(value); }
360 inline void SetAwsLogicalDeviceId(const char* value) { m_awsLogicalDeviceId.assign(value); }
363 inline AssociateVirtualInterfaceResult& WithAwsLogicalDeviceId(const char* value) { SetAwsLogicalDeviceId(value); return *this;}
365
367
370 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
371 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
372 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
373 inline AssociateVirtualInterfaceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
374 inline AssociateVirtualInterfaceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
375 inline AssociateVirtualInterfaceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
376 inline AssociateVirtualInterfaceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
378
380
383 inline bool GetSiteLinkEnabled() const{ return m_siteLinkEnabled; }
384 inline void SetSiteLinkEnabled(bool value) { m_siteLinkEnabled = value; }
385 inline AssociateVirtualInterfaceResult& WithSiteLinkEnabled(bool value) { SetSiteLinkEnabled(value); return *this;}
387
389
390 inline const Aws::String& GetRequestId() const{ return m_requestId; }
391 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
392 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
393 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
394 inline AssociateVirtualInterfaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
395 inline AssociateVirtualInterfaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
396 inline AssociateVirtualInterfaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
398 private:
399
400 Aws::String m_ownerAccount;
401
402 Aws::String m_virtualInterfaceId;
403
404 Aws::String m_location;
405
406 Aws::String m_connectionId;
407
408 Aws::String m_virtualInterfaceType;
409
410 Aws::String m_virtualInterfaceName;
411
412 int m_vlan;
413
414 int m_asn;
415
416 long long m_amazonSideAsn;
417
418 Aws::String m_authKey;
419
420 Aws::String m_amazonAddress;
421
422 Aws::String m_customerAddress;
423
424 AddressFamily m_addressFamily;
425
426 VirtualInterfaceState m_virtualInterfaceState;
427
428 Aws::String m_customerRouterConfig;
429
430 int m_mtu;
431
432 bool m_jumboFrameCapable;
433
434 Aws::String m_virtualGatewayId;
435
436 Aws::String m_directConnectGatewayId;
437
438 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
439
440 Aws::Vector<BGPPeer> m_bgpPeers;
441
442 Aws::String m_region;
443
444 Aws::String m_awsDeviceV2;
445
446 Aws::String m_awsLogicalDeviceId;
447
448 Aws::Vector<Tag> m_tags;
449
450 bool m_siteLinkEnabled;
451
452 Aws::String m_requestId;
453 };
454
455} // namespace Model
456} // namespace DirectConnect
457} // namespace Aws
AssociateVirtualInterfaceResult & WithVirtualInterfaceId(const char *value)
AssociateVirtualInterfaceResult & WithLocation(const char *value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceState(VirtualInterfaceState &&value)
AWS_DIRECTCONNECT_API AssociateVirtualInterfaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateVirtualInterfaceResult & WithOwnerAccount(const Aws::String &value)
AssociateVirtualInterfaceResult & WithAuthKey(const char *value)
AssociateVirtualInterfaceResult & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
AssociateVirtualInterfaceResult & WithLocation(const Aws::String &value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceType(Aws::String &&value)
AssociateVirtualInterfaceResult & WithAmazonAddress(const Aws::String &value)
AssociateVirtualInterfaceResult & AddBgpPeers(const BGPPeer &value)
AssociateVirtualInterfaceResult & WithCustomerAddress(const Aws::String &value)
AssociateVirtualInterfaceResult & WithCustomerRouterConfig(const Aws::String &value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceId(Aws::String &&value)
AssociateVirtualInterfaceResult & WithRegion(const Aws::String &value)
AssociateVirtualInterfaceResult & WithAmazonAddress(Aws::String &&value)
AssociateVirtualInterfaceResult & WithAwsDeviceV2(Aws::String &&value)
AssociateVirtualInterfaceResult & WithDirectConnectGatewayId(Aws::String &&value)
AssociateVirtualInterfaceResult & WithVirtualGatewayId(const char *value)
AssociateVirtualInterfaceResult & WithBgpPeers(Aws::Vector< BGPPeer > &&value)
AssociateVirtualInterfaceResult & WithDirectConnectGatewayId(const char *value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceName(const Aws::String &value)
AssociateVirtualInterfaceResult & WithBgpPeers(const Aws::Vector< BGPPeer > &value)
AssociateVirtualInterfaceResult & WithTags(const Aws::Vector< Tag > &value)
AssociateVirtualInterfaceResult & WithCustomerAddress(const char *value)
AssociateVirtualInterfaceResult & WithRequestId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithConnectionId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceType(const char *value)
AssociateVirtualInterfaceResult & WithAddressFamily(const AddressFamily &value)
AssociateVirtualInterfaceResult & WithAmazonAddress(const char *value)
AssociateVirtualInterfaceResult & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
AssociateVirtualInterfaceResult & WithDirectConnectGatewayId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithAddressFamily(AddressFamily &&value)
AssociateVirtualInterfaceResult & WithTags(Aws::Vector< Tag > &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceType(const Aws::String &value)
AssociateVirtualInterfaceResult & WithAwsLogicalDeviceId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceState(const VirtualInterfaceState &value)
AWS_DIRECTCONNECT_API AssociateVirtualInterfaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateVirtualInterfaceResult & WithVirtualGatewayId(Aws::String &&value)
AssociateVirtualInterfaceResult & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
AssociateVirtualInterfaceResult & WithConnectionId(const char *value)
AssociateVirtualInterfaceResult & WithConnectionId(Aws::String &&value)
AssociateVirtualInterfaceResult & WithOwnerAccount(Aws::String &&value)
AssociateVirtualInterfaceResult & WithVirtualGatewayId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithAwsLogicalDeviceId(const char *value)
AssociateVirtualInterfaceResult & WithAwsDeviceV2(const Aws::String &value)
AssociateVirtualInterfaceResult & WithLocation(Aws::String &&value)
AssociateVirtualInterfaceResult & WithAwsDeviceV2(const char *value)
AssociateVirtualInterfaceResult & WithAuthKey(Aws::String &&value)
AssociateVirtualInterfaceResult & WithAuthKey(const Aws::String &value)
AssociateVirtualInterfaceResult & WithCustomerAddress(Aws::String &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceId(const Aws::String &value)
AssociateVirtualInterfaceResult & WithRequestId(const char *value)
AssociateVirtualInterfaceResult & WithCustomerRouterConfig(Aws::String &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceName(const char *value)
AssociateVirtualInterfaceResult & WithRegion(const char *value)
AssociateVirtualInterfaceResult & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
AssociateVirtualInterfaceResult & WithAwsLogicalDeviceId(Aws::String &&value)
AssociateVirtualInterfaceResult & AddTags(const Tag &value)
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
AssociateVirtualInterfaceResult & WithRequestId(Aws::String &&value)
AssociateVirtualInterfaceResult & AddBgpPeers(BGPPeer &&value)
AssociateVirtualInterfaceResult & WithAmazonSideAsn(long long value)
AssociateVirtualInterfaceResult & WithOwnerAccount(const char *value)
AssociateVirtualInterfaceResult & WithRegion(Aws::String &&value)
AssociateVirtualInterfaceResult & WithVirtualInterfaceName(Aws::String &&value)
void SetRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
AssociateVirtualInterfaceResult & WithCustomerRouterConfig(const char *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