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/Tag.h>
22namespace DirectConnect {
46 template <
typename VirtualInterfaceNameT = Aws::String>
48 m_virtualInterfaceNameHasBeenSet =
true;
49 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
51 template <
typename VirtualInterfaceNameT = Aws::String>
62 inline int GetVlan()
const {
return m_vlan; }
65 m_vlanHasBeenSet =
true;
87 inline int GetAsn()
const {
return m_asn; }
90 m_asnHasBeenSet =
true;
113 m_asnLongHasBeenSet =
true;
127 inline int GetMtu()
const {
return m_mtu; }
130 m_mtuHasBeenSet =
true;
146 template <
typename AuthKeyT = Aws::String>
148 m_authKeyHasBeenSet =
true;
149 m_authKey = std::forward<AuthKeyT>(value);
151 template <
typename AuthKeyT = Aws::String>
164 template <
typename AmazonAddressT = Aws::String>
166 m_amazonAddressHasBeenSet =
true;
167 m_amazonAddress = std::forward<AmazonAddressT>(value);
169 template <
typename AmazonAddressT = Aws::String>
183 m_addressFamilyHasBeenSet =
true;
184 m_addressFamily = value;
198 template <
typename CustomerAddressT = Aws::String>
200 m_customerAddressHasBeenSet =
true;
201 m_customerAddress = std::forward<CustomerAddressT>(value);
203 template <
typename CustomerAddressT = Aws::String>
216 template <
typename TagsT = Aws::Vector<Tag>>
218 m_tagsHasBeenSet =
true;
219 m_tags = std::forward<TagsT>(value);
221 template <
typename TagsT = Aws::Vector<Tag>>
223 SetTags(std::forward<TagsT>(value));
226 template <
typename TagsT = Tag>
228 m_tagsHasBeenSet =
true;
229 m_tags.emplace_back(std::forward<TagsT>(value));
240 long long m_asnLong{0};
253 bool m_virtualInterfaceNameHasBeenSet =
false;
254 bool m_vlanHasBeenSet =
false;
255 bool m_asnHasBeenSet =
false;
256 bool m_asnLongHasBeenSet =
false;
257 bool m_mtuHasBeenSet =
false;
258 bool m_authKeyHasBeenSet =
false;
259 bool m_amazonAddressHasBeenSet =
false;
260 bool m_addressFamilyHasBeenSet =
false;
261 bool m_customerAddressHasBeenSet =
false;
262 bool m_tagsHasBeenSet =
false;
bool CustomerAddressHasBeenSet() const
bool VirtualInterfaceNameHasBeenSet() const
const Aws::String & GetCustomerAddress() const
void SetTags(TagsT &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation()=default
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterfaceAllocation & WithMtu(int value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthKey(AuthKeyT &&value)
const Aws::String & GetVirtualInterfaceName() const
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
void SetAsnLong(long long value)
const Aws::String & GetAmazonAddress() const
NewPrivateVirtualInterfaceAllocation & WithAsn(int value)
bool TagsHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool AddressFamilyHasBeenSet() const
bool AsnLongHasBeenSet() const
AddressFamily GetAddressFamily() const
bool AuthKeyHasBeenSet() const
void SetAmazonAddress(AmazonAddressT &&value)
NewPrivateVirtualInterfaceAllocation & WithAddressFamily(AddressFamily value)
bool MtuHasBeenSet() const
const Aws::String & GetAuthKey() const
bool AsnHasBeenSet() const
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(CustomerAddressT &&value)
long long GetAsnLong() const
NewPrivateVirtualInterfaceAllocation & WithAuthKey(AuthKeyT &&value)
NewPrivateVirtualInterfaceAllocation & WithAsnLong(long long value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVirtualInterfaceName(VirtualInterfaceNameT &&value)
bool AmazonAddressHasBeenSet() const
bool VlanHasBeenSet() const
NewPrivateVirtualInterfaceAllocation & WithTags(TagsT &&value)
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(AmazonAddressT &&value)
void SetCustomerAddress(CustomerAddressT &&value)
NewPrivateVirtualInterfaceAllocation & WithVlan(int value)
void SetAddressFamily(AddressFamily value)
NewPrivateVirtualInterfaceAllocation & AddTags(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