AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
52 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
53 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
56 inline NewPrivateVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
58
60
63 inline int GetVlan() const{ return m_vlan; }
64 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
65 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
66 inline NewPrivateVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
68
70
74 inline int GetAsn() const{ return m_asn; }
75 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
76 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
77 inline NewPrivateVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;}
79
81
85 inline int GetMtu() const{ return m_mtu; }
86 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
87 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
88 inline NewPrivateVirtualInterface& WithMtu(int value) { SetMtu(value); return *this;}
90
92
96 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
97 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
98 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
99 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
100 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
101 inline NewPrivateVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
102 inline NewPrivateVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
103 inline NewPrivateVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
105
107
110 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
111 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
112 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
113 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
114 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
115 inline NewPrivateVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
116 inline NewPrivateVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
117 inline NewPrivateVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
119
121
124 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
125 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
126 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
127 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
128 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
130 inline NewPrivateVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
131 inline NewPrivateVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
133
135
138 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
139 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
140 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
141 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
142 inline NewPrivateVirtualInterface& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
143 inline NewPrivateVirtualInterface& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
145
147
150 inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; }
151 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
152 inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; }
153 inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); }
154 inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); }
156 inline NewPrivateVirtualInterface& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;}
157 inline NewPrivateVirtualInterface& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;}
159
161
164 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
165 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
166 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; }
167 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); }
168 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); }
171 inline NewPrivateVirtualInterface& WithDirectConnectGatewayId(const char* value) { SetDirectConnectGatewayId(value); return *this;}
173
175
178 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
181 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
182 inline NewPrivateVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
183 inline NewPrivateVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
184 inline NewPrivateVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
185 inline NewPrivateVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
187
189
192 inline bool GetEnableSiteLink() const{ return m_enableSiteLink; }
193 inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; }
194 inline void SetEnableSiteLink(bool value) { m_enableSiteLinkHasBeenSet = true; m_enableSiteLink = value; }
195 inline NewPrivateVirtualInterface& WithEnableSiteLink(bool value) { SetEnableSiteLink(value); return *this;}
197 private:
198
199 Aws::String m_virtualInterfaceName;
200 bool m_virtualInterfaceNameHasBeenSet = false;
201
202 int m_vlan;
203 bool m_vlanHasBeenSet = false;
204
205 int m_asn;
206 bool m_asnHasBeenSet = false;
207
208 int m_mtu;
209 bool m_mtuHasBeenSet = false;
210
211 Aws::String m_authKey;
212 bool m_authKeyHasBeenSet = false;
213
214 Aws::String m_amazonAddress;
215 bool m_amazonAddressHasBeenSet = false;
216
217 Aws::String m_customerAddress;
218 bool m_customerAddressHasBeenSet = false;
219
220 AddressFamily m_addressFamily;
221 bool m_addressFamilyHasBeenSet = false;
222
223 Aws::String m_virtualGatewayId;
224 bool m_virtualGatewayIdHasBeenSet = false;
225
226 Aws::String m_directConnectGatewayId;
227 bool m_directConnectGatewayIdHasBeenSet = false;
228
229 Aws::Vector<Tag> m_tags;
230 bool m_tagsHasBeenSet = false;
231
232 bool m_enableSiteLink;
233 bool m_enableSiteLinkHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace DirectConnect
238} // namespace Aws
NewPrivateVirtualInterface & WithVirtualGatewayId(const char *value)
NewPrivateVirtualInterface & WithVirtualGatewayId(Aws::String &&value)
NewPrivateVirtualInterface & WithDirectConnectGatewayId(const char *value)
NewPrivateVirtualInterface & WithAmazonAddress(Aws::String &&value)
NewPrivateVirtualInterface & WithAddressFamily(const AddressFamily &value)
NewPrivateVirtualInterface & WithAuthKey(const char *value)
NewPrivateVirtualInterface & WithEnableSiteLink(bool value)
NewPrivateVirtualInterface & WithDirectConnectGatewayId(const Aws::String &value)
NewPrivateVirtualInterface & WithCustomerAddress(const Aws::String &value)
NewPrivateVirtualInterface & WithCustomerAddress(const char *value)
NewPrivateVirtualInterface & WithDirectConnectGatewayId(Aws::String &&value)
NewPrivateVirtualInterface & WithVirtualInterfaceName(const char *value)
NewPrivateVirtualInterface & WithVirtualInterfaceName(const Aws::String &value)
NewPrivateVirtualInterface & WithAddressFamily(AddressFamily &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPrivateVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
NewPrivateVirtualInterface & WithAuthKey(Aws::String &&value)
NewPrivateVirtualInterface & WithAmazonAddress(const Aws::String &value)
NewPrivateVirtualInterface & WithAuthKey(const Aws::String &value)
NewPrivateVirtualInterface & WithVirtualGatewayId(const Aws::String &value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterface & WithAmazonAddress(const char *value)
NewPrivateVirtualInterface & WithVirtualInterfaceName(Aws::String &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterface & AddTags(const Tag &value)
NewPrivateVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
NewPrivateVirtualInterface & WithCustomerAddress(Aws::String &&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