AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLocalDomainInfo(const DomainInformationContainer& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = value; }
49 inline void SetLocalDomainInfo(DomainInformationContainer&& value) { m_localDomainInfoHasBeenSet = true; m_localDomainInfo = std::move(value); }
53
55
58 inline const DomainInformationContainer& GetRemoteDomainInfo() const{ return m_remoteDomainInfo; }
59 inline bool RemoteDomainInfoHasBeenSet() const { return m_remoteDomainInfoHasBeenSet; }
60 inline void SetRemoteDomainInfo(const DomainInformationContainer& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = value; }
61 inline void SetRemoteDomainInfo(DomainInformationContainer&& value) { m_remoteDomainInfoHasBeenSet = true; m_remoteDomainInfo = std::move(value); }
65
67
70 inline const Aws::String& GetConnectionAlias() const{ return m_connectionAlias; }
71 inline bool ConnectionAliasHasBeenSet() const { return m_connectionAliasHasBeenSet; }
72 inline void SetConnectionAlias(const Aws::String& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = value; }
73 inline void SetConnectionAlias(Aws::String&& value) { m_connectionAliasHasBeenSet = true; m_connectionAlias = std::move(value); }
74 inline void SetConnectionAlias(const char* value) { m_connectionAliasHasBeenSet = true; m_connectionAlias.assign(value); }
76 inline CreateOutboundConnectionRequest& WithConnectionAlias(Aws::String&& value) { SetConnectionAlias(std::move(value)); return *this;}
77 inline CreateOutboundConnectionRequest& WithConnectionAlias(const char* value) { SetConnectionAlias(value); return *this;}
79
81
84 inline const ConnectionMode& GetConnectionMode() const{ return m_connectionMode; }
85 inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; }
86 inline void SetConnectionMode(const ConnectionMode& value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; }
87 inline void SetConnectionMode(ConnectionMode&& value) { m_connectionModeHasBeenSet = true; m_connectionMode = std::move(value); }
89 inline CreateOutboundConnectionRequest& WithConnectionMode(ConnectionMode&& value) { SetConnectionMode(std::move(value)); return *this;}
91
93
96 inline const ConnectionProperties& GetConnectionProperties() const{ return m_connectionProperties; }
97 inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
98 inline void SetConnectionProperties(const ConnectionProperties& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = value; }
99 inline void SetConnectionProperties(ConnectionProperties&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::move(value); }
103 private:
104
105 DomainInformationContainer m_localDomainInfo;
106 bool m_localDomainInfoHasBeenSet = false;
107
108 DomainInformationContainer m_remoteDomainInfo;
109 bool m_remoteDomainInfoHasBeenSet = false;
110
111 Aws::String m_connectionAlias;
112 bool m_connectionAliasHasBeenSet = false;
113
114 ConnectionMode m_connectionMode;
115 bool m_connectionModeHasBeenSet = false;
116
117 ConnectionProperties m_connectionProperties;
118 bool m_connectionPropertiesHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace OpenSearchService
123} // namespace Aws
CreateOutboundConnectionRequest & WithLocalDomainInfo(DomainInformationContainer &&value)
CreateOutboundConnectionRequest & WithConnectionProperties(const ConnectionProperties &value)
CreateOutboundConnectionRequest & WithConnectionAlias(const Aws::String &value)
CreateOutboundConnectionRequest & WithRemoteDomainInfo(DomainInformationContainer &&value)
CreateOutboundConnectionRequest & WithConnectionMode(const ConnectionMode &value)
CreateOutboundConnectionRequest & WithLocalDomainInfo(const DomainInformationContainer &value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateOutboundConnectionRequest & WithConnectionMode(ConnectionMode &&value)
CreateOutboundConnectionRequest & WithRemoteDomainInfo(const DomainInformationContainer &value)
CreateOutboundConnectionRequest & WithConnectionProperties(ConnectionProperties &&value)
CreateOutboundConnectionRequest & WithConnectionAlias(const char *value)
CreateOutboundConnectionRequest & WithConnectionAlias(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String