/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies details about an outbound cross-cluster connection.See
* Also:
AWS
* API Reference
Information about the source (local) domain.
*/ inline const DomainInformationContainer& GetLocalDomainInfo() const{ return m_localDomainInfo; } /** *Information about the source (local) domain.
*/ inline bool LocalDomainInfoHasBeenSet() const { return m_localDomainInfoHasBeenSet; } /** *Information about the source (local) domain.
*/ inline void SetLocalDomainInfo(const DomainInformationContainer& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = value; } /** *Information about the source (local) domain.
*/ inline void SetLocalDomainInfo(DomainInformationContainer&& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = std::move(value); } /** *Information about the source (local) domain.
*/ inline OutboundConnection& WithLocalDomainInfo(const DomainInformationContainer& value) { SetLocalDomainInfo(value); return *this;} /** *Information about the source (local) domain.
*/ inline OutboundConnection& 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 bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; } /** *Information about the destination (remote) domain.
*/ inline void SetRemoteDomainInfo(const DomainInformationContainer& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = value; } /** *Information about the destination (remote) domain.
*/ inline void SetRemoteDomainInfo(DomainInformationContainer&& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = std::move(value); } /** *Information about the destination (remote) domain.
*/ inline OutboundConnection& WithRemoteDomainInfo(const DomainInformationContainer& value) { SetRemoteDomainInfo(value); return *this;} /** *Information about the destination (remote) domain.
*/ inline OutboundConnection& WithRemoteDomainInfo(DomainInformationContainer&& value) { SetRemoteDomainInfo(std::move(value)); return *this;} /** *Unique identifier of the connection.
*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *Unique identifier of the connection.
*/ inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; } /** *Unique identifier of the connection.
*/ inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; } /** *Unique identifier of the connection.
*/ inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); } /** *Unique identifier of the connection.
*/ inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); } /** *Unique identifier of the connection.
*/ inline OutboundConnection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;} /** *Unique identifier of the connection.
*/ inline OutboundConnection& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;} /** *Unique identifier of the connection.
*/ inline OutboundConnection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *Name of the connection.
*/ inline const Aws::String& GetConnectionAlias() const{ return m_connectionAlias; } /** *Name of the connection.
*/ inline bool ConnectionAliasHasBeenSet() const { return m_connectionAliasHasBeenSet; } /** *Name of the connection.
*/ inline void SetConnectionAlias(const Aws::String& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = value; } /** *Name of the connection.
*/ inline void SetConnectionAlias(Aws::String&& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = std::move(value); } /** *Name of the connection.
*/ inline void SetConnectionAlias(const char* value) { m_connectionAliasHasBeenSet = true; m_connectionAlias.assign(value); } /** *Name of the connection.
*/ inline OutboundConnection& WithConnectionAlias(const Aws::String& value) { SetConnectionAlias(value); return *this;} /** *Name of the connection.
*/ inline OutboundConnection& WithConnectionAlias(Aws::String&& value) { SetConnectionAlias(std::move(value)); return *this;} /** *Name of the connection.
*/ inline OutboundConnection& WithConnectionAlias(const char* value) { SetConnectionAlias(value); return *this;} /** *Status of the connection.
*/ inline const OutboundConnectionStatus& GetConnectionStatus() const{ return m_connectionStatus; } /** *Status of the connection.
*/ inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; } /** *Status of the connection.
*/ inline void SetConnectionStatus(const OutboundConnectionStatus& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = value; } /** *Status of the connection.
*/ inline void SetConnectionStatus(OutboundConnectionStatus&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::move(value); } /** *Status of the connection.
*/ inline OutboundConnection& WithConnectionStatus(const OutboundConnectionStatus& value) { SetConnectionStatus(value); return *this;} /** *Status of the connection.
*/ inline OutboundConnection& WithConnectionStatus(OutboundConnectionStatus&& value) { SetConnectionStatus(std::move(value)); return *this;} /** *The connection mode.
*/ inline const ConnectionMode& GetConnectionMode() const{ return m_connectionMode; } /** *The connection mode.
*/ inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; } /** *The connection mode.
*/ inline void SetConnectionMode(const ConnectionMode& value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; } /** *The connection mode.
*/ inline void SetConnectionMode(ConnectionMode&& value) { m_connectionModeHasBeenSet = true; m_connectionMode = std::move(value); } /** *The connection mode.
*/ inline OutboundConnection& WithConnectionMode(const ConnectionMode& value) { SetConnectionMode(value); return *this;} /** *The connection mode.
*/ inline OutboundConnection& WithConnectionMode(ConnectionMode&& value) { SetConnectionMode(std::move(value)); return *this;} /** *Properties for the outbound connection.
*/ inline const ConnectionProperties& GetConnectionProperties() const{ return m_connectionProperties; } /** *Properties for the outbound connection.
*/ inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; } /** *Properties for the outbound connection.
*/ inline void SetConnectionProperties(const ConnectionProperties& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = value; } /** *Properties for the outbound connection.
*/ inline void SetConnectionProperties(ConnectionProperties&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::move(value); } /** *Properties for the outbound connection.
*/ inline OutboundConnection& WithConnectionProperties(const ConnectionProperties& value) { SetConnectionProperties(value); return *this;} /** *Properties for the outbound connection.
*/ inline OutboundConnection& WithConnectionProperties(ConnectionProperties&& value) { SetConnectionProperties(std::move(value)); return *this;} private: DomainInformationContainer m_localDomainInfo; bool m_localDomainInfoHasBeenSet = false; DomainInformationContainer m_remoteDomainInfo; bool m_remoteDomainInfoHasBeenSet = false; Aws::String m_connectionId; bool m_connectionIdHasBeenSet = false; Aws::String m_connectionAlias; bool m_connectionAliasHasBeenSet = false; OutboundConnectionStatus m_connectionStatus; bool m_connectionStatusHasBeenSet = false; ConnectionMode m_connectionMode; bool m_connectionModeHasBeenSet = false; ConnectionProperties m_connectionProperties; bool m_connectionPropertiesHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws