AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocalGatewayVirtualInterface.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/LocalGatewayVirtualInterfaceConfigurationState.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API LocalGatewayVirtualInterface() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetLocalGatewayVirtualInterfaceId() const { return m_localGatewayVirtualInterfaceId; }
50 inline bool LocalGatewayVirtualInterfaceIdHasBeenSet() const { return m_localGatewayVirtualInterfaceIdHasBeenSet; }
51 template<typename LocalGatewayVirtualInterfaceIdT = Aws::String>
52 void SetLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT&& value) { m_localGatewayVirtualInterfaceIdHasBeenSet = true; m_localGatewayVirtualInterfaceId = std::forward<LocalGatewayVirtualInterfaceIdT>(value); }
53 template<typename LocalGatewayVirtualInterfaceIdT = Aws::String>
54 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceId(LocalGatewayVirtualInterfaceIdT&& value) { SetLocalGatewayVirtualInterfaceId(std::forward<LocalGatewayVirtualInterfaceIdT>(value)); return *this;}
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) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
65 template<typename LocalGatewayIdT = Aws::String>
66 LocalGatewayVirtualInterface& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
74 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
75 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
76 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value); }
77 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
78 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetLocalGatewayVirtualInterfaceArn() const { return m_localGatewayVirtualInterfaceArn; }
86 inline bool LocalGatewayVirtualInterfaceArnHasBeenSet() const { return m_localGatewayVirtualInterfaceArnHasBeenSet; }
87 template<typename LocalGatewayVirtualInterfaceArnT = Aws::String>
88 void SetLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT&& value) { m_localGatewayVirtualInterfaceArnHasBeenSet = true; m_localGatewayVirtualInterfaceArn = std::forward<LocalGatewayVirtualInterfaceArnT>(value); }
89 template<typename LocalGatewayVirtualInterfaceArnT = Aws::String>
90 LocalGatewayVirtualInterface& WithLocalGatewayVirtualInterfaceArn(LocalGatewayVirtualInterfaceArnT&& value) { SetLocalGatewayVirtualInterfaceArn(std::forward<LocalGatewayVirtualInterfaceArnT>(value)); return *this;}
92
94
97 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
98 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
99 template<typename OutpostLagIdT = Aws::String>
100 void SetOutpostLagId(OutpostLagIdT&& value) { m_outpostLagIdHasBeenSet = true; m_outpostLagId = std::forward<OutpostLagIdT>(value); }
101 template<typename OutpostLagIdT = Aws::String>
102 LocalGatewayVirtualInterface& WithOutpostLagId(OutpostLagIdT&& value) { SetOutpostLagId(std::forward<OutpostLagIdT>(value)); return *this;}
104
106
109 inline int GetVlan() const { return m_vlan; }
110 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
111 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
112 inline LocalGatewayVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
114
116
119 inline const Aws::String& GetLocalAddress() const { return m_localAddress; }
120 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
121 template<typename LocalAddressT = Aws::String>
122 void SetLocalAddress(LocalAddressT&& value) { m_localAddressHasBeenSet = true; m_localAddress = std::forward<LocalAddressT>(value); }
123 template<typename LocalAddressT = Aws::String>
124 LocalGatewayVirtualInterface& WithLocalAddress(LocalAddressT&& value) { SetLocalAddress(std::forward<LocalAddressT>(value)); return *this;}
126
128
131 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
132 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
133 template<typename PeerAddressT = Aws::String>
134 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
135 template<typename PeerAddressT = Aws::String>
136 LocalGatewayVirtualInterface& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
138
140
144 inline int GetLocalBgpAsn() const { return m_localBgpAsn; }
145 inline bool LocalBgpAsnHasBeenSet() const { return m_localBgpAsnHasBeenSet; }
146 inline void SetLocalBgpAsn(int value) { m_localBgpAsnHasBeenSet = true; m_localBgpAsn = value; }
147 inline LocalGatewayVirtualInterface& WithLocalBgpAsn(int value) { SetLocalBgpAsn(value); return *this;}
149
151
154 inline int GetPeerBgpAsn() const { return m_peerBgpAsn; }
155 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
156 inline void SetPeerBgpAsn(int value) { m_peerBgpAsnHasBeenSet = true; m_peerBgpAsn = value; }
157 inline LocalGatewayVirtualInterface& WithPeerBgpAsn(int value) { SetPeerBgpAsn(value); return *this;}
159
161
164 inline long long GetPeerBgpAsnExtended() const { return m_peerBgpAsnExtended; }
165 inline bool PeerBgpAsnExtendedHasBeenSet() const { return m_peerBgpAsnExtendedHasBeenSet; }
166 inline void SetPeerBgpAsnExtended(long long value) { m_peerBgpAsnExtendedHasBeenSet = true; m_peerBgpAsnExtended = value; }
167 inline LocalGatewayVirtualInterface& WithPeerBgpAsnExtended(long long value) { SetPeerBgpAsnExtended(value); return *this;}
169
171
175 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
176 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
177 template<typename OwnerIdT = Aws::String>
178 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
179 template<typename OwnerIdT = Aws::String>
180 LocalGatewayVirtualInterface& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
182
184
187 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 template<typename TagsT = Aws::Vector<Tag>>
190 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
191 template<typename TagsT = Aws::Vector<Tag>>
192 LocalGatewayVirtualInterface& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
193 template<typename TagsT = Tag>
194 LocalGatewayVirtualInterface& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
196
198
201 inline LocalGatewayVirtualInterfaceConfigurationState GetConfigurationState() const { return m_configurationState; }
202 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
203 inline void SetConfigurationState(LocalGatewayVirtualInterfaceConfigurationState value) { m_configurationStateHasBeenSet = true; m_configurationState = value; }
206 private:
207
208 Aws::String m_localGatewayVirtualInterfaceId;
209 bool m_localGatewayVirtualInterfaceIdHasBeenSet = false;
210
211 Aws::String m_localGatewayId;
212 bool m_localGatewayIdHasBeenSet = false;
213
214 Aws::String m_localGatewayVirtualInterfaceGroupId;
215 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
216
217 Aws::String m_localGatewayVirtualInterfaceArn;
218 bool m_localGatewayVirtualInterfaceArnHasBeenSet = false;
219
220 Aws::String m_outpostLagId;
221 bool m_outpostLagIdHasBeenSet = false;
222
223 int m_vlan{0};
224 bool m_vlanHasBeenSet = false;
225
226 Aws::String m_localAddress;
227 bool m_localAddressHasBeenSet = false;
228
229 Aws::String m_peerAddress;
230 bool m_peerAddressHasBeenSet = false;
231
232 int m_localBgpAsn{0};
233 bool m_localBgpAsnHasBeenSet = false;
234
235 int m_peerBgpAsn{0};
236 bool m_peerBgpAsnHasBeenSet = false;
237
238 long long m_peerBgpAsnExtended{0};
239 bool m_peerBgpAsnExtendedHasBeenSet = false;
240
241 Aws::String m_ownerId;
242 bool m_ownerIdHasBeenSet = false;
243
244 Aws::Vector<Tag> m_tags;
245 bool m_tagsHasBeenSet = false;
246
248 bool m_configurationStateHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace EC2
253} // 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