AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateElasticsearchDomainRequest.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/ElasticsearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/es/model/ElasticsearchClusterConfig.h>
11#include <aws/es/model/EBSOptions.h>
12#include <aws/es/model/SnapshotOptions.h>
13#include <aws/es/model/VPCOptions.h>
14#include <aws/es/model/CognitoOptions.h>
15#include <aws/es/model/EncryptionAtRestOptions.h>
16#include <aws/es/model/NodeToNodeEncryptionOptions.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/es/model/DomainEndpointOptions.h>
19#include <aws/es/model/AdvancedSecurityOptionsInput.h>
20#include <aws/es/model/AutoTuneOptionsInput.h>
21#include <aws/core/utils/memory/stl/AWSVector.h>
22#include <aws/es/model/LogType.h>
23#include <aws/es/model/LogPublishingOption.h>
24#include <aws/es/model/Tag.h>
25#include <utility>
26
27namespace Aws
28{
29namespace ElasticsearchService
30{
31namespace Model
32{
33
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest();
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "CreateElasticsearchDomain"; }
46
47 AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
48
49
51
57 inline const Aws::String& GetDomainName() const{ return m_domainName; }
58 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
59 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
60 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
62 inline CreateElasticsearchDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
63 inline CreateElasticsearchDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
64 inline CreateElasticsearchDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
66
68
75 inline const Aws::String& GetElasticsearchVersion() const{ return m_elasticsearchVersion; }
76 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
77 inline void SetElasticsearchVersion(const Aws::String& value) { m_elasticsearchVersionHasBeenSet = true; m_elasticsearchVersion = value; }
78 inline void SetElasticsearchVersion(Aws::String&& value) { m_elasticsearchVersionHasBeenSet = true; m_elasticsearchVersion = std::move(value); }
79 inline void SetElasticsearchVersion(const char* value) { m_elasticsearchVersionHasBeenSet = true; m_elasticsearchVersion.assign(value); }
82 inline CreateElasticsearchDomainRequest& WithElasticsearchVersion(const char* value) { SetElasticsearchVersion(value); return *this;}
84
86
90 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const{ return m_elasticsearchClusterConfig; }
91 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
92 inline void SetElasticsearchClusterConfig(const ElasticsearchClusterConfig& value) { m_elasticsearchClusterConfigHasBeenSet = true; m_elasticsearchClusterConfig = value; }
93 inline void SetElasticsearchClusterConfig(ElasticsearchClusterConfig&& value) { m_elasticsearchClusterConfigHasBeenSet = true; m_elasticsearchClusterConfig = std::move(value); }
97
99
103 inline const EBSOptions& GetEBSOptions() const{ return m_eBSOptions; }
104 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
105 inline void SetEBSOptions(const EBSOptions& value) { m_eBSOptionsHasBeenSet = true; m_eBSOptions = value; }
106 inline void SetEBSOptions(EBSOptions&& value) { m_eBSOptionsHasBeenSet = true; m_eBSOptions = std::move(value); }
107 inline CreateElasticsearchDomainRequest& WithEBSOptions(const EBSOptions& value) { SetEBSOptions(value); return *this;}
108 inline CreateElasticsearchDomainRequest& WithEBSOptions(EBSOptions&& value) { SetEBSOptions(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetAccessPolicies() const{ return m_accessPolicies; }
116 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
117 inline void SetAccessPolicies(const Aws::String& value) { m_accessPoliciesHasBeenSet = true; m_accessPolicies = value; }
118 inline void SetAccessPolicies(Aws::String&& value) { m_accessPoliciesHasBeenSet = true; m_accessPolicies = std::move(value); }
119 inline void SetAccessPolicies(const char* value) { m_accessPoliciesHasBeenSet = true; m_accessPolicies.assign(value); }
121 inline CreateElasticsearchDomainRequest& WithAccessPolicies(Aws::String&& value) { SetAccessPolicies(std::move(value)); return *this;}
122 inline CreateElasticsearchDomainRequest& WithAccessPolicies(const char* value) { SetAccessPolicies(value); return *this;}
124
126
130 inline const SnapshotOptions& GetSnapshotOptions() const{ return m_snapshotOptions; }
131 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
132 inline void SetSnapshotOptions(const SnapshotOptions& value) { m_snapshotOptionsHasBeenSet = true; m_snapshotOptions = value; }
133 inline void SetSnapshotOptions(SnapshotOptions&& value) { m_snapshotOptionsHasBeenSet = true; m_snapshotOptions = std::move(value); }
137
139
146 inline const VPCOptions& GetVPCOptions() const{ return m_vPCOptions; }
147 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
148 inline void SetVPCOptions(const VPCOptions& value) { m_vPCOptionsHasBeenSet = true; m_vPCOptions = value; }
149 inline void SetVPCOptions(VPCOptions&& value) { m_vPCOptionsHasBeenSet = true; m_vPCOptions = std::move(value); }
150 inline CreateElasticsearchDomainRequest& WithVPCOptions(const VPCOptions& value) { SetVPCOptions(value); return *this;}
151 inline CreateElasticsearchDomainRequest& WithVPCOptions(VPCOptions&& value) { SetVPCOptions(std::move(value)); return *this;}
153
155
161 inline const CognitoOptions& GetCognitoOptions() const{ return m_cognitoOptions; }
162 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
163 inline void SetCognitoOptions(const CognitoOptions& value) { m_cognitoOptionsHasBeenSet = true; m_cognitoOptions = value; }
164 inline void SetCognitoOptions(CognitoOptions&& value) { m_cognitoOptionsHasBeenSet = true; m_cognitoOptions = std::move(value); }
166 inline CreateElasticsearchDomainRequest& WithCognitoOptions(CognitoOptions&& value) { SetCognitoOptions(std::move(value)); return *this;}
168
170
173 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const{ return m_encryptionAtRestOptions; }
174 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
175 inline void SetEncryptionAtRestOptions(const EncryptionAtRestOptions& value) { m_encryptionAtRestOptionsHasBeenSet = true; m_encryptionAtRestOptions = value; }
176 inline void SetEncryptionAtRestOptions(EncryptionAtRestOptions&& value) { m_encryptionAtRestOptionsHasBeenSet = true; m_encryptionAtRestOptions = std::move(value); }
180
182
185 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const{ return m_nodeToNodeEncryptionOptions; }
186 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
187 inline void SetNodeToNodeEncryptionOptions(const NodeToNodeEncryptionOptions& value) { m_nodeToNodeEncryptionOptionsHasBeenSet = true; m_nodeToNodeEncryptionOptions = value; }
188 inline void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions&& value) { m_nodeToNodeEncryptionOptionsHasBeenSet = true; m_nodeToNodeEncryptionOptions = std::move(value); }
192
194
201 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const{ return m_advancedOptions; }
202 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
203 inline void SetAdvancedOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = value; }
204 inline void SetAdvancedOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::move(value); }
207 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(const Aws::String& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; }
208 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(Aws::String&& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; }
209 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(const Aws::String& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; }
210 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(Aws::String&& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), std::move(value)); return *this; }
211 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(const char* key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; }
212 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(Aws::String&& key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; }
213 inline CreateElasticsearchDomainRequest& AddAdvancedOptions(const char* key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; }
215
217
221 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const{ return m_logPublishingOptions; }
222 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
223 inline void SetLogPublishingOptions(const Aws::Map<LogType, LogPublishingOption>& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions = value; }
224 inline void SetLogPublishingOptions(Aws::Map<LogType, LogPublishingOption>&& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions = std::move(value); }
227 inline CreateElasticsearchDomainRequest& AddLogPublishingOptions(const LogType& key, const LogPublishingOption& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions.emplace(key, value); return *this; }
228 inline CreateElasticsearchDomainRequest& AddLogPublishingOptions(LogType&& key, const LogPublishingOption& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions.emplace(std::move(key), value); return *this; }
229 inline CreateElasticsearchDomainRequest& AddLogPublishingOptions(const LogType& key, LogPublishingOption&& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions.emplace(key, std::move(value)); return *this; }
230 inline CreateElasticsearchDomainRequest& AddLogPublishingOptions(LogType&& key, LogPublishingOption&& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions.emplace(std::move(key), std::move(value)); return *this; }
232
234
238 inline const DomainEndpointOptions& GetDomainEndpointOptions() const{ return m_domainEndpointOptions; }
239 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
240 inline void SetDomainEndpointOptions(const DomainEndpointOptions& value) { m_domainEndpointOptionsHasBeenSet = true; m_domainEndpointOptions = value; }
241 inline void SetDomainEndpointOptions(DomainEndpointOptions&& value) { m_domainEndpointOptionsHasBeenSet = true; m_domainEndpointOptions = std::move(value); }
245
247
250 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const{ return m_advancedSecurityOptions; }
251 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
252 inline void SetAdvancedSecurityOptions(const AdvancedSecurityOptionsInput& value) { m_advancedSecurityOptionsHasBeenSet = true; m_advancedSecurityOptions = value; }
253 inline void SetAdvancedSecurityOptions(AdvancedSecurityOptionsInput&& value) { m_advancedSecurityOptionsHasBeenSet = true; m_advancedSecurityOptions = std::move(value); }
257
259
262 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const{ return m_autoTuneOptions; }
263 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
264 inline void SetAutoTuneOptions(const AutoTuneOptionsInput& value) { m_autoTuneOptionsHasBeenSet = true; m_autoTuneOptions = value; }
265 inline void SetAutoTuneOptions(AutoTuneOptionsInput&& value) { m_autoTuneOptionsHasBeenSet = true; m_autoTuneOptions = std::move(value); }
269
271
274 inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
275 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
276 inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
277 inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
278 inline CreateElasticsearchDomainRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
279 inline CreateElasticsearchDomainRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
280 inline CreateElasticsearchDomainRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
281 inline CreateElasticsearchDomainRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
283 private:
284
285 Aws::String m_domainName;
286 bool m_domainNameHasBeenSet = false;
287
288 Aws::String m_elasticsearchVersion;
289 bool m_elasticsearchVersionHasBeenSet = false;
290
291 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
292 bool m_elasticsearchClusterConfigHasBeenSet = false;
293
294 EBSOptions m_eBSOptions;
295 bool m_eBSOptionsHasBeenSet = false;
296
297 Aws::String m_accessPolicies;
298 bool m_accessPoliciesHasBeenSet = false;
299
300 SnapshotOptions m_snapshotOptions;
301 bool m_snapshotOptionsHasBeenSet = false;
302
303 VPCOptions m_vPCOptions;
304 bool m_vPCOptionsHasBeenSet = false;
305
306 CognitoOptions m_cognitoOptions;
307 bool m_cognitoOptionsHasBeenSet = false;
308
309 EncryptionAtRestOptions m_encryptionAtRestOptions;
310 bool m_encryptionAtRestOptionsHasBeenSet = false;
311
312 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
313 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
314
315 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
316 bool m_advancedOptionsHasBeenSet = false;
317
318 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
319 bool m_logPublishingOptionsHasBeenSet = false;
320
321 DomainEndpointOptions m_domainEndpointOptions;
322 bool m_domainEndpointOptionsHasBeenSet = false;
323
324 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
325 bool m_advancedSecurityOptionsHasBeenSet = false;
326
327 AutoTuneOptionsInput m_autoTuneOptions;
328 bool m_autoTuneOptionsHasBeenSet = false;
329
330 Aws::Vector<Tag> m_tagList;
331 bool m_tagListHasBeenSet = false;
332 };
333
334} // namespace Model
335} // namespace ElasticsearchService
336} // namespace Aws
CreateElasticsearchDomainRequest & WithSnapshotOptions(SnapshotOptions &&value)
CreateElasticsearchDomainRequest & WithTagList(Aws::Vector< Tag > &&value)
CreateElasticsearchDomainRequest & AddLogPublishingOptions(const LogType &key, const LogPublishingOption &value)
CreateElasticsearchDomainRequest & WithNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptions &&value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(Aws::String &&key, Aws::String &&value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(const Aws::String &key, const Aws::String &value)
CreateElasticsearchDomainRequest & WithNodeToNodeEncryptionOptions(const NodeToNodeEncryptionOptions &value)
CreateElasticsearchDomainRequest & WithAutoTuneOptions(AutoTuneOptionsInput &&value)
CreateElasticsearchDomainRequest & WithAdvancedSecurityOptions(AdvancedSecurityOptionsInput &&value)
CreateElasticsearchDomainRequest & AddLogPublishingOptions(const LogType &key, LogPublishingOption &&value)
CreateElasticsearchDomainRequest & WithVPCOptions(VPCOptions &&value)
void SetLogPublishingOptions(const Aws::Map< LogType, LogPublishingOption > &value)
CreateElasticsearchDomainRequest & WithAdvancedOptions(Aws::Map< Aws::String, Aws::String > &&value)
CreateElasticsearchDomainRequest & WithLogPublishingOptions(const Aws::Map< LogType, LogPublishingOption > &value)
CreateElasticsearchDomainRequest & WithDomainEndpointOptions(DomainEndpointOptions &&value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(Aws::String &&key, const Aws::String &value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(const char *key, Aws::String &&value)
CreateElasticsearchDomainRequest & WithTagList(const Aws::Vector< Tag > &value)
CreateElasticsearchDomainRequest & WithElasticsearchClusterConfig(ElasticsearchClusterConfig &&value)
CreateElasticsearchDomainRequest & WithElasticsearchClusterConfig(const ElasticsearchClusterConfig &value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(const Aws::String &key, Aws::String &&value)
CreateElasticsearchDomainRequest & WithEBSOptions(EBSOptions &&value)
CreateElasticsearchDomainRequest & WithCognitoOptions(const CognitoOptions &value)
CreateElasticsearchDomainRequest & WithEncryptionAtRestOptions(const EncryptionAtRestOptions &value)
CreateElasticsearchDomainRequest & WithSnapshotOptions(const SnapshotOptions &value)
CreateElasticsearchDomainRequest & WithAutoTuneOptions(const AutoTuneOptionsInput &value)
AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateElasticsearchDomainRequest & WithEBSOptions(const EBSOptions &value)
CreateElasticsearchDomainRequest & AddLogPublishingOptions(LogType &&key, const LogPublishingOption &value)
CreateElasticsearchDomainRequest & WithEncryptionAtRestOptions(EncryptionAtRestOptions &&value)
CreateElasticsearchDomainRequest & WithElasticsearchVersion(Aws::String &&value)
CreateElasticsearchDomainRequest & WithAccessPolicies(const char *value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(const char *key, const char *value)
CreateElasticsearchDomainRequest & WithElasticsearchVersion(const char *value)
CreateElasticsearchDomainRequest & WithAdvancedOptions(const Aws::Map< Aws::String, Aws::String > &value)
void SetAdvancedOptions(const Aws::Map< Aws::String, Aws::String > &value)
CreateElasticsearchDomainRequest & WithCognitoOptions(CognitoOptions &&value)
CreateElasticsearchDomainRequest & WithLogPublishingOptions(Aws::Map< LogType, LogPublishingOption > &&value)
CreateElasticsearchDomainRequest & WithElasticsearchVersion(const Aws::String &value)
CreateElasticsearchDomainRequest & WithDomainName(Aws::String &&value)
CreateElasticsearchDomainRequest & WithAccessPolicies(Aws::String &&value)
CreateElasticsearchDomainRequest & WithDomainEndpointOptions(const DomainEndpointOptions &value)
CreateElasticsearchDomainRequest & WithDomainName(const Aws::String &value)
CreateElasticsearchDomainRequest & AddLogPublishingOptions(LogType &&key, LogPublishingOption &&value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(Aws::String &&key, const char *value)
CreateElasticsearchDomainRequest & WithVPCOptions(const VPCOptions &value)
CreateElasticsearchDomainRequest & WithAdvancedSecurityOptions(const AdvancedSecurityOptionsInput &value)
void SetLogPublishingOptions(Aws::Map< LogType, LogPublishingOption > &&value)
CreateElasticsearchDomainRequest & WithAccessPolicies(const Aws::String &value)
const Aws::Map< LogType, LogPublishingOption > & GetLogPublishingOptions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector