/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { class AWS_DIRECTCONNECT_API ConfirmConnectionResult { public: ConfirmConnectionResult(); ConfirmConnectionResult(const Aws::AmazonWebServiceResult& result); ConfirmConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

    *
  • ordering: The initial state of a hosted connection * provisioned on an interconnect. The connection stays in the ordering state until * the owner of the hosted connection confirms or declines the connection * order.

  • requested: The initial state of a * standard connection. The connection stays in the requested state until the * Letter of Authorization (LOA) is sent to the customer.

  • * pending: The connection has been approved and is being * initialized.

  • available: The network link is up * and the connection is ready for use.

  • down: The * network link is down.

  • deleting: The connection * is being deleted.

  • deleted: The connection has * been deleted.

  • rejected: A hosted connection in * the ordering state enters the rejected state if it is * deleted by the customer.

  • unknown: The state of * the connection is not available.

*/ inline const ConnectionState& GetConnectionState() const{ return m_connectionState; } /** *

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

    *
  • ordering: The initial state of a hosted connection * provisioned on an interconnect. The connection stays in the ordering state until * the owner of the hosted connection confirms or declines the connection * order.

  • requested: The initial state of a * standard connection. The connection stays in the requested state until the * Letter of Authorization (LOA) is sent to the customer.

  • * pending: The connection has been approved and is being * initialized.

  • available: The network link is up * and the connection is ready for use.

  • down: The * network link is down.

  • deleting: The connection * is being deleted.

  • deleted: The connection has * been deleted.

  • rejected: A hosted connection in * the ordering state enters the rejected state if it is * deleted by the customer.

  • unknown: The state of * the connection is not available.

*/ inline void SetConnectionState(const ConnectionState& value) { m_connectionState = value; } /** *

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

    *
  • ordering: The initial state of a hosted connection * provisioned on an interconnect. The connection stays in the ordering state until * the owner of the hosted connection confirms or declines the connection * order.

  • requested: The initial state of a * standard connection. The connection stays in the requested state until the * Letter of Authorization (LOA) is sent to the customer.

  • * pending: The connection has been approved and is being * initialized.

  • available: The network link is up * and the connection is ready for use.

  • down: The * network link is down.

  • deleting: The connection * is being deleted.

  • deleted: The connection has * been deleted.

  • rejected: A hosted connection in * the ordering state enters the rejected state if it is * deleted by the customer.

  • unknown: The state of * the connection is not available.

*/ inline void SetConnectionState(ConnectionState&& value) { m_connectionState = std::move(value); } /** *

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

    *
  • ordering: The initial state of a hosted connection * provisioned on an interconnect. The connection stays in the ordering state until * the owner of the hosted connection confirms or declines the connection * order.

  • requested: The initial state of a * standard connection. The connection stays in the requested state until the * Letter of Authorization (LOA) is sent to the customer.

  • * pending: The connection has been approved and is being * initialized.

  • available: The network link is up * and the connection is ready for use.

  • down: The * network link is down.

  • deleting: The connection * is being deleted.

  • deleted: The connection has * been deleted.

  • rejected: A hosted connection in * the ordering state enters the rejected state if it is * deleted by the customer.

  • unknown: The state of * the connection is not available.

*/ inline ConfirmConnectionResult& WithConnectionState(const ConnectionState& value) { SetConnectionState(value); return *this;} /** *

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

    *
  • ordering: The initial state of a hosted connection * provisioned on an interconnect. The connection stays in the ordering state until * the owner of the hosted connection confirms or declines the connection * order.

  • requested: The initial state of a * standard connection. The connection stays in the requested state until the * Letter of Authorization (LOA) is sent to the customer.

  • * pending: The connection has been approved and is being * initialized.

  • available: The network link is up * and the connection is ready for use.

  • down: The * network link is down.

  • deleting: The connection * is being deleted.

  • deleted: The connection has * been deleted.

  • rejected: A hosted connection in * the ordering state enters the rejected state if it is * deleted by the customer.

  • unknown: The state of * the connection is not available.

*/ inline ConfirmConnectionResult& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;} private: ConnectionState m_connectionState; }; } // namespace Model } // namespace DirectConnect } // namespace Aws