/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an association between a Direct Connect gateway and a
* virtual private gateway or transit gateway.See Also:
AWS
* API Reference
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 DirectConnectGatewayAssociation& WithDirectConnectGatewayId(const Aws::String& value) { SetDirectConnectGatewayId(value); return *this;} /** *The ID of the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& WithDirectConnectGatewayId(Aws::String&& value) { SetDirectConnectGatewayId(std::move(value)); return *this;} /** *The ID of the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& WithDirectConnectGatewayId(const char* value) { SetDirectConnectGatewayId(value); return *this;} /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline const Aws::String& GetDirectConnectGatewayOwnerAccount() const{ return m_directConnectGatewayOwnerAccount; } /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline bool DirectConnectGatewayOwnerAccountHasBeenSet() const { return m_directConnectGatewayOwnerAccountHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline void SetDirectConnectGatewayOwnerAccount(const Aws::String& value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = value; } /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline void SetDirectConnectGatewayOwnerAccount(Aws::String&& value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = std::move(value); } /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline void SetDirectConnectGatewayOwnerAccount(const char* value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount.assign(value); } /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline DirectConnectGatewayAssociation& WithDirectConnectGatewayOwnerAccount(const Aws::String& value) { SetDirectConnectGatewayOwnerAccount(value); return *this;} /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline DirectConnectGatewayAssociation& WithDirectConnectGatewayOwnerAccount(Aws::String&& value) { SetDirectConnectGatewayOwnerAccount(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the associated * gateway.
*/ inline DirectConnectGatewayAssociation& WithDirectConnectGatewayOwnerAccount(const char* value) { SetDirectConnectGatewayOwnerAccount(value); return *this;} /** *The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The state of the association. The following are the possible values:
associating
: The initial state after calling
* CreateDirectConnectGatewayAssociation.
* associated
: The Direct Connect gateway and virtual private gateway
* or transit gateway are successfully associated and ready to pass traffic.
disassociating
: The initial state after calling
* DeleteDirectConnectGatewayAssociation.
* disassociated
: The virtual private gateway or transit gateway is
* disassociated from the Direct Connect gateway. Traffic flow between the Direct
* Connect gateway and virtual private gateway or transit gateway is stopped.
updating
: The CIDR blocks for the virtual private
* gateway or transit gateway are currently being updated. This could be new CIDR
* blocks added or current CIDR blocks removed.
The error message if the state of an object failed to advance.
*/ inline const Aws::String& GetStateChangeError() const{ return m_stateChangeError; } /** *The error message if the state of an object failed to advance.
*/ inline bool StateChangeErrorHasBeenSet() const { return m_stateChangeErrorHasBeenSet; } /** *The error message if the state of an object failed to advance.
*/ inline void SetStateChangeError(const Aws::String& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = value; } /** *The error message if the state of an object failed to advance.
*/ inline void SetStateChangeError(Aws::String&& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = std::move(value); } /** *The error message if the state of an object failed to advance.
*/ inline void SetStateChangeError(const char* value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError.assign(value); } /** *The error message if the state of an object failed to advance.
*/ inline DirectConnectGatewayAssociation& WithStateChangeError(const Aws::String& value) { SetStateChangeError(value); return *this;} /** *The error message if the state of an object failed to advance.
*/ inline DirectConnectGatewayAssociation& WithStateChangeError(Aws::String&& value) { SetStateChangeError(std::move(value)); return *this;} /** *The error message if the state of an object failed to advance.
*/ inline DirectConnectGatewayAssociation& WithStateChangeError(const char* value) { SetStateChangeError(value); return *this;} /** *Information about the associated gateway.
*/ inline const AssociatedGateway& GetAssociatedGateway() const{ return m_associatedGateway; } /** *Information about the associated gateway.
*/ inline bool AssociatedGatewayHasBeenSet() const { return m_associatedGatewayHasBeenSet; } /** *Information about the associated gateway.
*/ inline void SetAssociatedGateway(const AssociatedGateway& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = value; } /** *Information about the associated gateway.
*/ inline void SetAssociatedGateway(AssociatedGateway&& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = std::move(value); } /** *Information about the associated gateway.
*/ inline DirectConnectGatewayAssociation& WithAssociatedGateway(const AssociatedGateway& value) { SetAssociatedGateway(value); return *this;} /** *Information about the associated gateway.
*/ inline DirectConnectGatewayAssociation& WithAssociatedGateway(AssociatedGateway&& value) { SetAssociatedGateway(std::move(value)); return *this;} /** *The ID of the Direct Connect gateway association.
*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *The ID of the Direct Connect gateway association.
*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *The ID of the Direct Connect gateway association.
*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *The ID of the Direct Connect gateway association.
*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *The ID of the Direct Connect gateway association.
*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *The ID of the Direct Connect gateway association.
*/ inline DirectConnectGatewayAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *The ID of the Direct Connect gateway association.
*/ inline DirectConnectGatewayAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *The ID of the Direct Connect gateway association.
*/ inline DirectConnectGatewayAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *The Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline const Aws::VectorThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline bool AllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_allowedPrefixesToDirectConnectGatewayHasBeenSet; } /** *The Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline void SetAllowedPrefixesToDirectConnectGateway(const Aws::VectorThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline void SetAllowedPrefixesToDirectConnectGateway(Aws::VectorThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(const Aws::VectorThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(Aws::VectorThe Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway.push_back(value); return *this; } /** *The Amazon VPC prefixes to advertise to the Direct Connect gateway.
*/ inline DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); } /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayId(const Aws::String& value) { SetVirtualGatewayId(value); return *this;} /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;} /** *The ID of the virtual private gateway. Applies only to private virtual * interfaces.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;} /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline const Aws::String& GetVirtualGatewayRegion() const{ return m_virtualGatewayRegion; } /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline bool VirtualGatewayRegionHasBeenSet() const { return m_virtualGatewayRegionHasBeenSet; } /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline void SetVirtualGatewayRegion(const Aws::String& value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion = value; } /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline void SetVirtualGatewayRegion(Aws::String&& value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion = std::move(value); } /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline void SetVirtualGatewayRegion(const char* value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion.assign(value); } /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayRegion(const Aws::String& value) { SetVirtualGatewayRegion(value); return *this;} /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayRegion(Aws::String&& value) { SetVirtualGatewayRegion(std::move(value)); return *this;} /** *The Amazon Web Services Region where the virtual private gateway is * located.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayRegion(const char* value) { SetVirtualGatewayRegion(value); return *this;} /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline const Aws::String& GetVirtualGatewayOwnerAccount() const{ return m_virtualGatewayOwnerAccount; } /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline bool VirtualGatewayOwnerAccountHasBeenSet() const { return m_virtualGatewayOwnerAccountHasBeenSet; } /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline void SetVirtualGatewayOwnerAccount(const Aws::String& value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount = value; } /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline void SetVirtualGatewayOwnerAccount(Aws::String&& value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount = std::move(value); } /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline void SetVirtualGatewayOwnerAccount(const char* value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount.assign(value); } /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayOwnerAccount(const Aws::String& value) { SetVirtualGatewayOwnerAccount(value); return *this;} /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayOwnerAccount(Aws::String&& value) { SetVirtualGatewayOwnerAccount(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that owns the virtual private * gateway.
*/ inline DirectConnectGatewayAssociation& WithVirtualGatewayOwnerAccount(const char* value) { SetVirtualGatewayOwnerAccount(value); return *this;} private: Aws::String m_directConnectGatewayId; bool m_directConnectGatewayIdHasBeenSet = false; Aws::String m_directConnectGatewayOwnerAccount; bool m_directConnectGatewayOwnerAccountHasBeenSet = false; DirectConnectGatewayAssociationState m_associationState; bool m_associationStateHasBeenSet = false; Aws::String m_stateChangeError; bool m_stateChangeErrorHasBeenSet = false; AssociatedGateway m_associatedGateway; bool m_associatedGatewayHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::Vector