AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InboundConnection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/ConnectionMode.h>
10#include <aws/opensearch/model/DomainInformationContainer.h>
11#include <aws/opensearch/model/InboundConnectionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService {
23namespace Model {
24
34 public:
35 AWS_OPENSEARCHSERVICE_API InboundConnection() = default;
36 AWS_OPENSEARCHSERVICE_API InboundConnection(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API InboundConnection& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
45 inline bool LocalDomainInfoHasBeenSet() const { return m_localDomainInfoHasBeenSet; }
46 template <typename LocalDomainInfoT = DomainInformationContainer>
47 void SetLocalDomainInfo(LocalDomainInfoT&& value) {
48 m_localDomainInfoHasBeenSet = true;
49 m_localDomainInfo = std::forward<LocalDomainInfoT>(value);
50 }
51 template <typename LocalDomainInfoT = DomainInformationContainer>
52 InboundConnection& WithLocalDomainInfo(LocalDomainInfoT&& value) {
53 SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value));
54 return *this;
55 }
57
59
62 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
63 inline bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; }
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>
70 InboundConnection& WithRemoteDomainInfo(RemoteDomainInfoT&& value) {
71 SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
81 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
82 template <typename ConnectionIdT = Aws::String>
83 void SetConnectionId(ConnectionIdT&& value) {
84 m_connectionIdHasBeenSet = true;
85 m_connectionId = std::forward<ConnectionIdT>(value);
86 }
87 template <typename ConnectionIdT = Aws::String>
88 InboundConnection& WithConnectionId(ConnectionIdT&& value) {
89 SetConnectionId(std::forward<ConnectionIdT>(value));
90 return *this;
91 }
93
95
98 inline const InboundConnectionStatus& GetConnectionStatus() const { return m_connectionStatus; }
99 inline bool ConnectionStatusHasBeenSet() const { return m_connectionStatusHasBeenSet; }
100 template <typename ConnectionStatusT = InboundConnectionStatus>
101 void SetConnectionStatus(ConnectionStatusT&& value) {
102 m_connectionStatusHasBeenSet = true;
103 m_connectionStatus = std::forward<ConnectionStatusT>(value);
104 }
105 template <typename ConnectionStatusT = InboundConnectionStatus>
106 InboundConnection& WithConnectionStatus(ConnectionStatusT&& value) {
107 SetConnectionStatus(std::forward<ConnectionStatusT>(value));
108 return *this;
109 }
111
113
116 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
117 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
119 m_connectionModeHasBeenSet = true;
120 m_connectionMode = value;
121 }
123 SetConnectionMode(value);
124 return *this;
125 }
127 private:
128 DomainInformationContainer m_localDomainInfo;
129
130 DomainInformationContainer m_remoteDomainInfo;
131
132 Aws::String m_connectionId;
133
134 InboundConnectionStatus m_connectionStatus;
135
136 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
137 bool m_localDomainInfoHasBeenSet = false;
138 bool m_remoteDomainInfoHasBeenSet = false;
139 bool m_connectionIdHasBeenSet = false;
140 bool m_connectionStatusHasBeenSet = false;
141 bool m_connectionModeHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace OpenSearchService
146} // namespace Aws
const DomainInformationContainer & GetLocalDomainInfo() const
InboundConnection & WithConnectionStatus(ConnectionStatusT &&value)
AWS_OPENSEARCHSERVICE_API InboundConnection()=default
void SetRemoteDomainInfo(RemoteDomainInfoT &&value)
AWS_OPENSEARCHSERVICE_API InboundConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API InboundConnection(Aws::Utils::Json::JsonView jsonValue)
void SetLocalDomainInfo(LocalDomainInfoT &&value)
const InboundConnectionStatus & GetConnectionStatus() const
const DomainInformationContainer & GetRemoteDomainInfo() const
InboundConnection & WithRemoteDomainInfo(RemoteDomainInfoT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectionStatus(ConnectionStatusT &&value)
InboundConnection & WithConnectionId(ConnectionIdT &&value)
InboundConnection & WithConnectionMode(ConnectionMode value)
InboundConnection & WithLocalDomainInfo(LocalDomainInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue