/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about a private virtual interface.

See Also:

AWS * API Reference

*/ class NewPrivateVirtualInterface { public: AWS_DIRECTCONNECT_API NewPrivateVirtualInterface(); AWS_DIRECTCONNECT_API NewPrivateVirtualInterface(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTCONNECT_API NewPrivateVirtualInterface& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; } /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; } /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; } /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); } /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); } /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline NewPrivateVirtualInterface& WithVirtualInterfaceName(const Aws::String& value) { SetVirtualInterfaceName(value); return *this;} /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline NewPrivateVirtualInterface& WithVirtualInterfaceName(Aws::String&& value) { SetVirtualInterfaceName(std::move(value)); return *this;} /** *

The name of the virtual interface assigned by the customer network. The name * has a maximum of 100 characters. The following are valid characters: a-z, 0-9 * and a hyphen (-).

*/ inline NewPrivateVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;} /** *

The ID of the VLAN.

*/ inline int GetVlan() const{ return m_vlan; } /** *

The ID of the VLAN.

*/ inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; } /** *

The ID of the VLAN.

*/ inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; } /** *

The ID of the VLAN.

*/ inline NewPrivateVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;} /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

The valid values are 1-2147483647.

*/ inline int GetAsn() const{ return m_asn; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

The valid values are 1-2147483647.

*/ inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

The valid values are 1-2147483647.

*/ inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; } /** *

The autonomous system (AS) number for Border Gateway Protocol (BGP) * configuration.

The valid values are 1-2147483647.

*/ inline NewPrivateVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;} /** *

The maximum transmission unit (MTU), in bytes. The supported values are 1500 * and 9001. The default value is 1500.

*/ inline int GetMtu() const{ return m_mtu; } /** *

The maximum transmission unit (MTU), in bytes. The supported values are 1500 * and 9001. The default value is 1500.

*/ inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; } /** *

The maximum transmission unit (MTU), in bytes. The supported values are 1500 * and 9001. The default value is 1500.

*/ inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; } /** *

The maximum transmission unit (MTU), in bytes. The supported values are 1500 * and 9001. The default value is 1500.

*/ inline NewPrivateVirtualInterface& WithMtu(int value) { SetMtu(value); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline const Aws::String& GetAuthKey() const{ return m_authKey; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); } /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewPrivateVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewPrivateVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;} /** *

The authentication key for BGP configuration. This string has a minimum * length of 6 characters and and a maximun lenth of 80 characters.

*/ inline NewPrivateVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; } /** *

The IP address assigned to the Amazon interface.

*/ inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); } /** *

The IP address assigned to the Amazon interface.

*/ inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); } /** *

The IP address assigned to the Amazon interface.

*/ inline NewPrivateVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline NewPrivateVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;} /** *

The IP address assigned to the Amazon interface.

*/ inline NewPrivateVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; } /** *

The IP address assigned to the customer interface.

*/ inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); } /** *

The IP address assigned to the customer interface.

*/ inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); } /** *

The IP address assigned to the customer interface.

*/ inline NewPrivateVirtualInterface& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline NewPrivateVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;} /** *

The IP address assigned to the customer interface.

*/ inline NewPrivateVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;} /** *

The address family for the BGP peer.

*/ inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; } /** *

The address family for the BGP peer.

*/ inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; } /** *

The address family for the BGP peer.

*/ inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; } /** *

The address family for the BGP peer.

*/ inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); } /** *

The address family for the BGP peer.

*/ inline NewPrivateVirtualInterface& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;} /** *

The address family for the BGP peer.

*/ inline NewPrivateVirtualInterface& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;} /** *

The ID of the virtual private gateway.

*/ inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; } /** *

The ID of the virtual private gateway.

*/ inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); } /** *

The ID of the virtual private gateway.

*/ inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); } /** *

The ID of the virtual private gateway.

*/ inline NewPrivateVirtualInterface& WithVirtualGatewayId(const Aws::String& value) { SetVirtualGatewayId(value); return *this;} /** *

The ID of the virtual private gateway.

*/ inline NewPrivateVirtualInterface& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;} /** *

The ID of the virtual private gateway.

*/ inline NewPrivateVirtualInterface& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;} /** *

The ID of the Direct Connect gateway.

*/ inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; } /** *

The ID of the Direct Connect gateway.

*/ inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; } /** *

The ID of the Direct Connect gateway.

*/ inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; } /** *

The ID of the Direct Connect gateway.

*/ inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); } /** *

The ID of the Direct Connect gateway.

*/ inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); } /** *

The ID of the Direct Connect gateway.

*/ inline NewPrivateVirtualInterface& WithDirectConnectGatewayId(const Aws::String& value) { SetDirectConnectGatewayId(value); return *this;} /** *

The ID of the Direct Connect gateway.

*/ inline NewPrivateVirtualInterface& WithDirectConnectGatewayId(Aws::String&& value) { SetDirectConnectGatewayId(std::move(value)); return *this;} /** *

The ID of the Direct Connect gateway.

*/ inline NewPrivateVirtualInterface& WithDirectConnectGatewayId(const char* value) { SetDirectConnectGatewayId(value); return *this;} /** *

The tags associated with the private virtual interface.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags associated with the private virtual interface.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags associated with the private virtual interface.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags associated with the private virtual interface.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags associated with the private virtual interface.

*/ inline NewPrivateVirtualInterface& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags associated with the private virtual interface.

*/ inline NewPrivateVirtualInterface& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the private virtual interface.

*/ inline NewPrivateVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with the private virtual interface.

*/ inline NewPrivateVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Indicates whether to enable or disable SiteLink.

*/ inline bool GetEnableSiteLink() const{ return m_enableSiteLink; } /** *

Indicates whether to enable or disable SiteLink.

*/ inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; } /** *

Indicates whether to enable or disable SiteLink.

*/ inline void SetEnableSiteLink(bool value) { m_enableSiteLinkHasBeenSet = true; m_enableSiteLink = value; } /** *

Indicates whether to enable or disable SiteLink.

*/ inline NewPrivateVirtualInterface& WithEnableSiteLink(bool value) { SetEnableSiteLink(value); return *this;} private: Aws::String m_virtualInterfaceName; bool m_virtualInterfaceNameHasBeenSet = false; int m_vlan; bool m_vlanHasBeenSet = false; int m_asn; bool m_asnHasBeenSet = false; int m_mtu; bool m_mtuHasBeenSet = false; Aws::String m_authKey; bool m_authKeyHasBeenSet = false; Aws::String m_amazonAddress; bool m_amazonAddressHasBeenSet = false; Aws::String m_customerAddress; bool m_customerAddressHasBeenSet = false; AddressFamily m_addressFamily; bool m_addressFamilyHasBeenSet = false; Aws::String m_virtualGatewayId; bool m_virtualGatewayIdHasBeenSet = false; Aws::String m_directConnectGatewayId; bool m_directConnectGatewayIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_enableSiteLink; bool m_enableSiteLinkHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws