AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateOutboundConnectionRequest.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/model/DomainInformationContainer.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/opensearch/model/ConnectionMode.h>
12#include <aws/opensearch/model/ConnectionProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace OpenSearchService
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_OPENSEARCHSERVICE_API CreateOutboundConnectionRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateOutboundConnection"; }
38
39 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const DomainInformationContainer& GetLocalDomainInfo() const { return m_localDomainInfo; }
47 inline bool LocalDomainInfoHasBeenSet() const { return m_localDomainInfoHasBeenSet; }
48 template<typename LocalDomainInfoT = DomainInformationContainer>
49 void SetLocalDomainInfo(LocalDomainInfoT&& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = std::forward<LocalDomainInfoT>(value); }
50 template<typename LocalDomainInfoT = DomainInformationContainer>
51 CreateOutboundConnectionRequest& WithLocalDomainInfo(LocalDomainInfoT&& value) { SetLocalDomainInfo(std::forward<LocalDomainInfoT>(value)); return *this;}
53
55
58 inline const DomainInformationContainer& GetRemoteDomainInfo() const { return m_remoteDomainInfo; }
59 inline bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; }
60 template<typename RemoteDomainInfoT = DomainInformationContainer>
61 void SetRemoteDomainInfo(RemoteDomainInfoT&& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = std::forward<RemoteDomainInfoT>(value); }
62 template<typename RemoteDomainInfoT = DomainInformationContainer>
63 CreateOutboundConnectionRequest& WithRemoteDomainInfo(RemoteDomainInfoT&& value) { SetRemoteDomainInfo(std::forward<RemoteDomainInfoT>(value)); return *this;}
65
67
70 inline const Aws::String& GetConnectionAlias() const { return m_connectionAlias; }
71 inline bool ConnectionAliasHasBeenSet() const { return m_connectionAliasHasBeenSet; }
72 template<typename ConnectionAliasT = Aws::String>
73 void SetConnectionAlias(ConnectionAliasT&& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = std::forward<ConnectionAliasT>(value); }
74 template<typename ConnectionAliasT = Aws::String>
75 CreateOutboundConnectionRequest& WithConnectionAlias(ConnectionAliasT&& value) { SetConnectionAlias(std::forward<ConnectionAliasT>(value)); return *this;}
77
79
82 inline ConnectionMode GetConnectionMode() const { return m_connectionMode; }
83 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
84 inline void SetConnectionMode(ConnectionMode value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
87
89
92 inline const ConnectionProperties& GetConnectionProperties() const { return m_connectionProperties; }
93 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
94 template<typename ConnectionPropertiesT = ConnectionProperties>
95 void SetConnectionProperties(ConnectionPropertiesT&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::forward<ConnectionPropertiesT>(value); }
96 template<typename ConnectionPropertiesT = ConnectionProperties>
97 CreateOutboundConnectionRequest& WithConnectionProperties(ConnectionPropertiesT&& value) { SetConnectionProperties(std::forward<ConnectionPropertiesT>(value)); return *this;}
99 private:
100
101 DomainInformationContainer m_localDomainInfo;
102 bool m_localDomainInfoHasBeenSet = false;
103
104 DomainInformationContainer m_remoteDomainInfo;
105 bool m_remoteDomainInfoHasBeenSet = false;
106
107 Aws::String m_connectionAlias;
108 bool m_connectionAliasHasBeenSet = false;
109
110 ConnectionMode m_connectionMode{ConnectionMode::NOT_SET};
111 bool m_connectionModeHasBeenSet = false;
112
113 ConnectionProperties m_connectionProperties;
114 bool m_connectionPropertiesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace OpenSearchService
119} // 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