/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 attachment between a Direct Connect gateway and a * virtual interface.

See Also:

AWS * API Reference

*/ class DirectConnectGatewayAttachment { public: AWS_DIRECTCONNECT_API DirectConnectGatewayAttachment(); AWS_DIRECTCONNECT_API DirectConnectGatewayAttachment(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTCONNECT_API DirectConnectGatewayAttachment& 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 DirectConnectGatewayAttachment& WithDirectConnectGatewayId(const Aws::String& value) { SetDirectConnectGatewayId(value); return *this;} /** *

The ID of the Direct Connect gateway.

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

The ID of the Direct Connect gateway.

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

The ID of the virtual interface.

*/ inline const Aws::String& GetVirtualInterfaceId() const{ return m_virtualInterfaceId; } /** *

The ID of the virtual interface.

*/ inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; } /** *

The ID of the virtual interface.

*/ inline void SetVirtualInterfaceId(const Aws::String& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = value; } /** *

The ID of the virtual interface.

*/ inline void SetVirtualInterfaceId(Aws::String&& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = std::move(value); } /** *

The ID of the virtual interface.

*/ inline void SetVirtualInterfaceId(const char* value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId.assign(value); } /** *

The ID of the virtual interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceId(const Aws::String& value) { SetVirtualInterfaceId(value); return *this;} /** *

The ID of the virtual interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceId(Aws::String&& value) { SetVirtualInterfaceId(std::move(value)); return *this;} /** *

The ID of the virtual interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceId(const char* value) { SetVirtualInterfaceId(value); return *this;} /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline const Aws::String& GetVirtualInterfaceRegion() const{ return m_virtualInterfaceRegion; } /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline bool VirtualInterfaceRegionHasBeenSet() const { return m_virtualInterfaceRegionHasBeenSet; } /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline void SetVirtualInterfaceRegion(const Aws::String& value) { m_virtualInterfaceRegionHasBeenSet = true; m_virtualInterfaceRegion = value; } /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline void SetVirtualInterfaceRegion(Aws::String&& value) { m_virtualInterfaceRegionHasBeenSet = true; m_virtualInterfaceRegion = std::move(value); } /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline void SetVirtualInterfaceRegion(const char* value) { m_virtualInterfaceRegionHasBeenSet = true; m_virtualInterfaceRegion.assign(value); } /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceRegion(const Aws::String& value) { SetVirtualInterfaceRegion(value); return *this;} /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceRegion(Aws::String&& value) { SetVirtualInterfaceRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region where the virtual interface is located.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceRegion(const char* value) { SetVirtualInterfaceRegion(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline const Aws::String& GetVirtualInterfaceOwnerAccount() const{ return m_virtualInterfaceOwnerAccount; } /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline bool VirtualInterfaceOwnerAccountHasBeenSet() const { return m_virtualInterfaceOwnerAccountHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline void SetVirtualInterfaceOwnerAccount(const Aws::String& value) { m_virtualInterfaceOwnerAccountHasBeenSet = true; m_virtualInterfaceOwnerAccount = value; } /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline void SetVirtualInterfaceOwnerAccount(Aws::String&& value) { m_virtualInterfaceOwnerAccountHasBeenSet = true; m_virtualInterfaceOwnerAccount = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline void SetVirtualInterfaceOwnerAccount(const char* value) { m_virtualInterfaceOwnerAccountHasBeenSet = true; m_virtualInterfaceOwnerAccount.assign(value); } /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceOwnerAccount(const Aws::String& value) { SetVirtualInterfaceOwnerAccount(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceOwnerAccount(Aws::String&& value) { SetVirtualInterfaceOwnerAccount(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the virtual * interface.

*/ inline DirectConnectGatewayAttachment& WithVirtualInterfaceOwnerAccount(const char* value) { SetVirtualInterfaceOwnerAccount(value); return *this;} /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline const DirectConnectGatewayAttachmentState& GetAttachmentState() const{ return m_attachmentState; } /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline bool AttachmentStateHasBeenSet() const { return m_attachmentStateHasBeenSet; } /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline void SetAttachmentState(const DirectConnectGatewayAttachmentState& value) { m_attachmentStateHasBeenSet = true; m_attachmentState = value; } /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline void SetAttachmentState(DirectConnectGatewayAttachmentState&& value) { m_attachmentStateHasBeenSet = true; m_attachmentState = std::move(value); } /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline DirectConnectGatewayAttachment& WithAttachmentState(const DirectConnectGatewayAttachmentState& value) { SetAttachmentState(value); return *this;} /** *

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

    *
  • attaching: The initial state after a virtual interface is * created using the Direct Connect gateway.

  • * attached: The Direct Connect gateway and virtual interface are * attached and ready to pass traffic.

  • detaching: * The initial state after calling DeleteVirtualInterface.

  • *

    detached: The virtual interface is detached from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual * interface is stopped.

*/ inline DirectConnectGatewayAttachment& WithAttachmentState(DirectConnectGatewayAttachmentState&& value) { SetAttachmentState(std::move(value)); return *this;} /** *

The type of attachment.

*/ inline const DirectConnectGatewayAttachmentType& GetAttachmentType() const{ return m_attachmentType; } /** *

The type of attachment.

*/ inline bool AttachmentTypeHasBeenSet() const { return m_attachmentTypeHasBeenSet; } /** *

The type of attachment.

*/ inline void SetAttachmentType(const DirectConnectGatewayAttachmentType& value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = value; } /** *

The type of attachment.

*/ inline void SetAttachmentType(DirectConnectGatewayAttachmentType&& value) { m_attachmentTypeHasBeenSet = true; m_attachmentType = std::move(value); } /** *

The type of attachment.

*/ inline DirectConnectGatewayAttachment& WithAttachmentType(const DirectConnectGatewayAttachmentType& value) { SetAttachmentType(value); return *this;} /** *

The type of attachment.

*/ inline DirectConnectGatewayAttachment& WithAttachmentType(DirectConnectGatewayAttachmentType&& value) { SetAttachmentType(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 DirectConnectGatewayAttachment& WithStateChangeError(const Aws::String& value) { SetStateChangeError(value); return *this;} /** *

The error message if the state of an object failed to advance.

*/ inline DirectConnectGatewayAttachment& WithStateChangeError(Aws::String&& value) { SetStateChangeError(std::move(value)); return *this;} /** *

The error message if the state of an object failed to advance.

*/ inline DirectConnectGatewayAttachment& WithStateChangeError(const char* value) { SetStateChangeError(value); return *this;} private: Aws::String m_directConnectGatewayId; bool m_directConnectGatewayIdHasBeenSet = false; Aws::String m_virtualInterfaceId; bool m_virtualInterfaceIdHasBeenSet = false; Aws::String m_virtualInterfaceRegion; bool m_virtualInterfaceRegionHasBeenSet = false; Aws::String m_virtualInterfaceOwnerAccount; bool m_virtualInterfaceOwnerAccountHasBeenSet = false; DirectConnectGatewayAttachmentState m_attachmentState; bool m_attachmentStateHasBeenSet = false; DirectConnectGatewayAttachmentType m_attachmentType; bool m_attachmentTypeHasBeenSet = false; Aws::String m_stateChangeError; bool m_stateChangeErrorHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws