AWS SDK for C++

AWS SDK for C++ Version 1.11.810

Loading...
Searching...
No Matches
CreateElasticsearchDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/es/ElasticsearchServiceRequest.h>
11#include <aws/es/ElasticsearchService_EXPORTS.h>
12#include <aws/es/model/AdvancedSecurityOptionsInput.h>
13#include <aws/es/model/AutoTuneOptionsInput.h>
14#include <aws/es/model/AutomatedSnapshotPauseRequestOptions.h>
15#include <aws/es/model/CognitoOptions.h>
16#include <aws/es/model/DeploymentStrategyOptions.h>
17#include <aws/es/model/DomainEndpointOptions.h>
18#include <aws/es/model/EBSOptions.h>
19#include <aws/es/model/ElasticsearchClusterConfig.h>
20#include <aws/es/model/EncryptionAtRestOptions.h>
21#include <aws/es/model/LogPublishingOption.h>
22#include <aws/es/model/LogType.h>
23#include <aws/es/model/NodeToNodeEncryptionOptions.h>
24#include <aws/es/model/SnapshotOptions.h>
25#include <aws/es/model/Tag.h>
26#include <aws/es/model/VPCOptions.h>
27
28#include <utility>
29
30namespace Aws {
31namespace ElasticsearchService {
32namespace Model {
33
37 public:
38 AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "CreateElasticsearchDomain"; }
45
46 AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
47
49
55 inline const Aws::String& GetDomainName() const { return m_domainName; }
56 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
57 template <typename DomainNameT = Aws::String>
58 void SetDomainName(DomainNameT&& value) {
59 m_domainNameHasBeenSet = true;
60 m_domainName = std::forward<DomainNameT>(value);
61 }
62 template <typename DomainNameT = Aws::String>
64 SetDomainName(std::forward<DomainNameT>(value));
65 return *this;
66 }
68
70
77 inline const Aws::String& GetElasticsearchVersion() const { return m_elasticsearchVersion; }
78 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
79 template <typename ElasticsearchVersionT = Aws::String>
80 void SetElasticsearchVersion(ElasticsearchVersionT&& value) {
81 m_elasticsearchVersionHasBeenSet = true;
82 m_elasticsearchVersion = std::forward<ElasticsearchVersionT>(value);
83 }
84 template <typename ElasticsearchVersionT = Aws::String>
86 SetElasticsearchVersion(std::forward<ElasticsearchVersionT>(value));
87 return *this;
88 }
90
92
96 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const { return m_elasticsearchClusterConfig; }
97 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
98 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
99 void SetElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) {
100 m_elasticsearchClusterConfigHasBeenSet = true;
101 m_elasticsearchClusterConfig = std::forward<ElasticsearchClusterConfigT>(value);
102 }
103 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
105 SetElasticsearchClusterConfig(std::forward<ElasticsearchClusterConfigT>(value));
106 return *this;
107 }
109
111
115 inline const EBSOptions& GetEBSOptions() const { return m_eBSOptions; }
116 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
117 template <typename EBSOptionsT = EBSOptions>
118 void SetEBSOptions(EBSOptionsT&& value) {
119 m_eBSOptionsHasBeenSet = true;
120 m_eBSOptions = std::forward<EBSOptionsT>(value);
121 }
122 template <typename EBSOptionsT = EBSOptions>
124 SetEBSOptions(std::forward<EBSOptionsT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetAccessPolicies() const { return m_accessPolicies; }
134 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
135 template <typename AccessPoliciesT = Aws::String>
136 void SetAccessPolicies(AccessPoliciesT&& value) {
137 m_accessPoliciesHasBeenSet = true;
138 m_accessPolicies = std::forward<AccessPoliciesT>(value);
139 }
140 template <typename AccessPoliciesT = Aws::String>
142 SetAccessPolicies(std::forward<AccessPoliciesT>(value));
143 return *this;
144 }
146
148
152 inline const SnapshotOptions& GetSnapshotOptions() const { return m_snapshotOptions; }
153 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
154 template <typename SnapshotOptionsT = SnapshotOptions>
155 void SetSnapshotOptions(SnapshotOptionsT&& value) {
156 m_snapshotOptionsHasBeenSet = true;
157 m_snapshotOptions = std::forward<SnapshotOptionsT>(value);
158 }
159 template <typename SnapshotOptionsT = SnapshotOptions>
161 SetSnapshotOptions(std::forward<SnapshotOptionsT>(value));
162 return *this;
163 }
165
167
174 inline const VPCOptions& GetVPCOptions() const { return m_vPCOptions; }
175 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
176 template <typename VPCOptionsT = VPCOptions>
177 void SetVPCOptions(VPCOptionsT&& value) {
178 m_vPCOptionsHasBeenSet = true;
179 m_vPCOptions = std::forward<VPCOptionsT>(value);
180 }
181 template <typename VPCOptionsT = VPCOptions>
183 SetVPCOptions(std::forward<VPCOptionsT>(value));
184 return *this;
185 }
187
189
195 inline const CognitoOptions& GetCognitoOptions() const { return m_cognitoOptions; }
196 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
197 template <typename CognitoOptionsT = CognitoOptions>
198 void SetCognitoOptions(CognitoOptionsT&& value) {
199 m_cognitoOptionsHasBeenSet = true;
200 m_cognitoOptions = std::forward<CognitoOptionsT>(value);
201 }
202 template <typename CognitoOptionsT = CognitoOptions>
204 SetCognitoOptions(std::forward<CognitoOptionsT>(value));
205 return *this;
206 }
208
210
213 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const { return m_encryptionAtRestOptions; }
214 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
215 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
216 void SetEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) {
217 m_encryptionAtRestOptionsHasBeenSet = true;
218 m_encryptionAtRestOptions = std::forward<EncryptionAtRestOptionsT>(value);
219 }
220 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
222 SetEncryptionAtRestOptions(std::forward<EncryptionAtRestOptionsT>(value));
223 return *this;
224 }
226
228
231 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const { return m_nodeToNodeEncryptionOptions; }
232 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
233 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
234 void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) {
235 m_nodeToNodeEncryptionOptionsHasBeenSet = true;
236 m_nodeToNodeEncryptionOptions = std::forward<NodeToNodeEncryptionOptionsT>(value);
237 }
238 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
240 SetNodeToNodeEncryptionOptions(std::forward<NodeToNodeEncryptionOptionsT>(value));
241 return *this;
242 }
244
246
253 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
254 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
255 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
256 void SetAdvancedOptions(AdvancedOptionsT&& value) {
257 m_advancedOptionsHasBeenSet = true;
258 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
259 }
260 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
262 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
263 return *this;
264 }
265 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
266 CreateElasticsearchDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
267 m_advancedOptionsHasBeenSet = true;
268 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const { return m_logPublishingOptions; }
279 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
280 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
281 void SetLogPublishingOptions(LogPublishingOptionsT&& value) {
282 m_logPublishingOptionsHasBeenSet = true;
283 m_logPublishingOptions = std::forward<LogPublishingOptionsT>(value);
284 }
285 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
287 SetLogPublishingOptions(std::forward<LogPublishingOptionsT>(value));
288 return *this;
289 }
291 m_logPublishingOptionsHasBeenSet = true;
292 m_logPublishingOptions.emplace(key, value);
293 return *this;
294 }
296
298
302 inline const DomainEndpointOptions& GetDomainEndpointOptions() const { return m_domainEndpointOptions; }
303 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
304 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
305 void SetDomainEndpointOptions(DomainEndpointOptionsT&& value) {
306 m_domainEndpointOptionsHasBeenSet = true;
307 m_domainEndpointOptions = std::forward<DomainEndpointOptionsT>(value);
308 }
309 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
311 SetDomainEndpointOptions(std::forward<DomainEndpointOptionsT>(value));
312 return *this;
313 }
315
317
320 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const { return m_advancedSecurityOptions; }
321 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
322 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
323 void SetAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) {
324 m_advancedSecurityOptionsHasBeenSet = true;
325 m_advancedSecurityOptions = std::forward<AdvancedSecurityOptionsT>(value);
326 }
327 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
329 SetAdvancedSecurityOptions(std::forward<AdvancedSecurityOptionsT>(value));
330 return *this;
331 }
333
335
338 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const { return m_autoTuneOptions; }
339 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
340 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
341 void SetAutoTuneOptions(AutoTuneOptionsT&& value) {
342 m_autoTuneOptionsHasBeenSet = true;
343 m_autoTuneOptions = std::forward<AutoTuneOptionsT>(value);
344 }
345 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
347 SetAutoTuneOptions(std::forward<AutoTuneOptionsT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
357 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
358 template <typename TagListT = Aws::Vector<Tag>>
359 void SetTagList(TagListT&& value) {
360 m_tagListHasBeenSet = true;
361 m_tagList = std::forward<TagListT>(value);
362 }
363 template <typename TagListT = Aws::Vector<Tag>>
365 SetTagList(std::forward<TagListT>(value));
366 return *this;
367 }
368 template <typename TagListT = Tag>
370 m_tagListHasBeenSet = true;
371 m_tagList.emplace_back(std::forward<TagListT>(value));
372 return *this;
373 }
375
377
380 inline const DeploymentStrategyOptions& GetDeploymentStrategyOptions() const { return m_deploymentStrategyOptions; }
381 inline bool DeploymentStrategyOptionsHasBeenSet() const { return m_deploymentStrategyOptionsHasBeenSet; }
382 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
383 void SetDeploymentStrategyOptions(DeploymentStrategyOptionsT&& value) {
384 m_deploymentStrategyOptionsHasBeenSet = true;
385 m_deploymentStrategyOptions = std::forward<DeploymentStrategyOptionsT>(value);
386 }
387 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
389 SetDeploymentStrategyOptions(std::forward<DeploymentStrategyOptionsT>(value));
390 return *this;
391 }
393
395
402 inline const AutomatedSnapshotPauseRequestOptions& GetAutomatedSnapshotPauseOptions() const { return m_automatedSnapshotPauseOptions; }
403 inline bool AutomatedSnapshotPauseOptionsHasBeenSet() const { return m_automatedSnapshotPauseOptionsHasBeenSet; }
404 template <typename AutomatedSnapshotPauseOptionsT = AutomatedSnapshotPauseRequestOptions>
405 void SetAutomatedSnapshotPauseOptions(AutomatedSnapshotPauseOptionsT&& value) {
406 m_automatedSnapshotPauseOptionsHasBeenSet = true;
407 m_automatedSnapshotPauseOptions = std::forward<AutomatedSnapshotPauseOptionsT>(value);
408 }
409 template <typename AutomatedSnapshotPauseOptionsT = AutomatedSnapshotPauseRequestOptions>
411 SetAutomatedSnapshotPauseOptions(std::forward<AutomatedSnapshotPauseOptionsT>(value));
412 return *this;
413 }
415 private:
416 Aws::String m_domainName;
417
418 Aws::String m_elasticsearchVersion;
419
420 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
421
422 EBSOptions m_eBSOptions;
423
424 Aws::String m_accessPolicies;
425
426 SnapshotOptions m_snapshotOptions;
427
428 VPCOptions m_vPCOptions;
429
430 CognitoOptions m_cognitoOptions;
431
432 EncryptionAtRestOptions m_encryptionAtRestOptions;
433
434 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
435
436 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
437
438 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
439
440 DomainEndpointOptions m_domainEndpointOptions;
441
442 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
443
444 AutoTuneOptionsInput m_autoTuneOptions;
445
446 Aws::Vector<Tag> m_tagList;
447
448 DeploymentStrategyOptions m_deploymentStrategyOptions;
449
450 AutomatedSnapshotPauseRequestOptions m_automatedSnapshotPauseOptions;
451 bool m_domainNameHasBeenSet = false;
452 bool m_elasticsearchVersionHasBeenSet = false;
453 bool m_elasticsearchClusterConfigHasBeenSet = false;
454 bool m_eBSOptionsHasBeenSet = false;
455 bool m_accessPoliciesHasBeenSet = false;
456 bool m_snapshotOptionsHasBeenSet = false;
457 bool m_vPCOptionsHasBeenSet = false;
458 bool m_cognitoOptionsHasBeenSet = false;
459 bool m_encryptionAtRestOptionsHasBeenSet = false;
460 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
461 bool m_advancedOptionsHasBeenSet = false;
462 bool m_logPublishingOptionsHasBeenSet = false;
463 bool m_domainEndpointOptionsHasBeenSet = false;
464 bool m_advancedSecurityOptionsHasBeenSet = false;
465 bool m_autoTuneOptionsHasBeenSet = false;
466 bool m_tagListHasBeenSet = false;
467 bool m_deploymentStrategyOptionsHasBeenSet = false;
468 bool m_automatedSnapshotPauseOptionsHasBeenSet = false;
469};
470
471} // namespace Model
472} // namespace ElasticsearchService
473} // namespace Aws
CreateElasticsearchDomainRequest & WithNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT &&value)
CreateElasticsearchDomainRequest & WithAutoTuneOptions(AutoTuneOptionsT &&value)
CreateElasticsearchDomainRequest & WithDomainName(DomainNameT &&value)
CreateElasticsearchDomainRequest & AddLogPublishingOptions(LogType key, LogPublishingOption value)
CreateElasticsearchDomainRequest & WithAccessPolicies(AccessPoliciesT &&value)
CreateElasticsearchDomainRequest & WithLogPublishingOptions(LogPublishingOptionsT &&value)
CreateElasticsearchDomainRequest & WithEBSOptions(EBSOptionsT &&value)
CreateElasticsearchDomainRequest & WithAdvancedSecurityOptions(AdvancedSecurityOptionsT &&value)
CreateElasticsearchDomainRequest & WithVPCOptions(VPCOptionsT &&value)
CreateElasticsearchDomainRequest & WithElasticsearchVersion(ElasticsearchVersionT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateElasticsearchDomainRequest & WithEncryptionAtRestOptions(EncryptionAtRestOptionsT &&value)
CreateElasticsearchDomainRequest & WithAutomatedSnapshotPauseOptions(AutomatedSnapshotPauseOptionsT &&value)
const AutomatedSnapshotPauseRequestOptions & GetAutomatedSnapshotPauseOptions() const
CreateElasticsearchDomainRequest & WithCognitoOptions(CognitoOptionsT &&value)
CreateElasticsearchDomainRequest & WithAdvancedOptions(AdvancedOptionsT &&value)
CreateElasticsearchDomainRequest & AddAdvancedOptions(AdvancedOptionsKeyT &&key, AdvancedOptionsValueT &&value)
CreateElasticsearchDomainRequest & WithDeploymentStrategyOptions(DeploymentStrategyOptionsT &&value)
AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest()=default
CreateElasticsearchDomainRequest & WithSnapshotOptions(SnapshotOptionsT &&value)
CreateElasticsearchDomainRequest & WithElasticsearchClusterConfig(ElasticsearchClusterConfigT &&value)
const Aws::Map< LogType, LogPublishingOption > & GetLogPublishingOptions() const
CreateElasticsearchDomainRequest & WithDomainEndpointOptions(DomainEndpointOptionsT &&value)
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