AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceLinkVirtualInterface.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/ServiceLinkVirtualInterfaceConfigurationState.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
33 public:
34 AWS_EC2_API ServiceLinkVirtualInterface() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetServiceLinkVirtualInterfaceId() const { return m_serviceLinkVirtualInterfaceId; }
46 inline bool ServiceLinkVirtualInterfaceIdHasBeenSet() const { return m_serviceLinkVirtualInterfaceIdHasBeenSet; }
47 template <typename ServiceLinkVirtualInterfaceIdT = Aws::String>
48 void SetServiceLinkVirtualInterfaceId(ServiceLinkVirtualInterfaceIdT&& value) {
49 m_serviceLinkVirtualInterfaceIdHasBeenSet = true;
50 m_serviceLinkVirtualInterfaceId = std::forward<ServiceLinkVirtualInterfaceIdT>(value);
51 }
52 template <typename ServiceLinkVirtualInterfaceIdT = Aws::String>
53 ServiceLinkVirtualInterface& WithServiceLinkVirtualInterfaceId(ServiceLinkVirtualInterfaceIdT&& value) {
54 SetServiceLinkVirtualInterfaceId(std::forward<ServiceLinkVirtualInterfaceIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetServiceLinkVirtualInterfaceArn() const { return m_serviceLinkVirtualInterfaceArn; }
64 inline bool ServiceLinkVirtualInterfaceArnHasBeenSet() const { return m_serviceLinkVirtualInterfaceArnHasBeenSet; }
65 template <typename ServiceLinkVirtualInterfaceArnT = Aws::String>
66 void SetServiceLinkVirtualInterfaceArn(ServiceLinkVirtualInterfaceArnT&& value) {
67 m_serviceLinkVirtualInterfaceArnHasBeenSet = true;
68 m_serviceLinkVirtualInterfaceArn = std::forward<ServiceLinkVirtualInterfaceArnT>(value);
69 }
70 template <typename ServiceLinkVirtualInterfaceArnT = Aws::String>
71 ServiceLinkVirtualInterface& WithServiceLinkVirtualInterfaceArn(ServiceLinkVirtualInterfaceArnT&& value) {
72 SetServiceLinkVirtualInterfaceArn(std::forward<ServiceLinkVirtualInterfaceArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
82 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
83 template <typename OutpostIdT = Aws::String>
84 void SetOutpostId(OutpostIdT&& value) {
85 m_outpostIdHasBeenSet = true;
86 m_outpostId = std::forward<OutpostIdT>(value);
87 }
88 template <typename OutpostIdT = Aws::String>
90 SetOutpostId(std::forward<OutpostIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
101 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
102 template <typename OutpostArnT = Aws::String>
103 void SetOutpostArn(OutpostArnT&& value) {
104 m_outpostArnHasBeenSet = true;
105 m_outpostArn = std::forward<OutpostArnT>(value);
106 }
107 template <typename OutpostArnT = Aws::String>
109 SetOutpostArn(std::forward<OutpostArnT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
120 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
121 template <typename OwnerIdT = Aws::String>
122 void SetOwnerId(OwnerIdT&& value) {
123 m_ownerIdHasBeenSet = true;
124 m_ownerId = std::forward<OwnerIdT>(value);
125 }
126 template <typename OwnerIdT = Aws::String>
128 SetOwnerId(std::forward<OwnerIdT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetLocalAddress() const { return m_localAddress; }
139 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
140 template <typename LocalAddressT = Aws::String>
141 void SetLocalAddress(LocalAddressT&& value) {
142 m_localAddressHasBeenSet = true;
143 m_localAddress = std::forward<LocalAddressT>(value);
144 }
145 template <typename LocalAddressT = Aws::String>
147 SetLocalAddress(std::forward<LocalAddressT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
157 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
158 template <typename PeerAddressT = Aws::String>
159 void SetPeerAddress(PeerAddressT&& value) {
160 m_peerAddressHasBeenSet = true;
161 m_peerAddress = std::forward<PeerAddressT>(value);
162 }
163 template <typename PeerAddressT = Aws::String>
165 SetPeerAddress(std::forward<PeerAddressT>(value));
166 return *this;
167 }
169
171
175 inline long long GetPeerBgpAsn() const { return m_peerBgpAsn; }
176 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
177 inline void SetPeerBgpAsn(long long value) {
178 m_peerBgpAsnHasBeenSet = true;
179 m_peerBgpAsn = value;
180 }
182 SetPeerBgpAsn(value);
183 return *this;
184 }
186
188
191 inline int GetVlan() const { return m_vlan; }
192 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
193 inline void SetVlan(int value) {
194 m_vlanHasBeenSet = true;
195 m_vlan = value;
196 }
198 SetVlan(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
209 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
210 template <typename OutpostLagIdT = Aws::String>
211 void SetOutpostLagId(OutpostLagIdT&& value) {
212 m_outpostLagIdHasBeenSet = true;
213 m_outpostLagId = std::forward<OutpostLagIdT>(value);
214 }
215 template <typename OutpostLagIdT = Aws::String>
217 SetOutpostLagId(std::forward<OutpostLagIdT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template <typename TagsT = Aws::Vector<Tag>>
229 void SetTags(TagsT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags = std::forward<TagsT>(value);
232 }
233 template <typename TagsT = Aws::Vector<Tag>>
235 SetTags(std::forward<TagsT>(value));
236 return *this;
237 }
238 template <typename TagsT = Tag>
240 m_tagsHasBeenSet = true;
241 m_tags.emplace_back(std::forward<TagsT>(value));
242 return *this;
243 }
245
247
250 inline ServiceLinkVirtualInterfaceConfigurationState GetConfigurationState() const { return m_configurationState; }
251 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
253 m_configurationStateHasBeenSet = true;
254 m_configurationState = value;
255 }
258 return *this;
259 }
261 private:
262 Aws::String m_serviceLinkVirtualInterfaceId;
263
264 Aws::String m_serviceLinkVirtualInterfaceArn;
265
266 Aws::String m_outpostId;
267
268 Aws::String m_outpostArn;
269
270 Aws::String m_ownerId;
271
272 Aws::String m_localAddress;
273
274 Aws::String m_peerAddress;
275
276 long long m_peerBgpAsn{0};
277
278 int m_vlan{0};
279
280 Aws::String m_outpostLagId;
281
282 Aws::Vector<Tag> m_tags;
283
285 bool m_serviceLinkVirtualInterfaceIdHasBeenSet = false;
286 bool m_serviceLinkVirtualInterfaceArnHasBeenSet = false;
287 bool m_outpostIdHasBeenSet = false;
288 bool m_outpostArnHasBeenSet = false;
289 bool m_ownerIdHasBeenSet = false;
290 bool m_localAddressHasBeenSet = false;
291 bool m_peerAddressHasBeenSet = false;
292 bool m_peerBgpAsnHasBeenSet = false;
293 bool m_vlanHasBeenSet = false;
294 bool m_outpostLagIdHasBeenSet = false;
295 bool m_tagsHasBeenSet = false;
296 bool m_configurationStateHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace EC2
301} // namespace Aws
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