This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-es/include/aws/es/model/OutboundCrossClusterSearchConnectionStatus.h

179 lines
8.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/es/ElasticsearchService_EXPORTS.h>
#include <aws/es/model/OutboundCrossClusterSearchConnectionStatusCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ElasticsearchService
{
namespace Model
{
/**
* <p>Specifies the connection status of an outbound cross-cluster search
* connection.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/OutboundCrossClusterSearchConnectionStatus">AWS
* API Reference</a></p>
*/
class AWS_ELASTICSEARCHSERVICE_API OutboundCrossClusterSearchConnectionStatus
{
public:
OutboundCrossClusterSearchConnectionStatus();
OutboundCrossClusterSearchConnectionStatus(Aws::Utils::Json::JsonView jsonValue);
OutboundCrossClusterSearchConnectionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline const OutboundCrossClusterSearchConnectionStatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline void SetStatusCode(const OutboundCrossClusterSearchConnectionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline void SetStatusCode(OutboundCrossClusterSearchConnectionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline OutboundCrossClusterSearchConnectionStatus& WithStatusCode(const OutboundCrossClusterSearchConnectionStatusCode& value) { SetStatusCode(value); return *this;}
/**
* <p>The state code for outbound connection. This can be one of the following:</p>
* <ul> <li>VALIDATING: The outbound connection request is being validated.</li>
* <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
* <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet
* accepted by destination domain owner.</li> <li>PROVISIONING: Outbound connection
* request is in process.</li> <li>ACTIVE: Outbound connection is active and ready
* to use.</li> <li>REJECTED: Outbound connection request is rejected by
* destination domain owner.</li> <li>DELETING: Outbound connection deletion is in
* progress.</li> <li>DELETED: Outbound connection is deleted and cannot be used
* further.</li> </ul>
*/
inline OutboundCrossClusterSearchConnectionStatus& WithStatusCode(OutboundCrossClusterSearchConnectionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Specifies verbose information for the outbound connection status.</p>
*/
inline OutboundCrossClusterSearchConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
OutboundCrossClusterSearchConnectionStatusCode m_statusCode;
bool m_statusCodeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws