/** * 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 the proposal request to attach a virtual private gateway to * a Direct Connect gateway.

See Also:

AWS * API Reference

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

The ID of the association proposal.

*/ inline const Aws::String& GetProposalId() const{ return m_proposalId; } /** *

The ID of the association proposal.

*/ inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; } /** *

The ID of the association proposal.

*/ inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; } /** *

The ID of the association proposal.

*/ inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); } /** *

The ID of the association proposal.

*/ inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); } /** *

The ID of the association proposal.

*/ inline DirectConnectGatewayAssociationProposal& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;} /** *

The ID of the association proposal.

*/ inline DirectConnectGatewayAssociationProposal& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;} /** *

The ID of the association proposal.

*/ inline DirectConnectGatewayAssociationProposal& WithProposalId(const char* value) { SetProposalId(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 DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayId(const Aws::String& value) { SetDirectConnectGatewayId(value); return *this;} /** *

The ID of the Direct Connect gateway.

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

The ID of the Direct Connect gateway.

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

The ID of the Amazon Web Services account that owns the Direct Connect * gateway.

*/ inline const Aws::String& GetDirectConnectGatewayOwnerAccount() const{ return m_directConnectGatewayOwnerAccount; } /** *

The ID of the Amazon Web Services account that owns the Direct Connect * gateway.

*/ inline bool DirectConnectGatewayOwnerAccountHasBeenSet() const { return m_directConnectGatewayOwnerAccountHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the Direct Connect * 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 Direct Connect * 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 Direct Connect * 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 Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayOwnerAccount(const Aws::String& value) { SetDirectConnectGatewayOwnerAccount(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayOwnerAccount(Aws::String&& value) { SetDirectConnectGatewayOwnerAccount(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayOwnerAccount(const char* value) { SetDirectConnectGatewayOwnerAccount(value); return *this;} /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline const DirectConnectGatewayAssociationProposalState& GetProposalState() const{ return m_proposalState; } /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline bool ProposalStateHasBeenSet() const { return m_proposalStateHasBeenSet; } /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline void SetProposalState(const DirectConnectGatewayAssociationProposalState& value) { m_proposalStateHasBeenSet = true; m_proposalState = value; } /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline void SetProposalState(DirectConnectGatewayAssociationProposalState&& value) { m_proposalStateHasBeenSet = true; m_proposalState = std::move(value); } /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline DirectConnectGatewayAssociationProposal& WithProposalState(const DirectConnectGatewayAssociationProposalState& value) { SetProposalState(value); return *this;} /** *

The state of the proposal. The following are possible values:

  • *

    accepted: The proposal has been accepted. The Direct Connect * gateway association is available to use in this state.

  • * deleted: The proposal has been deleted by the owner that made the * proposal. The Direct Connect gateway association cannot be used in this * state.

  • requested: The proposal has been * requested. The Direct Connect gateway association cannot be used in this * state.

*/ inline DirectConnectGatewayAssociationProposal& WithProposalState(DirectConnectGatewayAssociationProposalState&& value) { SetProposalState(std::move(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 DirectConnectGatewayAssociationProposal& WithAssociatedGateway(const AssociatedGateway& value) { SetAssociatedGateway(value); return *this;} /** *

Information about the associated gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithAssociatedGateway(AssociatedGateway&& value) { SetAssociatedGateway(std::move(value)); return *this;} /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline const Aws::Vector& GetExistingAllowedPrefixesToDirectConnectGateway() const{ return m_existingAllowedPrefixesToDirectConnectGateway; } /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline bool ExistingAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet; } /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline void SetExistingAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway = value; } /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline void SetExistingAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway = std::move(value); } /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithExistingAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { SetExistingAllowedPrefixesToDirectConnectGateway(value); return *this;} /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& WithExistingAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { SetExistingAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;} /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& AddExistingAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; } /** *

The existing Amazon VPC prefixes advertised to the Direct Connect * gateway.

*/ inline DirectConnectGatewayAssociationProposal& AddExistingAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; } /** *

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

*/ inline const Aws::Vector& GetRequestedAllowedPrefixesToDirectConnectGateway() const{ return m_requestedAllowedPrefixesToDirectConnectGateway; } /** *

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

*/ inline bool RequestedAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet; } /** *

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

*/ inline void SetRequestedAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway = value; } /** *

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

*/ inline void SetRequestedAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway = std::move(value); } /** *

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

*/ inline DirectConnectGatewayAssociationProposal& WithRequestedAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { SetRequestedAllowedPrefixesToDirectConnectGateway(value); return *this;} /** *

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

*/ inline DirectConnectGatewayAssociationProposal& WithRequestedAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { SetRequestedAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;} /** *

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

*/ inline DirectConnectGatewayAssociationProposal& AddRequestedAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; } /** *

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

*/ inline DirectConnectGatewayAssociationProposal& AddRequestedAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; } private: Aws::String m_proposalId; bool m_proposalIdHasBeenSet = false; Aws::String m_directConnectGatewayId; bool m_directConnectGatewayIdHasBeenSet = false; Aws::String m_directConnectGatewayOwnerAccount; bool m_directConnectGatewayOwnerAccountHasBeenSet = false; DirectConnectGatewayAssociationProposalState m_proposalState; bool m_proposalStateHasBeenSet = false; AssociatedGateway m_associatedGateway; bool m_associatedGatewayHasBeenSet = false; Aws::Vector m_existingAllowedPrefixesToDirectConnectGateway; bool m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = false; Aws::Vector m_requestedAllowedPrefixesToDirectConnectGateway; bool m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws