AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateOutboundConnectionResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace OpenSearchService
28{
29namespace Model
30{
39 {
40 public:
41 AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionResult() = default;
44
45
47
50 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
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 CreateOutboundConnectionResult& WithLocalDomainInfo(LocalDomainInfoT&& value) { SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value)); return *this;}
56
58
61 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
62 template<typename RemoteDomainInfoT = DomainInformationContainer>
63 void SetRemoteDomainInfo(RemoteDomainInfoT&& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = std::forward<RemoteDomainInfoT>(value); }
64 template<typename RemoteDomainInfoT = DomainInformationContainer>
65 CreateOutboundConnectionResult& WithRemoteDomainInfo(RemoteDomainInfoT&& value) { SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value)); return *this;}
67
69
72 inline const Aws::String& GetConnectionAlias() const { return m_connectionAlias; }
73 template<typename ConnectionAliasT = Aws::String>
74 void SetConnectionAlias(ConnectionAliasT&& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = std::forward<ConnectionAliasT>(value); }
75 template<typename ConnectionAliasT = Aws::String>
76 CreateOutboundConnectionResult& WithConnectionAlias(ConnectionAliasT&& value) { SetConnectionAlias(std::forward<ConnectionAliasT>(value)); return *this;}
78
80
83 inline const OutboundConnectionStatus& GetConnectionStatus() const { return m_connectionStatus; }
84 template<typename ConnectionStatusT = OutboundConnectionStatus>
85 void SetConnectionStatus(ConnectionStatusT&& value) { m_connectionStatusHasBeenSet = true; m_connectionStatus = std::forward<ConnectionStatusT>(value); }
86 template<typename ConnectionStatusT = OutboundConnectionStatus>
87 CreateOutboundConnectionResult& WithConnectionStatus(ConnectionStatusT&& value) { SetConnectionStatus(std::forward<ConnectionStatusT>(value)); return *this;}
89
91
95 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
96 template<typename ConnectionIdT = Aws::String>
97 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
98 template<typename ConnectionIdT = Aws::String>
99 CreateOutboundConnectionResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
101
103
106 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
107 inline void SetConnectionMode(ConnectionMode value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
110
112
115 inline const ConnectionProperties& GetConnectionProperties() const { return m_connectionProperties; }
116 template<typename ConnectionPropertiesT = ConnectionProperties>
117 void SetConnectionProperties(ConnectionPropertiesT&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::forward<ConnectionPropertiesT>(value); }
118 template<typename ConnectionPropertiesT = ConnectionProperties>
119 CreateOutboundConnectionResult& WithConnectionProperties(ConnectionPropertiesT&& value) { SetConnectionProperties(std::forward<ConnectionPropertiesT>(value)); return *this;}
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template<typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
127 template<typename RequestIdT = Aws::String>
128 CreateOutboundConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
130 private:
131
132 DomainInformationContainer m_localDomainInfo;
133 bool m_localDomainInfoHasBeenSet = false;
134
135 DomainInformationContainer m_remoteDomainInfo;
136 bool m_remoteDomainInfoHasBeenSet = false;
137
138 Aws::String m_connectionAlias;
139 bool m_connectionAliasHasBeenSet = false;
140
141 OutboundConnectionStatus m_connectionStatus;
142 bool m_connectionStatusHasBeenSet = false;
143
144 Aws::String m_connectionId;
145 bool m_connectionIdHasBeenSet = false;
146
147 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
148 bool m_connectionModeHasBeenSet = false;
149
150 ConnectionProperties m_connectionProperties;
151 bool m_connectionPropertiesHasBeenSet = false;
152
153 Aws::String m_requestId;
154 bool m_requestIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace OpenSearchService
159} // 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