AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
87 inline int GetAsn() const { return m_asn; }
88 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
89 inline void SetAsn(int value) {
90 m_asnHasBeenSet = true;
91 m_asn = value;
92 }
94 SetAsn(value);
95 return *this;
96 }
98
100
110 inline long long GetAsnLong() const { return m_asnLong; }
111 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
112 inline void SetAsnLong(long long value) {
113 m_asnLongHasBeenSet = true;
114 m_asnLong = value;
115 }
117 SetAsnLong(value);
118 return *this;
119 }
121
123
127 inline int GetMtu() const { return m_mtu; }
128 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
129 inline void SetMtu(int value) {
130 m_mtuHasBeenSet = true;
131 m_mtu = value;
132 }
134 SetMtu(value);
135 return *this;
136 }
138
140
144 inline const Aws::String& GetAuthKey() const { return m_authKey; }
145 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
146 template <typename AuthKeyT = Aws::String>
147 void SetAuthKey(AuthKeyT&& value) {
148 m_authKeyHasBeenSet = true;
149 m_authKey = std::forward<AuthKeyT>(value);
150 }
151 template <typename AuthKeyT = Aws::String>
153 SetAuthKey(std::forward<AuthKeyT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
163 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
164 template <typename AmazonAddressT = Aws::String>
165 void SetAmazonAddress(AmazonAddressT&& value) {
166 m_amazonAddressHasBeenSet = true;
167 m_amazonAddress = std::forward<AmazonAddressT>(value);
168 }
169 template <typename AmazonAddressT = Aws::String>
171 SetAmazonAddress(std::forward<AmazonAddressT>(value));
172 return *this;
173 }
175
177
180 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
181 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
182 inline void SetAddressFamily(AddressFamily value) {
183 m_addressFamilyHasBeenSet = true;
184 m_addressFamily = value;
185 }
187 SetAddressFamily(value);
188 return *this;
189 }
191
193
196 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
197 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
198 template <typename CustomerAddressT = Aws::String>
199 void SetCustomerAddress(CustomerAddressT&& value) {
200 m_customerAddressHasBeenSet = true;
201 m_customerAddress = std::forward<CustomerAddressT>(value);
202 }
203 template <typename CustomerAddressT = Aws::String>
205 SetCustomerAddress(std::forward<CustomerAddressT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template <typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Vector<Tag>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsT = Tag>
228 m_tagsHasBeenSet = true;
229 m_tags.emplace_back(std::forward<TagsT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_virtualInterfaceName;
235
236 int m_vlan{0};
237
238 int m_asn{0};
239
240 long long m_asnLong{0};
241
242 int m_mtu{0};
243
244 Aws::String m_authKey;
245
246 Aws::String m_amazonAddress;
247
248 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
249
250 Aws::String m_customerAddress;
251
252 Aws::Vector<Tag> m_tags;
253 bool m_virtualInterfaceNameHasBeenSet = false;
254 bool m_vlanHasBeenSet = false;
255 bool m_asnHasBeenSet = false;
256 bool m_asnLongHasBeenSet = false;
257 bool m_mtuHasBeenSet = false;
258 bool m_authKeyHasBeenSet = false;
259 bool m_amazonAddressHasBeenSet = false;
260 bool m_addressFamilyHasBeenSet = false;
261 bool m_customerAddressHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace DirectConnect
267} // namespace Aws
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation()=default
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
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