/**
* 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 coonection status of an inbound cross-cluster search
* connection.
See Also:
AWS
* API Reference
*/
class InboundCrossClusterSearchConnectionStatus
{
public:
AWS_ELASTICSEARCHSERVICE_API InboundCrossClusterSearchConnectionStatus();
AWS_ELASTICSEARCHSERVICE_API InboundCrossClusterSearchConnectionStatus(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API InboundCrossClusterSearchConnectionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline const InboundCrossClusterSearchConnectionStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline void SetStatusCode(const InboundCrossClusterSearchConnectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline void SetStatusCode(InboundCrossClusterSearchConnectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline InboundCrossClusterSearchConnectionStatus& WithStatusCode(const InboundCrossClusterSearchConnectionStatusCode& value) { SetStatusCode(value); return *this;}
/**
* The state code for inbound connection. This can be one of the following:
* - PENDING_ACCEPTANCE: Inbound connection is not yet accepted by
* destination domain owner.
- APPROVED: Inbound connection is pending
* acceptance by destination domain owner.
- 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 cannot be used further.
*/
inline InboundCrossClusterSearchConnectionStatus& WithStatusCode(InboundCrossClusterSearchConnectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* Specifies verbose information for the inbound connection status.
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* Specifies verbose information for the inbound connection status.
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* Specifies verbose information for the inbound connection status.
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* Specifies verbose information for the inbound connection status.
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* Specifies verbose information for the inbound connection status.
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* Specifies verbose information for the inbound connection status.
*/
inline InboundCrossClusterSearchConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* Specifies verbose information for the inbound connection status.
*/
inline InboundCrossClusterSearchConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* Specifies verbose information for the inbound connection status.
*/
inline InboundCrossClusterSearchConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
InboundCrossClusterSearchConnectionStatusCode m_statusCode;
bool m_statusCodeHasBeenSet = false;
Aws::String m_message;
bool m_messageHasBeenSet = false;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws