/** * 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 outbound cross-cluster connection.

See Also:

* AWS * API Reference

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

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

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

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

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

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

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

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

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

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

*/ inline OutboundConnectionStatus& WithStatusCode(const OutboundConnectionStatusCode& value) { SetStatusCode(value); return *this;} /** *

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

*
  • VALIDATING - The outbound connection request is being * validated.

  • VALIDATION_FAILED - Validation failed for * the connection request.

  • PENDING_ACCEPTANCE: Outbound * connection request is validated and is not yet accepted by the remote domain * owner.

  • APPROVED - Outbound connection has been * approved by the remote domain owner for getting provisioned.

  • * PROVISIONING - Outbound connection request is in process.

  • *

    ACTIVE - Outbound connection is active and ready to use.

  • *
  • REJECTING - Outbound connection rejection by remote domain owner * is in progress.

  • REJECTED - Outbound connection request * is rejected by remote domain owner.

  • DELETING - * Outbound connection deletion is in progress.

  • DELETED - * Outbound connection is deleted and can no longer be used.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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

Verbose information for the outbound connection.

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