AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServiceLinkVirtualInterface.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/ServiceLinkVirtualInterfaceConfigurationState.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
37 {
38 public:
39 AWS_EC2_API ServiceLinkVirtualInterface() = default;
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetServiceLinkVirtualInterfaceId() const { return m_serviceLinkVirtualInterfaceId; }
52 inline bool ServiceLinkVirtualInterfaceIdHasBeenSet() const { return m_serviceLinkVirtualInterfaceIdHasBeenSet; }
53 template<typename ServiceLinkVirtualInterfaceIdT = Aws::String>
54 void SetServiceLinkVirtualInterfaceId(ServiceLinkVirtualInterfaceIdT&& value) { m_serviceLinkVirtualInterfaceIdHasBeenSet = true; m_serviceLinkVirtualInterfaceId = std::forward<ServiceLinkVirtualInterfaceIdT>(value); }
55 template<typename ServiceLinkVirtualInterfaceIdT = Aws::String>
56 ServiceLinkVirtualInterface& WithServiceLinkVirtualInterfaceId(ServiceLinkVirtualInterfaceIdT&& value) { SetServiceLinkVirtualInterfaceId(std::forward<ServiceLinkVirtualInterfaceIdT>(value)); return *this;}
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) { m_serviceLinkVirtualInterfaceArnHasBeenSet = true; m_serviceLinkVirtualInterfaceArn = std::forward<ServiceLinkVirtualInterfaceArnT>(value); }
67 template<typename ServiceLinkVirtualInterfaceArnT = Aws::String>
68 ServiceLinkVirtualInterface& WithServiceLinkVirtualInterfaceArn(ServiceLinkVirtualInterfaceArnT&& value) { SetServiceLinkVirtualInterfaceArn(std::forward<ServiceLinkVirtualInterfaceArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
76 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
77 template<typename OutpostIdT = Aws::String>
78 void SetOutpostId(OutpostIdT&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::forward<OutpostIdT>(value); }
79 template<typename OutpostIdT = Aws::String>
80 ServiceLinkVirtualInterface& WithOutpostId(OutpostIdT&& value) { SetOutpostId(std::forward<OutpostIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
89 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
90 template<typename OutpostArnT = Aws::String>
91 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
92 template<typename OutpostArnT = Aws::String>
93 ServiceLinkVirtualInterface& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
95
97
101 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
102 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
103 template<typename OwnerIdT = Aws::String>
104 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
105 template<typename OwnerIdT = Aws::String>
106 ServiceLinkVirtualInterface& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
108
110
114 inline const Aws::String& GetLocalAddress() const { return m_localAddress; }
115 inline bool LocalAddressHasBeenSet() const { return m_localAddressHasBeenSet; }
116 template<typename LocalAddressT = Aws::String>
117 void SetLocalAddress(LocalAddressT&& value) { m_localAddressHasBeenSet = true; m_localAddress = std::forward<LocalAddressT>(value); }
118 template<typename LocalAddressT = Aws::String>
119 ServiceLinkVirtualInterface& WithLocalAddress(LocalAddressT&& value) { SetLocalAddress(std::forward<LocalAddressT>(value)); return *this;}
121
123
126 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
127 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
128 template<typename PeerAddressT = Aws::String>
129 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
130 template<typename PeerAddressT = Aws::String>
131 ServiceLinkVirtualInterface& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
133
135
139 inline long long GetPeerBgpAsn() const { return m_peerBgpAsn; }
140 inline bool PeerBgpAsnHasBeenSet() const { return m_peerBgpAsnHasBeenSet; }
141 inline void SetPeerBgpAsn(long long value) { m_peerBgpAsnHasBeenSet = true; m_peerBgpAsn = value; }
142 inline ServiceLinkVirtualInterface& WithPeerBgpAsn(long long value) { SetPeerBgpAsn(value); return *this;}
144
146
149 inline int GetVlan() const { return m_vlan; }
150 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
151 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
152 inline ServiceLinkVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
154
156
160 inline const Aws::String& GetOutpostLagId() const { return m_outpostLagId; }
161 inline bool OutpostLagIdHasBeenSet() const { return m_outpostLagIdHasBeenSet; }
162 template<typename OutpostLagIdT = Aws::String>
163 void SetOutpostLagId(OutpostLagIdT&& value) { m_outpostLagIdHasBeenSet = true; m_outpostLagId = std::forward<OutpostLagIdT>(value); }
164 template<typename OutpostLagIdT = Aws::String>
165 ServiceLinkVirtualInterface& WithOutpostLagId(OutpostLagIdT&& value) { SetOutpostLagId(std::forward<OutpostLagIdT>(value)); return *this;}
167
169
172 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template<typename TagsT = Aws::Vector<Tag>>
175 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
176 template<typename TagsT = Aws::Vector<Tag>>
177 ServiceLinkVirtualInterface& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
178 template<typename TagsT = Tag>
179 ServiceLinkVirtualInterface& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
181
183
186 inline ServiceLinkVirtualInterfaceConfigurationState GetConfigurationState() const { return m_configurationState; }
187 inline bool ConfigurationStateHasBeenSet() const { return m_configurationStateHasBeenSet; }
188 inline void SetConfigurationState(ServiceLinkVirtualInterfaceConfigurationState value) { m_configurationStateHasBeenSet = true; m_configurationState = value; }
191 private:
192
193 Aws::String m_serviceLinkVirtualInterfaceId;
194 bool m_serviceLinkVirtualInterfaceIdHasBeenSet = false;
195
196 Aws::String m_serviceLinkVirtualInterfaceArn;
197 bool m_serviceLinkVirtualInterfaceArnHasBeenSet = false;
198
199 Aws::String m_outpostId;
200 bool m_outpostIdHasBeenSet = false;
201
202 Aws::String m_outpostArn;
203 bool m_outpostArnHasBeenSet = false;
204
205 Aws::String m_ownerId;
206 bool m_ownerIdHasBeenSet = false;
207
208 Aws::String m_localAddress;
209 bool m_localAddressHasBeenSet = false;
210
211 Aws::String m_peerAddress;
212 bool m_peerAddressHasBeenSet = false;
213
214 long long m_peerBgpAsn{0};
215 bool m_peerBgpAsnHasBeenSet = false;
216
217 int m_vlan{0};
218 bool m_vlanHasBeenSet = false;
219
220 Aws::String m_outpostLagId;
221 bool m_outpostLagIdHasBeenSet = false;
222
223 Aws::Vector<Tag> m_tags;
224 bool m_tagsHasBeenSet = false;
225
227 bool m_configurationStateHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace EC2
232} // 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