/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

The status of an inbound cross-cluster connection for OpenSearch * Service.

See Also:

AWS * API Reference

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

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline const InboundConnectionStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline void SetStatusCode(const InboundConnectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline void SetStatusCode(InboundConnectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline InboundConnectionStatus& WithStatusCode(const InboundConnectionStatusCode& value) { SetStatusCode(value); return *this;} /** *

The status code for the connection. Can be one of the following:

    *
  • PENDING_ACCEPTANCE - Inbound connection is not yet accepted by * the remote domain owner.

  • APPROVED: Inbound connection * is pending acceptance by the remote domain owner.

  • * PROVISIONING: Inbound connection is being provisioned.

  • * ACTIVE: Inbound connection is active and ready to use.

  • * REJECTING: Inbound connection rejection is in process.

  • * REJECTED: Inbound connection is rejected.

  • * DELETING: Inbound connection deletion is in progress.

  • * DELETED: Inbound connection is deleted and can no longer be used.

    *
*/ inline InboundConnectionStatus& WithStatusCode(InboundConnectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} /** *

Information about the connection.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Information about the connection.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Information about the connection.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Information about the connection.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Information about the connection.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Information about the connection.

*/ inline InboundConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Information about the connection.

*/ inline InboundConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Information about the connection.

*/ inline InboundConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;} private: InboundConnectionStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws