AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LocalGatewayVirtualInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LocalGatewayVirtualInterfaceConfigurationState.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API LocalGatewayVirtualInterface() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetLocalGatewayVirtualInterfaceId() const { return m_localGatewayVirtualInterfaceId; }
44 inline bool LocalGatewayVirtualInterfaceIdHasBeenSet() const { return m_localGatewayVirtualInterfaceIdHasBeenSet; }
45 template <typename LocalGatewayVirtualInterfaceIdT = Aws::String>
46 void SetLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT&& value) {
47 m_localGatewayVirtualInterfaceIdHasBeenSet = true;
48 m_localGatewayVirtualInterfaceId = std::forward<LocalGatewayVirtualInterfaceIdT>(value);
49 }
50 template <typename LocalGatewayVirtualInterfaceIdT = Aws::String>
51 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT&& value) {
52 SetLocalGatewayVirtualInterfaceId(std::forward<LocalGatewayVirtualInterfaceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetLocalGatewayId() const { return m_localGatewayId; }
62 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
63 template <typename LocalGatewayIdT = Aws::String>
64 void SetLocalGatewayId(LocalGatewayIdT&& value) {
65 m_localGatewayIdHasBeenSet = true;
66 m_localGatewayId = std::forward<LocalGatewayIdT>(value);
67 }
68 template <typename LocalGatewayIdT = Aws::String>
70 SetLocalGatewayId(std::forward<LocalGatewayIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
80 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
81 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
82 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
83 m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true;
84 m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value);
85 }
86 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
87 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
88 SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLocalGatewayVirtualInterfaceArn() const { return m_localGatewayVirtualInterfaceArn; }
98 inline bool LocalGatewayVirtualInterfaceArnHasBeenSet() const { return m_localGatewayVirtualInterfaceArnHasBeenSet; }
99 template <typename LocalGatewayVirtualInterfaceArnT = Aws::String>
100 void SetLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT&& value) {
101 m_localGatewayVirtualInterfaceArnHasBeenSet = true;
102 m_localGatewayVirtualInterfaceArn = std::forward<LocalGatewayVirtualInterfaceArnT>(value);
103 }
104 template <typename LocalGatewayVirtualInterfaceArnT = Aws::String>
105 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT&& value) {
106 SetLocalGatewayVirtualInterfaceArn(std::forward<LocalGatewayVirtualInterfaceArnT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
116 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
117 template <typename OutpostLagIdT = Aws::String>
118 void SetOutpostLagId(OutpostLagIdT&& value) {
119 m_outpostLagIdHasBeenSet = true;
120 m_outpostLagId = std::forward<OutpostLagIdT>(value);
121 }
122 template <typename OutpostLagIdT = Aws::String>
124 SetOutpostLagId(std::forward<OutpostLagIdT>(value));
125 return *this;
126 }
128
130
133 inline int GetVlan() const { return m_vlan; }
134 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
135 inline void SetVlan(int value) {
136 m_vlanHasBeenSet = true;
137 m_vlan = value;
138 }
140 SetVlan(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetLocalAddress() const { return m_localAddress; }
150 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
151 template <typename LocalAddressT = Aws::String>
152 void SetLocalAddress(LocalAddressT&& value) {
153 m_localAddressHasBeenSet = true;
154 m_localAddress = std::forward<LocalAddressT>(value);
155 }
156 template <typename LocalAddressT = Aws::String>
158 SetLocalAddress(std::forward<LocalAddressT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
168 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
169 template <typename PeerAddressT = Aws::String>
170 void SetPeerAddress(PeerAddressT&& value) {
171 m_peerAddressHasBeenSet = true;
172 m_peerAddress = std::forward<PeerAddressT>(value);
173 }
174 template <typename PeerAddressT = Aws::String>
176 SetPeerAddress(std::forward<PeerAddressT>(value));
177 return *this;
178 }
180
182
186 inline int GetLocalBgpAsn() const { return m_localBgpAsn; }
187 inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
188 inline void SetLocalBgpAsn(int value) {
189 m_localBgpAsnHasBeenSet = true;
190 m_localBgpAsn = value;
191 }
193 SetLocalBgpAsn(value);
194 return *this;
195 }
197
199
202 inline int GetPeerBgpAsn() const { return m_peerBgpAsn; }
203 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
204 inline void SetPeerBgpAsn(int value) {
205 m_peerBgpAsnHasBeenSet = true;
206 m_peerBgpAsn = value;
207 }
209 SetPeerBgpAsn(value);
210 return *this;
211 }
213
215
218 inline long long GetPeerBgpAsnExtended() const { return m_peerBgpAsnExtended; }
219 inline bool PeerBgpAsnExtendedHasBeenSet() const { return m_peerBgpAsnExtendedHasBeenSet; }
220 inline void SetPeerBgpAsnExtended(long long value) {
221 m_peerBgpAsnExtendedHasBeenSet = true;
222 m_peerBgpAsnExtended = value;
223 }
226 return *this;
227 }
229
231
235 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
236 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
237 template <typename OwnerIdT = Aws::String>
238 void SetOwnerId(OwnerIdT&& value) {
239 m_ownerIdHasBeenSet = true;
240 m_ownerId = std::forward<OwnerIdT>(value);
241 }
242 template <typename OwnerIdT = Aws::String>
244 SetOwnerId(std::forward<OwnerIdT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
254 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
255 template <typename TagsT = Aws::Vector<Tag>>
256 void SetTags(TagsT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags = std::forward<TagsT>(value);
259 }
260 template <typename TagsT = Aws::Vector<Tag>>
262 SetTags(std::forward<TagsT>(value));
263 return *this;
264 }
265 template <typename TagsT = Tag>
267 m_tagsHasBeenSet = true;
268 m_tags.emplace_back(std::forward<TagsT>(value));
269 return *this;
270 }
272
274
277 inline LocalGatewayVirtualInterfaceConfigurationState GetConfigurationState() const { return m_configurationState; }
278 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
280 m_configurationStateHasBeenSet = true;
281 m_configurationState = value;
282 }
285 return *this;
286 }
288 private:
289 Aws::String m_localGatewayVirtualInterfaceId;
290
291 Aws::String m_localGatewayId;
292
293 Aws::String m_localGatewayVirtualInterfaceGroupId;
294
295 Aws::String m_localGatewayVirtualInterfaceArn;
296
297 Aws::String m_outpostLagId;
298
299 int m_vlan{0};
300
301 Aws::String m_localAddress;
302
303 Aws::String m_peerAddress;
304
305 int m_localBgpAsn{0};
306
307 int m_peerBgpAsn{0};
308
309 long long m_peerBgpAsnExtended{0};
310
311 Aws::String m_ownerId;
312
313 Aws::Vector<Tag> m_tags;
314
316 bool m_localGatewayVirtualInterfaceIdHasBeenSet = false;
317 bool m_localGatewayIdHasBeenSet = false;
318 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
319 bool m_localGatewayVirtualInterfaceArnHasBeenSet = false;
320 bool m_outpostLagIdHasBeenSet = false;
321 bool m_vlanHasBeenSet = false;
322 bool m_localAddressHasBeenSet = false;
323 bool m_peerAddressHasBeenSet = false;
324 bool m_localBgpAsnHasBeenSet = false;
325 bool m_peerBgpAsnHasBeenSet = false;
326 bool m_peerBgpAsnExtendedHasBeenSet = false;
327 bool m_ownerIdHasBeenSet = false;
328 bool m_tagsHasBeenSet = false;
329 bool m_configurationStateHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace EC2
334} // namespace Aws
LocalGatewayVirtualInterface & WithLocalGatewayId(LocalGatewayIdT &&value)
AWS_EC2_API LocalGatewayVirtualInterface & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayVirtualInterface & WithTags(TagsT &&value)
LocalGatewayVirtualInterface & WithVlan(int value)
LocalGatewayVirtualInterface & WithOutpostLagId(OutpostLagIdT &&value)
LocalGatewayVirtualInterface & WithLocalAddress(LocalAddressT &&value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
LocalGatewayVirtualInterface & WithPeerAddress(PeerAddressT &&value)
LocalGatewayVirtualInterface & WithPeerBgpAsnExtended(long long value)
LocalGatewayVirtualInterface & WithLocalBgpAsn(int value)
void SetLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LocalGatewayVirtualInterface & WithConfigurationState(LocalGatewayVirtualInterfaceConfigurationState value)
AWS_EC2_API LocalGatewayVirtualInterface(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayVirtualInterface & WithPeerBgpAsn(int value)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT &&value)
void SetLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT &&value)
LocalGatewayVirtualInterface & WithLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT &&value)
AWS_EC2_API LocalGatewayVirtualInterface()=default
LocalGatewayVirtualInterface & AddTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetConfigurationState(LocalGatewayVirtualInterfaceConfigurationState value)
LocalGatewayVirtualInterfaceConfigurationState GetConfigurationState() const
LocalGatewayVirtualInterface & WithOwnerId(OwnerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream