/**
* 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 ElasticsearchService
{
namespace Model
{
/**
* Specifies the connection status of an outbound cross-cluster search
* connection.
See Also:
AWS
* API Reference
*/
class OutboundCrossClusterSearchConnectionStatus
{
public:
AWS_ELASTICSEARCHSERVICE_API OutboundCrossClusterSearchConnectionStatus();
AWS_ELASTICSEARCHSERVICE_API OutboundCrossClusterSearchConnectionStatus(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API OutboundCrossClusterSearchConnectionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline const OutboundCrossClusterSearchConnectionStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline void SetStatusCode(const OutboundCrossClusterSearchConnectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline void SetStatusCode(OutboundCrossClusterSearchConnectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline OutboundCrossClusterSearchConnectionStatus& WithStatusCode(const OutboundCrossClusterSearchConnectionStatusCode& value) { SetStatusCode(value); return *this;}
/**
* The state code for outbound connection. This 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 destination domain owner.
- PROVISIONING: Outbound connection
* request is in process.
- ACTIVE: Outbound connection is active and ready
* to use.
- REJECTED: Outbound connection request is rejected by
* destination domain owner.
- DELETING: Outbound connection deletion is in
* progress.
- DELETED: Outbound connection is deleted and cannot be used
* further.
*/
inline OutboundCrossClusterSearchConnectionStatus& WithStatusCode(OutboundCrossClusterSearchConnectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* Specifies verbose information for the outbound connection status.
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* Specifies verbose information for the outbound connection status.
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* Specifies verbose information for the outbound connection status.
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* Specifies verbose information for the outbound connection status.
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* Specifies verbose information for the outbound connection status.
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* Specifies verbose information for the outbound connection status.
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* Specifies verbose information for the outbound connection status.
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* Specifies verbose information for the outbound connection status.
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
OutboundCrossClusterSearchConnectionStatusCode m_statusCode;
bool m_statusCodeHasBeenSet = false;
Aws::String m_message;
bool m_messageHasBeenSet = false;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws