AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NewPublicVirtualInterface.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/RouteFilterPrefix.h>
12#include <aws/directconnect/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DirectConnect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DIRECTCONNECT_API NewPublicVirtualInterface();
39 AWS_DIRECTCONNECT_API NewPublicVirtualInterface(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
51 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
52 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
53 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
54 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
57 inline NewPublicVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
59
61
64 inline int GetVlan() const{ return m_vlan; }
65 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
66 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
67 inline NewPublicVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
69
71
75 inline int GetAsn() const{ return m_asn; }
76 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
77 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
78 inline NewPublicVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;}
80
82
86 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
87 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
88 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
89 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
90 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
91 inline NewPublicVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
92 inline NewPublicVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
93 inline NewPublicVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
95
97
100 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
101 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
102 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
103 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
104 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
105 inline NewPublicVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
106 inline NewPublicVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
107 inline NewPublicVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
109
111
114 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
115 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
116 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
117 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
118 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
120 inline NewPublicVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
121 inline NewPublicVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
123
125
128 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
129 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
130 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
131 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
132 inline NewPublicVirtualInterface& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
133 inline NewPublicVirtualInterface& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
135
137
141 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
142 inline bool RouteFilterPrefixesHasBeenSet() const { return m_routeFilterPrefixesHasBeenSet; }
143 inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
144 inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = std::move(value); }
147 inline NewPublicVirtualInterface& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
148 inline NewPublicVirtualInterface& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(std::move(value)); return *this; }
150
152
155 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline NewPublicVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
160 inline NewPublicVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
161 inline NewPublicVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
162 inline NewPublicVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_virtualInterfaceName;
167 bool m_virtualInterfaceNameHasBeenSet = false;
168
169 int m_vlan;
170 bool m_vlanHasBeenSet = false;
171
172 int m_asn;
173 bool m_asnHasBeenSet = false;
174
175 Aws::String m_authKey;
176 bool m_authKeyHasBeenSet = false;
177
178 Aws::String m_amazonAddress;
179 bool m_amazonAddressHasBeenSet = false;
180
181 Aws::String m_customerAddress;
182 bool m_customerAddressHasBeenSet = false;
183
184 AddressFamily m_addressFamily;
185 bool m_addressFamilyHasBeenSet = false;
186
187 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
188 bool m_routeFilterPrefixesHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace DirectConnect
196} // namespace Aws
NewPublicVirtualInterface & WithAmazonAddress(const char *value)
NewPublicVirtualInterface & WithVirtualInterfaceName(const char *value)
NewPublicVirtualInterface & WithAddressFamily(const AddressFamily &value)
NewPublicVirtualInterface & WithVirtualInterfaceName(Aws::String &&value)
NewPublicVirtualInterface & WithCustomerAddress(const char *value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
NewPublicVirtualInterface & WithAmazonAddress(Aws::String &&value)
NewPublicVirtualInterface & WithCustomerAddress(const Aws::String &value)
NewPublicVirtualInterface & WithAuthKey(const Aws::String &value)
NewPublicVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPublicVirtualInterface & WithVirtualInterfaceName(const Aws::String &value)
NewPublicVirtualInterface & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
NewPublicVirtualInterface & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
NewPublicVirtualInterface & WithAmazonAddress(const Aws::String &value)
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterface & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
NewPublicVirtualInterface & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterface & WithAuthKey(Aws::String &&value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
NewPublicVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
NewPublicVirtualInterface & AddTags(const Tag &value)
NewPublicVirtualInterface & WithAddressFamily(AddressFamily &&value)
NewPublicVirtualInterface & WithAuthKey(const char *value)
NewPublicVirtualInterface & 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