AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OutboundConnection.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/DomainInformationContainer.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/OutboundConnectionStatus.h>
11#include <aws/opensearch/model/ConnectionMode.h>
12#include <aws/opensearch/model/ConnectionProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API OutboundConnection() = default;
40 AWS_OPENSEARCHSERVICE_API OutboundConnection(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API OutboundConnection& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
50 inline bool LocalDomainInfoHasBeenSet() const { return m_localDomainInfoHasBeenSet; }
51 template<typename LocalDomainInfoT = DomainInformationContainer>
52 void SetLocalDomainInfo(LocalDomainInfoT&& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = std::forward<LocalDomainInfoT>(value); }
53 template<typename LocalDomainInfoT = DomainInformationContainer>
54 OutboundConnection& WithLocalDomainInfo(LocalDomainInfoT&& value) { SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value)); return *this;}
56
58
61 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
62 inline bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; }
63 template<typename RemoteDomainInfoT = DomainInformationContainer>
64 void SetRemoteDomainInfo(RemoteDomainInfoT&& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = std::forward<RemoteDomainInfoT>(value); }
65 template<typename RemoteDomainInfoT = DomainInformationContainer>
66 OutboundConnection& WithRemoteDomainInfo(RemoteDomainInfoT&& value) { SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value)); return *this;}
68
70
73 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
74 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
75 template<typename ConnectionIdT = Aws::String>
76 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
77 template<typename ConnectionIdT = Aws::String>
78 OutboundConnection& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetConnectionAlias() const { return m_connectionAlias; }
86 inline bool ConnectionAliasHasBeenSet() const { return m_connectionAliasHasBeenSet; }
87 template<typename ConnectionAliasT = Aws::String>
88 void SetConnectionAlias(ConnectionAliasT&& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = std::forward<ConnectionAliasT>(value); }
89 template<typename ConnectionAliasT = Aws::String>
90 OutboundConnection& WithConnectionAlias(ConnectionAliasT&& value) { SetConnectionAlias(std::forward<ConnectionAliasT>(value)); return *this;}
92
94
97 inline const OutboundConnectionStatus& GetConnectionStatus() const { return m_connectionStatus; }
98 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
99 template<typename ConnectionStatusT = OutboundConnectionStatus>
100 void SetConnectionStatus(ConnectionStatusT&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::forward<ConnectionStatusT>(value); }
101 template<typename ConnectionStatusT = OutboundConnectionStatus>
102 OutboundConnection& WithConnectionStatus(ConnectionStatusT&& value) { SetConnectionStatus(std::forward<ConnectionStatusT>(value)); return *this;}
104
106
109 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
110 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
111 inline void SetConnectionMode(ConnectionMode value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
114
116
119 inline const ConnectionProperties& GetConnectionProperties() const { return m_connectionProperties; }
120 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
121 template<typename ConnectionPropertiesT = ConnectionProperties>
122 void SetConnectionProperties(ConnectionPropertiesT&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::forward<ConnectionPropertiesT>(value); }
123 template<typename ConnectionPropertiesT = ConnectionProperties>
124 OutboundConnection& WithConnectionProperties(ConnectionPropertiesT&& value) { SetConnectionProperties(std::forward<ConnectionPropertiesT>(value)); return *this;}
126 private:
127
128 DomainInformationContainer m_localDomainInfo;
129 bool m_localDomainInfoHasBeenSet = false;
130
131 DomainInformationContainer m_remoteDomainInfo;
132 bool m_remoteDomainInfoHasBeenSet = false;
133
134 Aws::String m_connectionId;
135 bool m_connectionIdHasBeenSet = false;
136
137 Aws::String m_connectionAlias;
138 bool m_connectionAliasHasBeenSet = false;
139
140 OutboundConnectionStatus m_connectionStatus;
141 bool m_connectionStatusHasBeenSet = false;
142
143 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
144 bool m_connectionModeHasBeenSet = false;
145
146 ConnectionProperties m_connectionProperties;
147 bool m_connectionPropertiesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace OpenSearchService
152} // namespace Aws
const OutboundConnectionStatus & GetConnectionStatus() const
AWS_OPENSEARCHSERVICE_API OutboundConnection()=default
const DomainInformationContainer & GetRemoteDomainInfo() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API OutboundConnection(Aws::Utils::Json::JsonView jsonValue)
const DomainInformationContainer & GetLocalDomainInfo() const
OutboundConnection & WithConnectionAlias(ConnectionAliasT &&value)
OutboundConnection & WithConnectionStatus(ConnectionStatusT &&value)
OutboundConnection & WithConnectionId(ConnectionIdT &&value)
AWS_OPENSEARCHSERVICE_API OutboundConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConnectionProperties & GetConnectionProperties() const
void SetConnectionProperties(ConnectionPropertiesT &&value)
OutboundConnection & WithRemoteDomainInfo(RemoteDomainInfoT &&value)
OutboundConnection & WithConnectionMode(ConnectionMode value)
void SetRemoteDomainInfo(RemoteDomainInfoT &&value)
OutboundConnection & WithLocalDomainInfo(LocalDomainInfoT &&value)
OutboundConnection & WithConnectionProperties(ConnectionPropertiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue