/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

The result of a CreateOutboundConnection request. Contains * details about the newly created cross-cluster connection.

See * Also:

AWS * API Reference

*/ class CreateOutboundConnectionResult { public: AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult(); AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the source (local) domain.

*/ inline const DomainInformationContainer& GetLocalDomainInfo() const{ return m_localDomainInfo; } /** *

Information about the source (local) domain.

*/ inline void SetLocalDomainInfo(const DomainInformationContainer& value) { m_localDomainInfo = value; } /** *

Information about the source (local) domain.

*/ inline void SetLocalDomainInfo(DomainInformationContainer&& value) { m_localDomainInfo = std::move(value); } /** *

Information about the source (local) domain.

*/ inline CreateOutboundConnectionResult& WithLocalDomainInfo(const DomainInformationContainer& value) { SetLocalDomainInfo(value); return *this;} /** *

Information about the source (local) domain.

*/ inline CreateOutboundConnectionResult& WithLocalDomainInfo(DomainInformationContainer&& value) { SetLocalDomainInfo(std::move(value)); return *this;} /** *

Information about the destination (remote) domain.

*/ inline const DomainInformationContainer& GetRemoteDomainInfo() const{ return m_remoteDomainInfo; } /** *

Information about the destination (remote) domain.

*/ inline void SetRemoteDomainInfo(const DomainInformationContainer& value) { m_remoteDomainInfo = value; } /** *

Information about the destination (remote) domain.

*/ inline void SetRemoteDomainInfo(DomainInformationContainer&& value) { m_remoteDomainInfo = std::move(value); } /** *

Information about the destination (remote) domain.

*/ inline CreateOutboundConnectionResult& WithRemoteDomainInfo(const DomainInformationContainer& value) { SetRemoteDomainInfo(value); return *this;} /** *

Information about the destination (remote) domain.

*/ inline CreateOutboundConnectionResult& WithRemoteDomainInfo(DomainInformationContainer&& value) { SetRemoteDomainInfo(std::move(value)); return *this;} /** *

Name of the connection.

*/ inline const Aws::String& GetConnectionAlias() const{ return m_connectionAlias; } /** *

Name of the connection.

*/ inline void SetConnectionAlias(const Aws::String& value) { m_connectionAlias = value; } /** *

Name of the connection.

*/ inline void SetConnectionAlias(Aws::String&& value) { m_connectionAlias = std::move(value); } /** *

Name of the connection.

*/ inline void SetConnectionAlias(const char* value) { m_connectionAlias.assign(value); } /** *

Name of the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionAlias(const Aws::String& value) { SetConnectionAlias(value); return *this;} /** *

Name of the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionAlias(Aws::String&& value) { SetConnectionAlias(std::move(value)); return *this;} /** *

Name of the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionAlias(const char* value) { SetConnectionAlias(value); return *this;} /** *

The status of the connection.

*/ inline const OutboundConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; } /** *

The status of the connection.

*/ inline void SetConnectionStatus(const OutboundConnectionStatus& value) { m_connectionStatus = value; } /** *

The status of the connection.

*/ inline void SetConnectionStatus(OutboundConnectionStatus&& value) { m_connectionStatus = std::move(value); } /** *

The status of the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionStatus(const OutboundConnectionStatus& value) { SetConnectionStatus(value); return *this;} /** *

The status of the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionStatus(OutboundConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;} /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline void SetConnectionId(const Aws::String& value) { m_connectionId = value; } /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline void SetConnectionId(Aws::String&& value) { m_connectionId = std::move(value); } /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline void SetConnectionId(const char* value) { m_connectionId.assign(value); } /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *

The unique identifier for the created outbound connection, which is used for * subsequent operations on the connection.

*/ inline CreateOutboundConnectionResult& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *

The connection mode.

*/ inline const ConnectionMode& GetConnectionMode() const{ return m_connectionMode; } /** *

The connection mode.

*/ inline void SetConnectionMode(const ConnectionMode& value) { m_connectionMode = value; } /** *

The connection mode.

*/ inline void SetConnectionMode(ConnectionMode&& value) { m_connectionMode = std::move(value); } /** *

The connection mode.

*/ inline CreateOutboundConnectionResult& WithConnectionMode(const ConnectionMode& value) { SetConnectionMode(value); return *this;} /** *

The connection mode.

*/ inline CreateOutboundConnectionResult& WithConnectionMode(ConnectionMode&& value) { SetConnectionMode(std::move(value)); return *this;} /** *

The ConnectionProperties for the newly created connection.

*/ inline const ConnectionProperties& GetConnectionProperties() const{ return m_connectionProperties; } /** *

The ConnectionProperties for the newly created connection.

*/ inline void SetConnectionProperties(const ConnectionProperties& value) { m_connectionProperties = value; } /** *

The ConnectionProperties for the newly created connection.

*/ inline void SetConnectionProperties(ConnectionProperties&& value) { m_connectionProperties = std::move(value); } /** *

The ConnectionProperties for the newly created connection.

*/ inline CreateOutboundConnectionResult& WithConnectionProperties(const ConnectionProperties& value) { SetConnectionProperties(value); return *this;} /** *

The ConnectionProperties for the newly created connection.

*/ inline CreateOutboundConnectionResult& WithConnectionProperties(ConnectionProperties&& value) { SetConnectionProperties(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateOutboundConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateOutboundConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateOutboundConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DomainInformationContainer m_localDomainInfo; DomainInformationContainer m_remoteDomainInfo; Aws::String m_connectionAlias; OutboundConnectionStatus m_connectionStatus; Aws::String m_connectionId; ConnectionMode m_connectionMode; ConnectionProperties m_connectionProperties; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws