AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateOutboundConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.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
14#include <utility>
15
16namespace Aws {
17namespace OpenSearchService {
18namespace Model {
19
27 public:
28 AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateOutboundConnection"; }
35
36 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
37
39
42 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
43 inline bool LocalDomainInfoHasBeenSet() const { return m_localDomainInfoHasBeenSet; }
44 template <typename LocalDomainInfoT = DomainInformationContainer>
45 void SetLocalDomainInfo(LocalDomainInfoT&& value) {
46 m_localDomainInfoHasBeenSet = true;
47 m_localDomainInfo = std::forward<LocalDomainInfoT>(value);
48 }
49 template <typename LocalDomainInfoT = DomainInformationContainer>
51 SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value));
52 return *this;
53 }
55
57
60 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
61 inline bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; }
62 template <typename RemoteDomainInfoT = DomainInformationContainer>
63 void SetRemoteDomainInfo(RemoteDomainInfoT&& value) {
64 m_remoteDomainInfoHasBeenSet = true;
65 m_remoteDomainInfo = std::forward<RemoteDomainInfoT>(value);
66 }
67 template <typename RemoteDomainInfoT = DomainInformationContainer>
69 SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConnectionAlias() const { return m_connectionAlias; }
79 inline bool ConnectionAliasHasBeenSet() const { return m_connectionAliasHasBeenSet; }
80 template <typename ConnectionAliasT = Aws::String>
81 void SetConnectionAlias(ConnectionAliasT&& value) {
82 m_connectionAliasHasBeenSet = true;
83 m_connectionAlias = std::forward<ConnectionAliasT>(value);
84 }
85 template <typename ConnectionAliasT = Aws::String>
87 SetConnectionAlias(std::forward<ConnectionAliasT>(value));
88 return *this;
89 }
91
93
96 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
97 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
98 inline void SetConnectionMode(ConnectionMode value) {
99 m_connectionModeHasBeenSet = true;
100 m_connectionMode = value;
101 }
103 SetConnectionMode(value);
104 return *this;
105 }
107
109
112 inline const ConnectionProperties& GetConnectionProperties() const { return m_connectionProperties; }
113 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
114 template <typename ConnectionPropertiesT = ConnectionProperties>
115 void SetConnectionProperties(ConnectionPropertiesT&& value) {
116 m_connectionPropertiesHasBeenSet = true;
117 m_connectionProperties = std::forward<ConnectionPropertiesT>(value);
118 }
119 template <typename ConnectionPropertiesT = ConnectionProperties>
121 SetConnectionProperties(std::forward<ConnectionPropertiesT>(value));
122 return *this;
123 }
125 private:
126 DomainInformationContainer m_localDomainInfo;
127
128 DomainInformationContainer m_remoteDomainInfo;
129
130 Aws::String m_connectionAlias;
131
132 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
133
134 ConnectionProperties m_connectionProperties;
135 bool m_localDomainInfoHasBeenSet = false;
136 bool m_remoteDomainInfoHasBeenSet = false;
137 bool m_connectionAliasHasBeenSet = false;
138 bool m_connectionModeHasBeenSet = false;
139 bool m_connectionPropertiesHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace OpenSearchService
144} // namespace Aws
CreateOutboundConnectionRequest & WithLocalDomainInfo(LocalDomainInfoT &&value)
CreateOutboundConnectionRequest & WithConnectionMode(ConnectionMode value)
CreateOutboundConnectionRequest & WithConnectionAlias(ConnectionAliasT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateOutboundConnectionRequest & WithConnectionProperties(ConnectionPropertiesT &&value)
CreateOutboundConnectionRequest & WithRemoteDomainInfo(RemoteDomainInfoT &&value)
AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String