/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about an association between a Direct Connect gateway and a * virtual private gateway or transit gateway.

See Also:

AWS * API Reference

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

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.

*/ inline const DirectConnectGatewayAssociationState& GetAssociationState() const{ return m_associationState; } /** *

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.

*/ inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; } /** *

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.

*/ inline void SetAssociationState(const DirectConnectGatewayAssociationState& value) { m_associationStateHasBeenSet = true; m_associationState = value; } /** *

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.

*/ inline void SetAssociationState(DirectConnectGatewayAssociationState&& value) { m_associationStateHasBeenSet = true; m_associationState = std::move(value); } /** *

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.

*/ inline DirectConnectGatewayAssociation& WithAssociationState(const DirectConnectGatewayAssociationState& value) { SetAssociationState(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.

*/ inline DirectConnectGatewayAssociation& WithAssociationState(DirectConnectGatewayAssociationState&& value) { SetAssociationState(std::move(value)); return *this;} /** *

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::Vector& GetAllowedPrefixesToDirectConnectGateway() const{ return m_allowedPrefixesToDirectConnectGateway; } /** *

The 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::Vector& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway = value; } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline void SetAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway = std::move(value); } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { SetAllowedPrefixesToDirectConnectGateway(value); return *this;} /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { SetAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;} /** *

The 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 m_allowedPrefixesToDirectConnectGateway; bool m_allowedPrefixesToDirectConnectGatewayHasBeenSet = false; Aws::String m_virtualGatewayId; bool m_virtualGatewayIdHasBeenSet = false; Aws::String m_virtualGatewayRegion; bool m_virtualGatewayRegionHasBeenSet = false; Aws::String m_virtualGatewayOwnerAccount; bool m_virtualGatewayOwnerAccountHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws