AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NewPublicVirtualInterfaceAllocation.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/RouteFilterPrefix.h>
12#include <aws/directconnect/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectConnect {
24namespace Model {
25
33 public:
34 AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation() = default;
37 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
46 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
47 template <typename VirtualInterfaceNameT = Aws::String>
48 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
49 m_virtualInterfaceNameHasBeenSet = true;
50 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
51 }
52 template <typename VirtualInterfaceNameT = Aws::String>
54 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
55 return *this;
56 }
58
60
63 inline int GetVlan() const { return m_vlan; }
64 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
65 inline void SetVlan(int value) {
66 m_vlanHasBeenSet = true;
67 m_vlan = value;
68 }
70 SetVlan(value);
71 return *this;
72 }
74
76
88 inline int GetAsn() const { return m_asn; }
89 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
90 inline void SetAsn(int value) {
91 m_asnHasBeenSet = true;
92 m_asn = value;
93 }
95 SetAsn(value);
96 return *this;
97 }
99
101
111 inline long long GetAsnLong() const { return m_asnLong; }
112 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
113 inline void SetAsnLong(long long value) {
114 m_asnLongHasBeenSet = true;
115 m_asnLong = value;
116 }
118 SetAsnLong(value);
119 return *this;
120 }
122
124
128 inline const Aws::String& GetAuthKey() const { return m_authKey; }
129 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
130 template <typename AuthKeyT = Aws::String>
131 void SetAuthKey(AuthKeyT&& value) {
132 m_authKeyHasBeenSet = true;
133 m_authKey = std::forward<AuthKeyT>(value);
134 }
135 template <typename AuthKeyT = Aws::String>
137 SetAuthKey(std::forward<AuthKeyT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
147 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
148 template <typename AmazonAddressT = Aws::String>
149 void SetAmazonAddress(AmazonAddressT&& value) {
150 m_amazonAddressHasBeenSet = true;
151 m_amazonAddress = std::forward<AmazonAddressT>(value);
152 }
153 template <typename AmazonAddressT = Aws::String>
155 SetAmazonAddress(std::forward<AmazonAddressT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
165 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
166 template <typename CustomerAddressT = Aws::String>
167 void SetCustomerAddress(CustomerAddressT&& value) {
168 m_customerAddressHasBeenSet = true;
169 m_customerAddress = std::forward<CustomerAddressT>(value);
170 }
171 template <typename CustomerAddressT = Aws::String>
173 SetCustomerAddress(std::forward<CustomerAddressT>(value));
174 return *this;
175 }
177
179
182 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
183 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
184 inline void SetAddressFamily(AddressFamily value) {
185 m_addressFamilyHasBeenSet = true;
186 m_addressFamily = value;
187 }
189 SetAddressFamily(value);
190 return *this;
191 }
193
195
199 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
200 inline bool RouteFilterPrefixesHasBeenSet() const { return m_routeFilterPrefixesHasBeenSet; }
201 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
202 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
203 m_routeFilterPrefixesHasBeenSet = true;
204 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
205 }
206 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
208 SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value));
209 return *this;
210 }
211 template <typename RouteFilterPrefixesT = RouteFilterPrefix>
213 m_routeFilterPrefixesHasBeenSet = true;
214 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 template <typename TagsT = Aws::Vector<Tag>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Vector<Tag>>
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsT = Tag>
237 m_tagsHasBeenSet = true;
238 m_tags.emplace_back(std::forward<TagsT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_virtualInterfaceName;
244
245 int m_vlan{0};
246
247 int m_asn{0};
248
249 long long m_asnLong{0};
250
251 Aws::String m_authKey;
252
253 Aws::String m_amazonAddress;
254
255 Aws::String m_customerAddress;
256
257 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
258
259 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
260
261 Aws::Vector<Tag> m_tags;
262 bool m_virtualInterfaceNameHasBeenSet = false;
263 bool m_vlanHasBeenSet = false;
264 bool m_asnHasBeenSet = false;
265 bool m_asnLongHasBeenSet = false;
266 bool m_authKeyHasBeenSet = false;
267 bool m_amazonAddressHasBeenSet = false;
268 bool m_customerAddressHasBeenSet = false;
269 bool m_addressFamilyHasBeenSet = false;
270 bool m_routeFilterPrefixesHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace DirectConnect
276} // namespace Aws
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(AmazonAddressT &&value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation()=default
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(CustomerAddressT &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(AuthKeyT &&value)
NewPublicVirtualInterfaceAllocation & WithAddressFamily(AddressFamily value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue