AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NewPublicVirtualInterface.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
32 public:
33 AWS_DIRECTCONNECT_API NewPublicVirtualInterface() = default;
34 AWS_DIRECTCONNECT_API NewPublicVirtualInterface(Aws::Utils::Json::JsonView jsonValue);
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>
52 NewPublicVirtualInterface& WithVirtualInterfaceName(VirtualInterfaceNameT&& value) {
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
86 inline int GetAsn() const { return m_asn; }
87 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
88 inline void SetAsn(int value) {
89 m_asnHasBeenSet = true;
90 m_asn = value;
91 }
93 SetAsn(value);
94 return *this;
95 }
97
99
109 inline long long GetAsnLong() const { return m_asnLong; }
110 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
111 inline void SetAsnLong(long long value) {
112 m_asnLongHasBeenSet = true;
113 m_asnLong = value;
114 }
115 inline NewPublicVirtualInterface& WithAsnLong(long long value) {
116 SetAsnLong(value);
117 return *this;
118 }
120
122
126 inline const Aws::String& GetAuthKey() const { return m_authKey; }
127 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
128 template <typename AuthKeyT = Aws::String>
129 void SetAuthKey(AuthKeyT&& value) {
130 m_authKeyHasBeenSet = true;
131 m_authKey = std::forward<AuthKeyT>(value);
132 }
133 template <typename AuthKeyT = Aws::String>
135 SetAuthKey(std::forward<AuthKeyT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
145 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
146 template <typename AmazonAddressT = Aws::String>
147 void SetAmazonAddress(AmazonAddressT&& value) {
148 m_amazonAddressHasBeenSet = true;
149 m_amazonAddress = std::forward<AmazonAddressT>(value);
150 }
151 template <typename AmazonAddressT = Aws::String>
153 SetAmazonAddress(std::forward<AmazonAddressT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
163 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
164 template <typename CustomerAddressT = Aws::String>
165 void SetCustomerAddress(CustomerAddressT&& value) {
166 m_customerAddressHasBeenSet = true;
167 m_customerAddress = std::forward<CustomerAddressT>(value);
168 }
169 template <typename CustomerAddressT = Aws::String>
171 SetCustomerAddress(std::forward<CustomerAddressT>(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
197 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const { return m_routeFilterPrefixes; }
198 inline bool RouteFilterPrefixesHasBeenSet() const { return m_routeFilterPrefixesHasBeenSet; }
199 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
200 void SetRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
201 m_routeFilterPrefixesHasBeenSet = true;
202 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
203 }
204 template <typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
205 NewPublicVirtualInterface& WithRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
206 SetRouteFilterPrefixes(std::forward<RouteFilterPrefixesT>(value));
207 return *this;
208 }
209 template <typename RouteFilterPrefixesT = RouteFilterPrefix>
210 NewPublicVirtualInterface& AddRouteFilterPrefixes(RouteFilterPrefixesT&& value) {
211 m_routeFilterPrefixesHasBeenSet = true;
212 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
222 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 template <typename TagsT = Aws::Vector<Tag>>
224 void SetTags(TagsT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags = std::forward<TagsT>(value);
227 }
228 template <typename TagsT = Aws::Vector<Tag>>
230 SetTags(std::forward<TagsT>(value));
231 return *this;
232 }
233 template <typename TagsT = Tag>
235 m_tagsHasBeenSet = true;
236 m_tags.emplace_back(std::forward<TagsT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_virtualInterfaceName;
242
243 int m_vlan{0};
244
245 int m_asn{0};
246
247 long long m_asnLong{0};
248
249 Aws::String m_authKey;
250
251 Aws::String m_amazonAddress;
252
253 Aws::String m_customerAddress;
254
255 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
256
257 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
258
259 Aws::Vector<Tag> m_tags;
260 bool m_virtualInterfaceNameHasBeenSet = false;
261 bool m_vlanHasBeenSet = false;
262 bool m_asnHasBeenSet = false;
263 bool m_asnLongHasBeenSet = false;
264 bool m_authKeyHasBeenSet = false;
265 bool m_amazonAddressHasBeenSet = false;
266 bool m_customerAddressHasBeenSet = false;
267 bool m_addressFamilyHasBeenSet = false;
268 bool m_routeFilterPrefixesHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace DirectConnect
274} // namespace Aws
NewPublicVirtualInterface & WithCustomerAddress(CustomerAddressT &&value)
NewPublicVirtualInterface & WithAddressFamily(AddressFamily value)
NewPublicVirtualInterface & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
NewPublicVirtualInterface & WithAsnLong(long long value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPublicVirtualInterface & WithAmazonAddress(AmazonAddressT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPublicVirtualInterface & WithAuthKey(AuthKeyT &&value)
NewPublicVirtualInterface & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPublicVirtualInterface & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
NewPublicVirtualInterface & WithTags(TagsT &&value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterface()=default
AWS_DIRECTCONNECT_API NewPublicVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue