AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocalGatewayVirtualInterfaceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLocalGatewayVirtualInterface"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
46 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
47 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
48 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value); }
49 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
50 CreateLocalGatewayVirtualInterfaceRequest& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
59 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
60 template<typename OutpostLagIdT = Aws::String>
61 void SetOutpostLagId(OutpostLagIdT&& value) { m_outpostLagIdHasBeenSet = true; m_outpostLagId = std::forward<OutpostLagIdT>(value); }
62 template<typename OutpostLagIdT = Aws::String>
63 CreateLocalGatewayVirtualInterfaceRequest& WithOutpostLagId(OutpostLagIdT&& value) { SetOutpostLagId(std::forward<OutpostLagIdT>(value)); return *this;}
65
67
71 inline int GetVlan() const { return m_vlan; }
72 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
73 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
74 inline CreateLocalGatewayVirtualInterfaceRequest& WithVlan(int value) { SetVlan(value); return *this;}
76
78
82 inline const Aws::String& GetLocalAddress() const { return m_localAddress; }
83 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
84 template<typename LocalAddressT = Aws::String>
85 void SetLocalAddress(LocalAddressT&& value) { m_localAddressHasBeenSet = true; m_localAddress = std::forward<LocalAddressT>(value); }
86 template<typename LocalAddressT = Aws::String>
87 CreateLocalGatewayVirtualInterfaceRequest& WithLocalAddress(LocalAddressT&& value) { SetLocalAddress(std::forward<LocalAddressT>(value)); return *this;}
89
91
95 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
96 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
97 template<typename PeerAddressT = Aws::String>
98 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
99 template<typename PeerAddressT = Aws::String>
100 CreateLocalGatewayVirtualInterfaceRequest& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
102
104
108 inline int GetPeerBgpAsn() const { return m_peerBgpAsn; }
109 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
110 inline void SetPeerBgpAsn(int value) { m_peerBgpAsnHasBeenSet = true; m_peerBgpAsn = value; }
113
115
119 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
120 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
121 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
122 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
123 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
124 CreateLocalGatewayVirtualInterfaceRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
125 template<typename TagSpecificationsT = TagSpecification>
126 CreateLocalGatewayVirtualInterfaceRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
128
130
136 inline bool GetDryRun() const { return m_dryRun; }
137 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
139 inline CreateLocalGatewayVirtualInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
141
143
146 inline long long GetPeerBgpAsnExtended() const { return m_peerBgpAsnExtended; }
147 inline bool PeerBgpAsnExtendedHasBeenSet() const { return m_peerBgpAsnExtendedHasBeenSet; }
148 inline void SetPeerBgpAsnExtended(long long value) { m_peerBgpAsnExtendedHasBeenSet = true; m_peerBgpAsnExtended = value; }
151 private:
152
153 Aws::String m_localGatewayVirtualInterfaceGroupId;
154 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
155
156 Aws::String m_outpostLagId;
157 bool m_outpostLagIdHasBeenSet = false;
158
159 int m_vlan{0};
160 bool m_vlanHasBeenSet = false;
161
162 Aws::String m_localAddress;
163 bool m_localAddressHasBeenSet = false;
164
165 Aws::String m_peerAddress;
166 bool m_peerAddressHasBeenSet = false;
167
168 int m_peerBgpAsn{0};
169 bool m_peerBgpAsnHasBeenSet = false;
170
171 Aws::Vector<TagSpecification> m_tagSpecifications;
172 bool m_tagSpecificationsHasBeenSet = false;
173
174 bool m_dryRun{false};
175 bool m_dryRunHasBeenSet = false;
176
177 long long m_peerBgpAsnExtended{0};
178 bool m_peerBgpAsnExtendedHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace EC2
183} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLocalGatewayVirtualInterfaceRequest & WithPeerBgpAsnExtended(long long value)
CreateLocalGatewayVirtualInterfaceRequest & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
CreateLocalGatewayVirtualInterfaceRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
CreateLocalGatewayVirtualInterfaceRequest & WithOutpostLagId(OutpostLagIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateLocalGatewayVirtualInterfaceRequest & WithPeerAddress(PeerAddressT &&value)
CreateLocalGatewayVirtualInterfaceRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateLocalGatewayVirtualInterfaceRequest & WithLocalAddress(LocalAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector