AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
NewPrivateVirtualInterfaceAllocation.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
32 public:
33 AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation() = default;
36 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
45 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
46 template <typename VirtualInterfaceNameT = Aws::String>
47 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
48 m_virtualInterfaceNameHasBeenSet = true;
49 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
50 }
51 template <typename VirtualInterfaceNameT = Aws::String>
53 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
54 return *this;
55 }
57
59
62 inline int GetVlan() const { return m_vlan; }
63 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
64 inline void SetVlan(int value) {
65 m_vlanHasBeenSet = true;
66 m_vlan = value;
67 }
69 SetVlan(value);
70 return *this;
71 }
73
75
89 inline int GetAsn() const { return m_asn; }
90 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
91 inline void SetAsn(int value) {
92 m_asnHasBeenSet = true;
93 m_asn = value;
94 }
96 SetAsn(value);
97 return *this;
98 }
100
102
118 inline long long GetAsnLong() const { return m_asnLong; }
119 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
120 inline void SetAsnLong(long long value) {
121 m_asnLongHasBeenSet = true;
122 m_asnLong = value;
123 }
125 SetAsnLong(value);
126 return *this;
127 }
129
131
135 inline int GetMtu() const { return m_mtu; }
136 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
137 inline void SetMtu(int value) {
138 m_mtuHasBeenSet = true;
139 m_mtu = value;
140 }
142 SetMtu(value);
143 return *this;
144 }
146
148
152 inline const Aws::String& GetAuthKey() const { return m_authKey; }
153 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
154 template <typename AuthKeyT = Aws::String>
155 void SetAuthKey(AuthKeyT&& value) {
156 m_authKeyHasBeenSet = true;
157 m_authKey = std::forward<AuthKeyT>(value);
158 }
159 template <typename AuthKeyT = Aws::String>
161 SetAuthKey(std::forward<AuthKeyT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
171 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
172 template <typename AmazonAddressT = Aws::String>
173 void SetAmazonAddress(AmazonAddressT&& value) {
174 m_amazonAddressHasBeenSet = true;
175 m_amazonAddress = std::forward<AmazonAddressT>(value);
176 }
177 template <typename AmazonAddressT = Aws::String>
179 SetAmazonAddress(std::forward<AmazonAddressT>(value));
180 return *this;
181 }
183
185
188 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
189 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
190 inline void SetAddressFamily(AddressFamily value) {
191 m_addressFamilyHasBeenSet = true;
192 m_addressFamily = value;
193 }
195 SetAddressFamily(value);
196 return *this;
197 }
199
201
204 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
205 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
206 template <typename CustomerAddressT = Aws::String>
207 void SetCustomerAddress(CustomerAddressT&& value) {
208 m_customerAddressHasBeenSet = true;
209 m_customerAddress = std::forward<CustomerAddressT>(value);
210 }
211 template <typename CustomerAddressT = Aws::String>
213 SetCustomerAddress(std::forward<CustomerAddressT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 template <typename TagsT = Aws::Vector<Tag>>
225 void SetTags(TagsT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags = std::forward<TagsT>(value);
228 }
229 template <typename TagsT = Aws::Vector<Tag>>
231 SetTags(std::forward<TagsT>(value));
232 return *this;
233 }
234 template <typename TagsT = Tag>
236 m_tagsHasBeenSet = true;
237 m_tags.emplace_back(std::forward<TagsT>(value));
238 return *this;
239 }
241
243
248 inline const Aws::String& GetRateLimit() const { return m_rateLimit; }
249 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
250 template <typename RateLimitT = Aws::String>
251 void SetRateLimit(RateLimitT&& value) {
252 m_rateLimitHasBeenSet = true;
253 m_rateLimit = std::forward<RateLimitT>(value);
254 }
255 template <typename RateLimitT = Aws::String>
257 SetRateLimit(std::forward<RateLimitT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_virtualInterfaceName;
263
264 int m_vlan{0};
265
266 int m_asn{0};
267
268 long long m_asnLong{0};
269
270 int m_mtu{0};
271
272 Aws::String m_authKey;
273
274 Aws::String m_amazonAddress;
275
276 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
277
278 Aws::String m_customerAddress;
279
280 Aws::Vector<Tag> m_tags;
281
282 Aws::String m_rateLimit;
283 bool m_virtualInterfaceNameHasBeenSet = false;
284 bool m_vlanHasBeenSet = false;
285 bool m_asnHasBeenSet = false;
286 bool m_asnLongHasBeenSet = false;
287 bool m_mtuHasBeenSet = false;
288 bool m_authKeyHasBeenSet = false;
289 bool m_amazonAddressHasBeenSet = false;
290 bool m_addressFamilyHasBeenSet = false;
291 bool m_customerAddressHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293 bool m_rateLimitHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace DirectConnect
298} // namespace Aws
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation()=default
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterfaceAllocation & WithRateLimit(RateLimitT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPrivateVirtualInterfaceAllocation & WithAddressFamily(AddressFamily value)
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(CustomerAddressT &&value)
NewPrivateVirtualInterfaceAllocation & WithAuthKey(AuthKeyT &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(AmazonAddressT &&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