AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NewTransitVirtualInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/AddressFamily.h>
11#include <aws/directconnect/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectConnect {
23namespace Model {
24
31 public:
32 AWS_DIRECTCONNECT_API NewTransitVirtualInterface() = default;
35 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
44 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
45 template <typename VirtualInterfaceNameT = Aws::String>
46 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
47 m_virtualInterfaceNameHasBeenSet = true;
48 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
49 }
50 template <typename VirtualInterfaceNameT = Aws::String>
51 NewTransitVirtualInterface& WithVirtualInterfaceName(VirtualInterfaceNameT&& value) {
52 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
53 return *this;
54 }
56
58
61 inline int GetVlan() const { return m_vlan; }
62 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
63 inline void SetVlan(int value) {
64 m_vlanHasBeenSet = true;
65 m_vlan = value;
66 }
68 SetVlan(value);
69 return *this;
70 }
72
74
85 inline int GetAsn() const { return m_asn; }
86 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
87 inline void SetAsn(int value) {
88 m_asnHasBeenSet = true;
89 m_asn = value;
90 }
92 SetAsn(value);
93 return *this;
94 }
96
98
108 inline long long GetAsnLong() const { return m_asnLong; }
109 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
110 inline void SetAsnLong(long long value) {
111 m_asnLongHasBeenSet = true;
112 m_asnLong = value;
113 }
114 inline NewTransitVirtualInterface& WithAsnLong(long long value) {
115 SetAsnLong(value);
116 return *this;
117 }
119
121
125 inline int GetMtu() const { return m_mtu; }
126 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
127 inline void SetMtu(int value) {
128 m_mtuHasBeenSet = true;
129 m_mtu = value;
130 }
132 SetMtu(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetAuthKey() const { return m_authKey; }
143 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
144 template <typename AuthKeyT = Aws::String>
145 void SetAuthKey(AuthKeyT&& value) {
146 m_authKeyHasBeenSet = true;
147 m_authKey = std::forward<AuthKeyT>(value);
148 }
149 template <typename AuthKeyT = Aws::String>
151 SetAuthKey(std::forward<AuthKeyT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
161 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
162 template <typename AmazonAddressT = Aws::String>
163 void SetAmazonAddress(AmazonAddressT&& value) {
164 m_amazonAddressHasBeenSet = true;
165 m_amazonAddress = std::forward<AmazonAddressT>(value);
166 }
167 template <typename AmazonAddressT = Aws::String>
169 SetAmazonAddress(std::forward<AmazonAddressT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
179 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
180 template <typename CustomerAddressT = Aws::String>
181 void SetCustomerAddress(CustomerAddressT&& value) {
182 m_customerAddressHasBeenSet = true;
183 m_customerAddress = std::forward<CustomerAddressT>(value);
184 }
185 template <typename CustomerAddressT = Aws::String>
187 SetCustomerAddress(std::forward<CustomerAddressT>(value));
188 return *this;
189 }
191
193
196 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
197 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
198 inline void SetAddressFamily(AddressFamily value) {
199 m_addressFamilyHasBeenSet = true;
200 m_addressFamily = value;
201 }
203 SetAddressFamily(value);
204 return *this;
205 }
207
209
212 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
213 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
214 template <typename DirectConnectGatewayIdT = Aws::String>
215 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
216 m_directConnectGatewayIdHasBeenSet = true;
217 m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value);
218 }
219 template <typename DirectConnectGatewayIdT = Aws::String>
220 NewTransitVirtualInterface& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
221 SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
231 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
232 template <typename TagsT = Aws::Vector<Tag>>
233 void SetTags(TagsT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags = std::forward<TagsT>(value);
236 }
237 template <typename TagsT = Aws::Vector<Tag>>
239 SetTags(std::forward<TagsT>(value));
240 return *this;
241 }
242 template <typename TagsT = Tag>
244 m_tagsHasBeenSet = true;
245 m_tags.emplace_back(std::forward<TagsT>(value));
246 return *this;
247 }
249
251
254 inline bool GetEnableSiteLink() const { return m_enableSiteLink; }
255 inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; }
256 inline void SetEnableSiteLink(bool value) {
257 m_enableSiteLinkHasBeenSet = true;
258 m_enableSiteLink = value;
259 }
261 SetEnableSiteLink(value);
262 return *this;
263 }
265 private:
266 Aws::String m_virtualInterfaceName;
267
268 int m_vlan{0};
269
270 int m_asn{0};
271
272 long long m_asnLong{0};
273
274 int m_mtu{0};
275
276 Aws::String m_authKey;
277
278 Aws::String m_amazonAddress;
279
280 Aws::String m_customerAddress;
281
282 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
283
284 Aws::String m_directConnectGatewayId;
285
286 Aws::Vector<Tag> m_tags;
287
288 bool m_enableSiteLink{false};
289 bool m_virtualInterfaceNameHasBeenSet = false;
290 bool m_vlanHasBeenSet = false;
291 bool m_asnHasBeenSet = false;
292 bool m_asnLongHasBeenSet = false;
293 bool m_mtuHasBeenSet = false;
294 bool m_authKeyHasBeenSet = false;
295 bool m_amazonAddressHasBeenSet = false;
296 bool m_customerAddressHasBeenSet = false;
297 bool m_addressFamilyHasBeenSet = false;
298 bool m_directConnectGatewayIdHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300 bool m_enableSiteLinkHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace DirectConnect
305} // namespace Aws
NewTransitVirtualInterface & WithAmazonAddress(AmazonAddressT &&value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterface & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterface()=default
NewTransitVirtualInterface & WithAuthKey(AuthKeyT &&value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterface & WithCustomerAddress(CustomerAddressT &&value)
NewTransitVirtualInterface & WithEnableSiteLink(bool value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewTransitVirtualInterface & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewTransitVirtualInterface & WithAddressFamily(AddressFamily value)
NewTransitVirtualInterface & WithAsnLong(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue