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>
23namespace DirectConnect {
47 template <
typename VirtualInterfaceNameT = Aws::String>
49 m_virtualInterfaceNameHasBeenSet =
true;
50 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
52 template <
typename VirtualInterfaceNameT = Aws::String>
63 inline int GetVlan()
const {
return m_vlan; }
66 m_vlanHasBeenSet =
true;
88 inline int GetAsn()
const {
return m_asn; }
91 m_asnHasBeenSet =
true;
114 m_asnLongHasBeenSet =
true;
130 template <
typename AuthKeyT = Aws::String>
132 m_authKeyHasBeenSet =
true;
133 m_authKey = std::forward<AuthKeyT>(value);
135 template <
typename AuthKeyT = Aws::String>
148 template <
typename AmazonAddressT = Aws::String>
150 m_amazonAddressHasBeenSet =
true;
151 m_amazonAddress = std::forward<AmazonAddressT>(value);
153 template <
typename AmazonAddressT = Aws::String>
166 template <
typename CustomerAddressT = Aws::String>
168 m_customerAddressHasBeenSet =
true;
169 m_customerAddress = std::forward<CustomerAddressT>(value);
171 template <
typename CustomerAddressT = Aws::String>
185 m_addressFamilyHasBeenSet =
true;
186 m_addressFamily = value;
201 template <
typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
203 m_routeFilterPrefixesHasBeenSet =
true;
204 m_routeFilterPrefixes = std::forward<RouteFilterPrefixesT>(value);
206 template <
typename RouteFilterPrefixesT = Aws::Vector<RouteFilterPrefix>>
211 template <
typename RouteFilterPrefixesT = RouteFilterPrefix>
213 m_routeFilterPrefixesHasBeenSet =
true;
214 m_routeFilterPrefixes.emplace_back(std::forward<RouteFilterPrefixesT>(value));
225 template <
typename TagsT = Aws::Vector<Tag>>
227 m_tagsHasBeenSet =
true;
228 m_tags = std::forward<TagsT>(value);
230 template <
typename TagsT = Aws::Vector<Tag>>
232 SetTags(std::forward<TagsT>(value));
235 template <
typename TagsT = Tag>
237 m_tagsHasBeenSet =
true;
238 m_tags.emplace_back(std::forward<TagsT>(value));
249 long long m_asnLong{0};
262 bool m_virtualInterfaceNameHasBeenSet =
false;
263 bool m_vlanHasBeenSet =
false;
264 bool m_asnHasBeenSet =
false;
265 bool m_asnLongHasBeenSet =
false;
266 bool m_authKeyHasBeenSet =
false;
267 bool m_amazonAddressHasBeenSet =
false;
268 bool m_customerAddressHasBeenSet =
false;
269 bool m_addressFamilyHasBeenSet =
false;
270 bool m_routeFilterPrefixesHasBeenSet =
false;
271 bool m_tagsHasBeenSet =
false;
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddressFamily(AddressFamily value)
bool AsnHasBeenSet() const
void SetRouteFilterPrefixes(RouteFilterPrefixesT &&value)
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
void SetVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(RouteFilterPrefixesT &&value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(RouteFilterPrefixesT &&value)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
const Aws::String & GetAmazonAddress() const
bool RouteFilterPrefixesHasBeenSet() const
const Aws::String & GetCustomerAddress() const
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
AddressFamily GetAddressFamily() const
bool AsnLongHasBeenSet() const
void SetCustomerAddress(CustomerAddressT &&value)
NewPublicVirtualInterfaceAllocation & WithAsn(int value)
bool AddressFamilyHasBeenSet() const
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(AmazonAddressT &&value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation()=default
bool CustomerAddressHasBeenSet() const
NewPublicVirtualInterfaceAllocation & WithAsnLong(long long value)
NewPublicVirtualInterfaceAllocation & AddTags(TagsT &&value)
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(CustomerAddressT &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(AuthKeyT &&value)
const Aws::String & GetAuthKey() const
NewPublicVirtualInterfaceAllocation & WithVlan(int value)
const Aws::Vector< Tag > & GetTags() const
bool VirtualInterfaceNameHasBeenSet() const
bool AuthKeyHasBeenSet() const
void SetAuthKey(AuthKeyT &&value)
bool AmazonAddressHasBeenSet() const
const Aws::String & GetVirtualInterfaceName() const
NewPublicVirtualInterfaceAllocation & WithAddressFamily(AddressFamily value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VlanHasBeenSet() const
bool TagsHasBeenSet() const
long long GetAsnLong() const
void SetAmazonAddress(AmazonAddressT &&value)
NewPublicVirtualInterfaceAllocation & WithTags(TagsT &&value)
void SetAsnLong(long long value)
void SetTags(TagsT &&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