/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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
.
The interface protocol. Valid values are VLAN
and
* GRE
.
The interface protocol. Valid values are VLAN
and
* GRE
.
The interface protocol. Valid values are VLAN
and
* GRE
.
The interface protocol. Valid values are VLAN
and
* GRE
.
The interface protocol. Valid values are VLAN
and
* GRE
.
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::VectorThe 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::VectorThe tags for the trunk interface association.
*/ inline void SetTags(Aws::VectorThe tags for the trunk interface association.
*/ inline TrunkInterfaceAssociation& WithTags(const Aws::VectorThe tags for the trunk interface association.
*/ inline TrunkInterfaceAssociation& WithTags(Aws::VectorThe 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