AWS SDK for C++

AWS SDK for C++ Version 1.11.641

Loading...
Searching...
No Matches
NewPrivateVirtualInterface.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/AddressFamily.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectConnect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DIRECTCONNECT_API NewPrivateVirtualInterface() = default;
40 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
50 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
51 template<typename VirtualInterfaceNameT = Aws::String>
52 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value); }
53 template<typename VirtualInterfaceNameT = Aws::String>
54 NewPrivateVirtualInterface& WithVirtualInterfaceName(VirtualInterfaceNameT&& value) { SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value)); return *this;}
56
58
61 inline int GetVlan() const { return m_vlan; }
62 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
63 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
64 inline NewPrivateVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
66
68
80 inline int GetAsn() const { return m_asn; }
81 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
82 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
83 inline NewPrivateVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;}
85
87
97 inline long long GetAsnLong() const { return m_asnLong; }
98 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
99 inline void SetAsnLong(long long value) { m_asnLongHasBeenSet = true; m_asnLong = value; }
100 inline NewPrivateVirtualInterface& WithAsnLong(long long value) { SetAsnLong(value); return *this;}
102
104
108 inline int GetMtu() const { return m_mtu; }
109 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
110 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
111 inline NewPrivateVirtualInterface& WithMtu(int value) { SetMtu(value); return *this;}
113
115
119 inline const Aws::String& GetAuthKey() const { return m_authKey; }
120 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
121 template<typename AuthKeyT = Aws::String>
122 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
123 template<typename AuthKeyT = Aws::String>
124 NewPrivateVirtualInterface& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
126
128
131 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
132 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
133 template<typename AmazonAddressT = Aws::String>
134 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
135 template<typename AmazonAddressT = Aws::String>
136 NewPrivateVirtualInterface& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
138
140
143 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
144 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
145 template<typename CustomerAddressT = Aws::String>
146 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
147 template<typename CustomerAddressT = Aws::String>
148 NewPrivateVirtualInterface& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
150
152
155 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
156 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
157 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
160
162
165 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
166 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
167 template<typename VirtualGatewayIdT = Aws::String>
168 void SetVirtualGatewayId(VirtualGatewayIdT&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value); }
169 template<typename VirtualGatewayIdT = Aws::String>
170 NewPrivateVirtualInterface& WithVirtualGatewayId(VirtualGatewayIdT&& value) { SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value)); return *this;}
172
174
177 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
178 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
179 template<typename DirectConnectGatewayIdT = Aws::String>
180 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value); }
181 template<typename DirectConnectGatewayIdT = Aws::String>
182 NewPrivateVirtualInterface& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value)); return *this;}
184
186
189 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template<typename TagsT = Aws::Vector<Tag>>
192 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
193 template<typename TagsT = Aws::Vector<Tag>>
194 NewPrivateVirtualInterface& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
195 template<typename TagsT = Tag>
196 NewPrivateVirtualInterface& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
198
200
203 inline bool GetEnableSiteLink() const { return m_enableSiteLink; }
204 inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; }
205 inline void SetEnableSiteLink(bool value) { m_enableSiteLinkHasBeenSet = true; m_enableSiteLink = value; }
206 inline NewPrivateVirtualInterface& WithEnableSiteLink(bool value) { SetEnableSiteLink(value); return *this;}
208 private:
209
210 Aws::String m_virtualInterfaceName;
211 bool m_virtualInterfaceNameHasBeenSet = false;
212
213 int m_vlan{0};
214 bool m_vlanHasBeenSet = false;
215
216 int m_asn{0};
217 bool m_asnHasBeenSet = false;
218
219 long long m_asnLong{0};
220 bool m_asnLongHasBeenSet = false;
221
222 int m_mtu{0};
223 bool m_mtuHasBeenSet = false;
224
225 Aws::String m_authKey;
226 bool m_authKeyHasBeenSet = false;
227
228 Aws::String m_amazonAddress;
229 bool m_amazonAddressHasBeenSet = false;
230
231 Aws::String m_customerAddress;
232 bool m_customerAddressHasBeenSet = false;
233
234 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
235 bool m_addressFamilyHasBeenSet = false;
236
237 Aws::String m_virtualGatewayId;
238 bool m_virtualGatewayIdHasBeenSet = false;
239
240 Aws::String m_directConnectGatewayId;
241 bool m_directConnectGatewayIdHasBeenSet = false;
242
243 Aws::Vector<Tag> m_tags;
244 bool m_tagsHasBeenSet = false;
245
246 bool m_enableSiteLink{false};
247 bool m_enableSiteLinkHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace DirectConnect
252} // namespace Aws
NewPrivateVirtualInterface & WithEnableSiteLink(bool value)
NewPrivateVirtualInterface & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPrivateVirtualInterface & WithAuthKey(AuthKeyT &&value)
NewPrivateVirtualInterface & WithAmazonAddress(AmazonAddressT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPrivateVirtualInterface & WithAsnLong(long long value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterface()=default
NewPrivateVirtualInterface & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
NewPrivateVirtualInterface & WithVirtualGatewayId(VirtualGatewayIdT &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterface & WithAddressFamily(AddressFamily value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterface & WithCustomerAddress(CustomerAddressT &&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