AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateOutboundConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/ConnectionMode.h>
11#include <aws/opensearch/model/ConnectionProperties.h>
12#include <aws/opensearch/model/DomainInformationContainer.h>
13#include <aws/opensearch/model/OutboundConnectionStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace OpenSearchService {
27namespace Model {
36 public:
37 AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult() = default;
39 AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult& operator=(
41
43
46 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
47 template <typename LocalDomainInfoT = DomainInformationContainer>
48 void SetLocalDomainInfo(LocalDomainInfoT&& value) {
49 m_localDomainInfoHasBeenSet = true;
50 m_localDomainInfo = std::forward<LocalDomainInfoT>(value);
51 }
52 template <typename LocalDomainInfoT = DomainInformationContainer>
54 SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value));
55 return *this;
56 }
58
60
63 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
64 template <typename RemoteDomainInfoT = DomainInformationContainer>
65 void SetRemoteDomainInfo(RemoteDomainInfoT&& value) {
66 m_remoteDomainInfoHasBeenSet = true;
67 m_remoteDomainInfo = std::forward<RemoteDomainInfoT>(value);
68 }
69 template <typename RemoteDomainInfoT = DomainInformationContainer>
71 SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectionAlias() const { return m_connectionAlias; }
81 template <typename ConnectionAliasT = Aws::String>
82 void SetConnectionAlias(ConnectionAliasT&& value) {
83 m_connectionAliasHasBeenSet = true;
84 m_connectionAlias = std::forward<ConnectionAliasT>(value);
85 }
86 template <typename ConnectionAliasT = Aws::String>
88 SetConnectionAlias(std::forward<ConnectionAliasT>(value));
89 return *this;
90 }
92
94
97 inline const OutboundConnectionStatus& GetConnectionStatus() const { return m_connectionStatus; }
98 template <typename ConnectionStatusT = OutboundConnectionStatus>
99 void SetConnectionStatus(ConnectionStatusT&& value) {
100 m_connectionStatusHasBeenSet = true;
101 m_connectionStatus = std::forward<ConnectionStatusT>(value);
102 }
103 template <typename ConnectionStatusT = OutboundConnectionStatus>
105 SetConnectionStatus(std::forward<ConnectionStatusT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
116 template <typename ConnectionIdT = Aws::String>
117 void SetConnectionId(ConnectionIdT&& value) {
118 m_connectionIdHasBeenSet = true;
119 m_connectionId = std::forward<ConnectionIdT>(value);
120 }
121 template <typename ConnectionIdT = Aws::String>
123 SetConnectionId(std::forward<ConnectionIdT>(value));
124 return *this;
125 }
127
129
132 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
134 m_connectionModeHasBeenSet = true;
135 m_connectionMode = value;
136 }
138 SetConnectionMode(value);
139 return *this;
140 }
142
144
147 inline const ConnectionProperties& GetConnectionProperties() const { return m_connectionProperties; }
148 template <typename ConnectionPropertiesT = ConnectionProperties>
149 void SetConnectionProperties(ConnectionPropertiesT&& value) {
150 m_connectionPropertiesHasBeenSet = true;
151 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
152 }
153 template <typename ConnectionPropertiesT = ConnectionProperties>
155 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
177 DomainInformationContainer m_localDomainInfo;
178
179 DomainInformationContainer m_remoteDomainInfo;
180
181 Aws::String m_connectionAlias;
182
183 OutboundConnectionStatus m_connectionStatus;
184
185 Aws::String m_connectionId;
186
187 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
188
189 ConnectionProperties m_connectionProperties;
190
191 Aws::String m_requestId;
192 Aws::Http::HttpResponseCode m_HttpResponseCode;
193 bool m_localDomainInfoHasBeenSet = false;
194 bool m_remoteDomainInfoHasBeenSet = false;
195 bool m_connectionAliasHasBeenSet = false;
196 bool m_connectionStatusHasBeenSet = false;
197 bool m_connectionIdHasBeenSet = false;
198 bool m_connectionModeHasBeenSet = false;
199 bool m_connectionPropertiesHasBeenSet = false;
200 bool m_requestIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace OpenSearchService
205} // namespace Aws
CreateOutboundConnectionResult & WithRequestId(RequestIdT &&value)
CreateOutboundConnectionResult & WithRemoteDomainInfo(RemoteDomainInfoT &&value)
AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult()=default
CreateOutboundConnectionResult & WithConnectionProperties(ConnectionPropertiesT &&value)
CreateOutboundConnectionResult & WithConnectionId(ConnectionIdT &&value)
CreateOutboundConnectionResult & WithLocalDomainInfo(LocalDomainInfoT &&value)
CreateOutboundConnectionResult & WithConnectionMode(ConnectionMode value)
CreateOutboundConnectionResult & WithConnectionStatus(ConnectionStatusT &&value)
CreateOutboundConnectionResult & WithConnectionAlias(ConnectionAliasT &&value)
AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue