AWS SDK for C++  1.9.132
AWS SDK for C++
NewPublicVirtualInterface.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace DirectConnect
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
49  inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
50 
56  inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
57 
63  inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
64 
70  inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
71 
77  inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
78 
84  inline NewPublicVirtualInterface& WithVirtualInterfaceName(const Aws::String& value) { SetVirtualInterfaceName(value); return *this;}
85 
91  inline NewPublicVirtualInterface& WithVirtualInterfaceName(Aws::String&& value) { SetVirtualInterfaceName(std::move(value)); return *this;}
92 
98  inline NewPublicVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
99 
100 
104  inline int GetVlan() const{ return m_vlan; }
105 
109  inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
110 
114  inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
115 
119  inline NewPublicVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
120 
121 
126  inline int GetAsn() const{ return m_asn; }
127 
132  inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
133 
138  inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
139 
144  inline NewPublicVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;}
145 
146 
151  inline const Aws::String& GetAuthKey() const{ return m_authKey; }
152 
157  inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
158 
163  inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
164 
169  inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
170 
175  inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
176 
181  inline NewPublicVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
182 
187  inline NewPublicVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
188 
193  inline NewPublicVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
194 
195 
199  inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
200 
204  inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
205 
209  inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
210 
214  inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
215 
219  inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
220 
224  inline NewPublicVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
225 
229  inline NewPublicVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
230 
234  inline NewPublicVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
235 
236 
240  inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
241 
245  inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
246 
250  inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
251 
255  inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
256 
260  inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
261 
265  inline NewPublicVirtualInterface& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
266 
270  inline NewPublicVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
271 
275  inline NewPublicVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
276 
277 
281  inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
282 
286  inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
287 
291  inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
292 
296  inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
297 
301  inline NewPublicVirtualInterface& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
302 
306  inline NewPublicVirtualInterface& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
307 
308 
313  inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
314 
319  inline bool RouteFilterPrefixesHasBeenSet() const { return m_routeFilterPrefixesHasBeenSet; }
320 
325  inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
326 
331  inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = std::move(value); }
332 
337  inline NewPublicVirtualInterface& WithRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { SetRouteFilterPrefixes(value); return *this;}
338 
343  inline NewPublicVirtualInterface& WithRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { SetRouteFilterPrefixes(std::move(value)); return *this;}
344 
349  inline NewPublicVirtualInterface& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
350 
355  inline NewPublicVirtualInterface& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(std::move(value)); return *this; }
356 
357 
361  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
362 
366  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
367 
371  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
372 
376  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
377 
381  inline NewPublicVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
382 
386  inline NewPublicVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
387 
391  inline NewPublicVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
392 
396  inline NewPublicVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
397 
398  private:
399 
400  Aws::String m_virtualInterfaceName;
401  bool m_virtualInterfaceNameHasBeenSet;
402 
403  int m_vlan;
404  bool m_vlanHasBeenSet;
405 
406  int m_asn;
407  bool m_asnHasBeenSet;
408 
409  Aws::String m_authKey;
410  bool m_authKeyHasBeenSet;
411 
412  Aws::String m_amazonAddress;
413  bool m_amazonAddressHasBeenSet;
414 
415  Aws::String m_customerAddress;
416  bool m_customerAddressHasBeenSet;
417 
418  AddressFamily m_addressFamily;
419  bool m_addressFamilyHasBeenSet;
420 
421  Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
422  bool m_routeFilterPrefixesHasBeenSet;
423 
424  Aws::Vector<Tag> m_tags;
425  bool m_tagsHasBeenSet;
426  };
427 
428 } // namespace Model
429 } // namespace DirectConnect
430 } // namespace Aws
Aws::DirectConnect::Model::NewPublicVirtualInterface::RouteFilterPrefixesHasBeenSet
bool RouteFilterPrefixesHasBeenSet() const
Definition: NewPublicVirtualInterface.h:319
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithCustomerAddress
NewPublicVirtualInterface & WithCustomerAddress(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:265
Aws::DirectConnect::Model::NewPublicVirtualInterface::AddTags
NewPublicVirtualInterface & AddTags(const Tag &value)
Definition: NewPublicVirtualInterface.h:391
Aws::DirectConnect::Model::NewPublicVirtualInterface::AmazonAddressHasBeenSet
bool AmazonAddressHasBeenSet() const
Definition: NewPublicVirtualInterface.h:204
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAmazonAddress
NewPublicVirtualInterface & WithAmazonAddress(const char *value)
Definition: NewPublicVirtualInterface.h:234
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithVirtualInterfaceName
NewPublicVirtualInterface & WithVirtualInterfaceName(const char *value)
Definition: NewPublicVirtualInterface.h:98
Aws::DirectConnect::Model::NewPublicVirtualInterface::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: NewPublicVirtualInterface.h:371
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithTags
NewPublicVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
Definition: NewPublicVirtualInterface.h:381
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithVlan
NewPublicVirtualInterface & WithVlan(int value)
Definition: NewPublicVirtualInterface.h:119
Aws::DirectConnect::Model::NewPublicVirtualInterface::VlanHasBeenSet
bool VlanHasBeenSet() const
Definition: NewPublicVirtualInterface.h:109
Aws::DirectConnect::Model::NewPublicVirtualInterface::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: NewPublicVirtualInterface.h:366
Aws::DirectConnect::Model::NewPublicVirtualInterface::CustomerAddressHasBeenSet
bool CustomerAddressHasBeenSet() const
Definition: NewPublicVirtualInterface.h:245
Aws::DirectConnect::Model::Tag
Definition: Tag.h:32
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAsn
NewPublicVirtualInterface & WithAsn(int value)
Definition: NewPublicVirtualInterface.h:144
Aws::DirectConnect::Model::NewPublicVirtualInterface::operator=
NewPublicVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetVirtualInterfaceName
void SetVirtualInterfaceName(const char *value)
Definition: NewPublicVirtualInterface.h:77
Aws::DirectConnect::Model::AddressFamily
AddressFamily
Definition: AddressFamily.h:17
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithVirtualInterfaceName
NewPublicVirtualInterface & WithVirtualInterfaceName(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:84
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetRouteFilterPrefixes
void SetRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
Definition: NewPublicVirtualInterface.h:331
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: NewPublicVirtualInterface.h:361
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetAmazonAddress
const Aws::String & GetAmazonAddress() const
Definition: NewPublicVirtualInterface.h:199
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAmazonAddress
void SetAmazonAddress(const char *value)
Definition: NewPublicVirtualInterface.h:219
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithVirtualInterfaceName
NewPublicVirtualInterface & WithVirtualInterfaceName(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:91
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetVlan
void SetVlan(int value)
Definition: NewPublicVirtualInterface.h:114
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetVirtualInterfaceName
void SetVirtualInterfaceName(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::NewPublicVirtualInterface::AddressFamilyHasBeenSet
bool AddressFamilyHasBeenSet() const
Definition: NewPublicVirtualInterface.h:286
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAmazonAddress
NewPublicVirtualInterface & WithAmazonAddress(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:229
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithTags
NewPublicVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
Definition: NewPublicVirtualInterface.h:386
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAddressFamily
void SetAddressFamily(const AddressFamily &value)
Definition: NewPublicVirtualInterface.h:291
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAuthKey
void SetAuthKey(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:169
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAddressFamily
NewPublicVirtualInterface & WithAddressFamily(const AddressFamily &value)
Definition: NewPublicVirtualInterface.h:301
AWSVector.h
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAuthKey
NewPublicVirtualInterface & WithAuthKey(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:187
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetCustomerAddress
void SetCustomerAddress(const char *value)
Definition: NewPublicVirtualInterface.h:260
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetVlan
int GetVlan() const
Definition: NewPublicVirtualInterface.h:104
Tag.h
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetRouteFilterPrefixes
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
Definition: NewPublicVirtualInterface.h:313
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithRouteFilterPrefixes
NewPublicVirtualInterface & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
Definition: NewPublicVirtualInterface.h:337
RouteFilterPrefix.h
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetAddressFamily
const AddressFamily & GetAddressFamily() const
Definition: NewPublicVirtualInterface.h:281
Aws::DirectConnect::Model::NewPublicVirtualInterface::NewPublicVirtualInterface
NewPublicVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetCustomerAddress
void SetCustomerAddress(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:255
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAuthKey
void SetAuthKey(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:163
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAmazonAddress
void SetAmazonAddress(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:209
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithRouteFilterPrefixes
NewPublicVirtualInterface & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
Definition: NewPublicVirtualInterface.h:343
Aws::DirectConnect::Model::NewPublicVirtualInterface::NewPublicVirtualInterface
NewPublicVirtualInterface()
AddressFamily.h
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetVirtualInterfaceName
const Aws::String & GetVirtualInterfaceName() const
Definition: NewPublicVirtualInterface.h:49
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetVirtualInterfaceName
void SetVirtualInterfaceName(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:63
Aws::DirectConnect::Model::NewPublicVirtualInterface::AddTags
NewPublicVirtualInterface & AddTags(Tag &&value)
Definition: NewPublicVirtualInterface.h:396
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAsn
void SetAsn(int value)
Definition: NewPublicVirtualInterface.h:138
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAuthKey
NewPublicVirtualInterface & WithAuthKey(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:181
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAmazonAddress
void SetAmazonAddress(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:214
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: NewPublicVirtualInterface.h:376
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAuthKey
void SetAuthKey(const char *value)
Definition: NewPublicVirtualInterface.h:175
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetAuthKey
const Aws::String & GetAuthKey() const
Definition: NewPublicVirtualInterface.h:151
Aws::DirectConnect::Model::NewPublicVirtualInterface::AuthKeyHasBeenSet
bool AuthKeyHasBeenSet() const
Definition: NewPublicVirtualInterface.h:157
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetAddressFamily
void SetAddressFamily(AddressFamily &&value)
Definition: NewPublicVirtualInterface.h:296
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAuthKey
NewPublicVirtualInterface & WithAuthKey(const char *value)
Definition: NewPublicVirtualInterface.h:193
Aws::DirectConnect::Model::RouteFilterPrefix
Definition: RouteFilterPrefix.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetCustomerAddress
void SetCustomerAddress(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:250
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAmazonAddress
NewPublicVirtualInterface & WithAmazonAddress(const Aws::String &value)
Definition: NewPublicVirtualInterface.h:224
Aws::DirectConnect::Model::NewPublicVirtualInterface::AddRouteFilterPrefixes
NewPublicVirtualInterface & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
Definition: NewPublicVirtualInterface.h:349
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithCustomerAddress
NewPublicVirtualInterface & WithCustomerAddress(Aws::String &&value)
Definition: NewPublicVirtualInterface.h:270
Aws::DirectConnect::Model::NewPublicVirtualInterface::SetRouteFilterPrefixes
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
Definition: NewPublicVirtualInterface.h:325
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetAsn
int GetAsn() const
Definition: NewPublicVirtualInterface.h:126
Aws::DirectConnect::Model::NewPublicVirtualInterface::VirtualInterfaceNameHasBeenSet
bool VirtualInterfaceNameHasBeenSet() const
Definition: NewPublicVirtualInterface.h:56
Aws::DirectConnect::Model::NewPublicVirtualInterface
Definition: NewPublicVirtualInterface.h:36
Aws::DirectConnect::Model::NewPublicVirtualInterface::AsnHasBeenSet
bool AsnHasBeenSet() const
Definition: NewPublicVirtualInterface.h:132
Aws::DirectConnect::Model::NewPublicVirtualInterface::GetCustomerAddress
const Aws::String & GetCustomerAddress() const
Definition: NewPublicVirtualInterface.h:240
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithCustomerAddress
NewPublicVirtualInterface & WithCustomerAddress(const char *value)
Definition: NewPublicVirtualInterface.h:275
Aws::DirectConnect::Model::NewPublicVirtualInterface::WithAddressFamily
NewPublicVirtualInterface & WithAddressFamily(AddressFamily &&value)
Definition: NewPublicVirtualInterface.h:306
Aws::DirectConnect::Model::NewPublicVirtualInterface::AddRouteFilterPrefixes
NewPublicVirtualInterface & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
Definition: NewPublicVirtualInterface.h:355