219 lines
8.5 KiB
C
219 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/DomainInformation.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/es/model/InboundCrossClusterSearchConnectionStatus.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ElasticsearchService
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies details of an inbound connection.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/InboundCrossClusterSearchConnection">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICSEARCHSERVICE_API InboundCrossClusterSearchConnection
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
InboundCrossClusterSearchConnection();
|
|||
|
|
InboundCrossClusterSearchConnection(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
InboundCrossClusterSearchConnection& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline const DomainInformation& GetSourceDomainInfo() const{ return m_sourceDomainInfo; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SourceDomainInfoHasBeenSet() const { return m_sourceDomainInfoHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceDomainInfo(const DomainInformation& value) { m_sourceDomainInfoHasBeenSet = true; m_sourceDomainInfo = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceDomainInfo(DomainInformation&& value) { m_sourceDomainInfoHasBeenSet = true; m_sourceDomainInfo = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithSourceDomainInfo(const DomainInformation& value) { SetSourceDomainInfo(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the source
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithSourceDomainInfo(DomainInformation&& value) { SetSourceDomainInfo(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline const DomainInformation& GetDestinationDomainInfo() const{ return m_destinationDomainInfo; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DestinationDomainInfoHasBeenSet() const { return m_destinationDomainInfoHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDestinationDomainInfo(const DomainInformation& value) { m_destinationDomainInfoHasBeenSet = true; m_destinationDomainInfo = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDestinationDomainInfo(DomainInformation&& value) { m_destinationDomainInfoHasBeenSet = true; m_destinationDomainInfo = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithDestinationDomainInfo(const DomainInformation& value) { SetDestinationDomainInfo(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>DomainInformation</a></code> for the destination
|
|||
|
|
* Elasticsearch domain.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithDestinationDomainInfo(DomainInformation&& value) { SetDestinationDomainInfo(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCrossClusterSearchConnectionId() const{ return m_crossClusterSearchConnectionId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CrossClusterSearchConnectionIdHasBeenSet() const { return m_crossClusterSearchConnectionIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCrossClusterSearchConnectionId(const Aws::String& value) { m_crossClusterSearchConnectionIdHasBeenSet = true; m_crossClusterSearchConnectionId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCrossClusterSearchConnectionId(Aws::String&& value) { m_crossClusterSearchConnectionIdHasBeenSet = true; m_crossClusterSearchConnectionId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCrossClusterSearchConnectionId(const char* value) { m_crossClusterSearchConnectionIdHasBeenSet = true; m_crossClusterSearchConnectionId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithCrossClusterSearchConnectionId(const Aws::String& value) { SetCrossClusterSearchConnectionId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithCrossClusterSearchConnectionId(Aws::String&& value) { SetCrossClusterSearchConnectionId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the connection id for the inbound cross-cluster search
|
|||
|
|
* connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithCrossClusterSearchConnectionId(const char* value) { SetCrossClusterSearchConnectionId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline const InboundCrossClusterSearchConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetConnectionStatus(const InboundCrossClusterSearchConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetConnectionStatus(InboundCrossClusterSearchConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithConnectionStatus(const InboundCrossClusterSearchConnectionStatus& value) { SetConnectionStatus(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the <code><a>InboundCrossClusterSearchConnectionStatus</a></code>
|
|||
|
|
* for the outbound connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline InboundCrossClusterSearchConnection& WithConnectionStatus(InboundCrossClusterSearchConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
DomainInformation m_sourceDomainInfo;
|
|||
|
|
bool m_sourceDomainInfoHasBeenSet;
|
|||
|
|
|
|||
|
|
DomainInformation m_destinationDomainInfo;
|
|||
|
|
bool m_destinationDomainInfoHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_crossClusterSearchConnectionId;
|
|||
|
|
bool m_crossClusterSearchConnectionIdHasBeenSet;
|
|||
|
|
|
|||
|
|
InboundCrossClusterSearchConnectionStatus m_connectionStatus;
|
|||
|
|
bool m_connectionStatusHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElasticsearchService
|
|||
|
|
} // namespace Aws
|