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

Currently available in limited preview only. If you are * interested in using this feature, contact your account manager.

*

Information about an association between a branch network interface with a * trunk network interface.

See Also:

AWS * API Reference

*/ class TrunkInterfaceAssociation { public: AWS_EC2_API TrunkInterfaceAssociation(); AWS_EC2_API TrunkInterfaceAssociation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TrunkInterfaceAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the association.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The ID of the association.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The ID of the association.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The ID of the association.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The ID of the association.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The ID of the association.

*/ inline TrunkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The ID of the association.

*/ inline TrunkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The ID of the association.

*/ inline TrunkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The ID of the branch network interface.

*/ inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; } /** *

The ID of the branch network interface.

*/ inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); } /** *

The ID of the branch network interface.

*/ inline TrunkInterfaceAssociation& WithBranchInterfaceId(const Aws::String& value) { SetBranchInterfaceId(value); return *this;} /** *

The ID of the branch network interface.

*/ inline TrunkInterfaceAssociation& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;} /** *

The ID of the branch network interface.

*/ inline TrunkInterfaceAssociation& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;} /** *

The ID of the trunk network interface.

*/ inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; } /** *

The ID of the trunk network interface.

*/ inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); } /** *

The ID of the trunk network interface.

*/ inline TrunkInterfaceAssociation& WithTrunkInterfaceId(const Aws::String& value) { SetTrunkInterfaceId(value); return *this;} /** *

The ID of the trunk network interface.

*/ inline TrunkInterfaceAssociation& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;} /** *

The ID of the trunk network interface.

*/ inline TrunkInterfaceAssociation& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;} /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline const InterfaceProtocolType& GetInterfaceProtocol() const{ return m_interfaceProtocol; } /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline bool InterfaceProtocolHasBeenSet() const { return m_interfaceProtocolHasBeenSet; } /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline void SetInterfaceProtocol(const InterfaceProtocolType& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = value; } /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline void SetInterfaceProtocol(InterfaceProtocolType&& value) { m_interfaceProtocolHasBeenSet = true; m_interfaceProtocol = std::move(value); } /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline TrunkInterfaceAssociation& WithInterfaceProtocol(const InterfaceProtocolType& value) { SetInterfaceProtocol(value); return *this;} /** *

The interface protocol. Valid values are VLAN and * GRE.

*/ inline TrunkInterfaceAssociation& WithInterfaceProtocol(InterfaceProtocolType&& value) { SetInterfaceProtocol(std::move(value)); return *this;} /** *

The ID of the VLAN when you use the VLAN protocol.

*/ inline int GetVlanId() const{ return m_vlanId; } /** *

The ID of the VLAN when you use the VLAN protocol.

*/ inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; } /** *

The ID of the VLAN when you use the VLAN protocol.

*/ inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; } /** *

The ID of the VLAN when you use the VLAN protocol.

*/ inline TrunkInterfaceAssociation& WithVlanId(int value) { SetVlanId(value); return *this;} /** *

The application key when you use the GRE protocol.

*/ inline int GetGreKey() const{ return m_greKey; } /** *

The application key when you use the GRE protocol.

*/ inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; } /** *

The application key when you use the GRE protocol.

*/ inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; } /** *

The application key when you use the GRE protocol.

*/ inline TrunkInterfaceAssociation& WithGreKey(int value) { SetGreKey(value); return *this;} /** *

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

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

The tags for the trunk interface association.

*/ inline TrunkInterfaceAssociation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_branchInterfaceId; bool m_branchInterfaceIdHasBeenSet = false; Aws::String m_trunkInterfaceId; bool m_trunkInterfaceIdHasBeenSet = false; InterfaceProtocolType m_interfaceProtocol; bool m_interfaceProtocolHasBeenSet = false; int m_vlanId; bool m_vlanIdHasBeenSet = false; int m_greKey; bool m_greKeyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws