AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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/DomainEngineMode.h>
19#include <aws/es/model/DomainUseCase.h>
20#include <aws/es/model/EBSOptions.h>
21#include <aws/es/model/ElasticsearchClusterConfig.h>
22#include <aws/es/model/EncryptionAtRestOptions.h>
23#include <aws/es/model/LogPublishingOption.h>
24#include <aws/es/model/LogType.h>
25#include <aws/es/model/NodeToNodeEncryptionOptions.h>
26#include <aws/es/model/SnapshotOptions.h>
27#include <aws/es/model/Tag.h>
28#include <aws/es/model/VPCOptions.h>
29
30#include <utility>
31
32namespace Aws {
33namespace ElasticsearchService {
34namespace Model {
35
39 public:
40 AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest() = default;
41
42 // Service request name is the Operation name which will send this request out,
43 // each operation should has unique request name, so that we can get operation's name from this request.
44 // Note: this is not true for response, multiple operations may have the same response name,
45 // so we can not get operation's name from response.
46 inline virtual const char* GetServiceRequestName() const override { return "CreateElasticsearchDomain"; }
47
48 AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
49
51
57 inline const Aws::String& GetDomainName() const { return m_domainName; }
58 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
59 template <typename DomainNameT = Aws::String>
60 void SetDomainName(DomainNameT&& value) {
61 m_domainNameHasBeenSet = true;
62 m_domainName = std::forward<DomainNameT>(value);
63 }
64 template <typename DomainNameT = Aws::String>
66 SetDomainName(std::forward<DomainNameT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetElasticsearchVersion() const { return m_elasticsearchVersion; }
80 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
81 template <typename ElasticsearchVersionT = Aws::String>
82 void SetElasticsearchVersion(ElasticsearchVersionT&& value) {
83 m_elasticsearchVersionHasBeenSet = true;
84 m_elasticsearchVersion = std::forward<ElasticsearchVersionT>(value);
85 }
86 template <typename ElasticsearchVersionT = Aws::String>
88 SetElasticsearchVersion(std::forward<ElasticsearchVersionT>(value));
89 return *this;
90 }
92
94
98 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const { return m_elasticsearchClusterConfig; }
99 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
100 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
101 void SetElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) {
102 m_elasticsearchClusterConfigHasBeenSet = true;
103 m_elasticsearchClusterConfig = std::forward<ElasticsearchClusterConfigT>(value);
104 }
105 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
107 SetElasticsearchClusterConfig(std::forward<ElasticsearchClusterConfigT>(value));
108 return *this;
109 }
111
113
117 inline const EBSOptions& GetEBSOptions() const { return m_eBSOptions; }
118 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
119 template <typename EBSOptionsT = EBSOptions>
120 void SetEBSOptions(EBSOptionsT&& value) {
121 m_eBSOptionsHasBeenSet = true;
122 m_eBSOptions = std::forward<EBSOptionsT>(value);
123 }
124 template <typename EBSOptionsT = EBSOptions>
126 SetEBSOptions(std::forward<EBSOptionsT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetAccessPolicies() const { return m_accessPolicies; }
136 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
137 template <typename AccessPoliciesT = Aws::String>
138 void SetAccessPolicies(AccessPoliciesT&& value) {
139 m_accessPoliciesHasBeenSet = true;
140 m_accessPolicies = std::forward<AccessPoliciesT>(value);
141 }
142 template <typename AccessPoliciesT = Aws::String>
144 SetAccessPolicies(std::forward<AccessPoliciesT>(value));
145 return *this;
146 }
148
150
154 inline const SnapshotOptions& GetSnapshotOptions() const { return m_snapshotOptions; }
155 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
156 template <typename SnapshotOptionsT = SnapshotOptions>
157 void SetSnapshotOptions(SnapshotOptionsT&& value) {
158 m_snapshotOptionsHasBeenSet = true;
159 m_snapshotOptions = std::forward<SnapshotOptionsT>(value);
160 }
161 template <typename SnapshotOptionsT = SnapshotOptions>
163 SetSnapshotOptions(std::forward<SnapshotOptionsT>(value));
164 return *this;
165 }
167
169
176 inline const VPCOptions& GetVPCOptions() const { return m_vPCOptions; }
177 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
178 template <typename VPCOptionsT = VPCOptions>
179 void SetVPCOptions(VPCOptionsT&& value) {
180 m_vPCOptionsHasBeenSet = true;
181 m_vPCOptions = std::forward<VPCOptionsT>(value);
182 }
183 template <typename VPCOptionsT = VPCOptions>
185 SetVPCOptions(std::forward<VPCOptionsT>(value));
186 return *this;
187 }
189
191
197 inline const CognitoOptions& GetCognitoOptions() const { return m_cognitoOptions; }
198 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
199 template <typename CognitoOptionsT = CognitoOptions>
200 void SetCognitoOptions(CognitoOptionsT&& value) {
201 m_cognitoOptionsHasBeenSet = true;
202 m_cognitoOptions = std::forward<CognitoOptionsT>(value);
203 }
204 template <typename CognitoOptionsT = CognitoOptions>
206 SetCognitoOptions(std::forward<CognitoOptionsT>(value));
207 return *this;
208 }
210
212
215 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const { return m_encryptionAtRestOptions; }
216 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
217 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
218 void SetEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) {
219 m_encryptionAtRestOptionsHasBeenSet = true;
220 m_encryptionAtRestOptions = std::forward<EncryptionAtRestOptionsT>(value);
221 }
222 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
224 SetEncryptionAtRestOptions(std::forward<EncryptionAtRestOptionsT>(value));
225 return *this;
226 }
228
230
233 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const { return m_nodeToNodeEncryptionOptions; }
234 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
235 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
236 void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) {
237 m_nodeToNodeEncryptionOptionsHasBeenSet = true;
238 m_nodeToNodeEncryptionOptions = std::forward<NodeToNodeEncryptionOptionsT>(value);
239 }
240 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
242 SetNodeToNodeEncryptionOptions(std::forward<NodeToNodeEncryptionOptionsT>(value));
243 return *this;
244 }
246
248
255 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
256 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
257 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
258 void SetAdvancedOptions(AdvancedOptionsT&& value) {
259 m_advancedOptionsHasBeenSet = true;
260 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
261 }
262 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
264 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
265 return *this;
266 }
267 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
268 CreateElasticsearchDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
269 m_advancedOptionsHasBeenSet = true;
270 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
271 return *this;
272 }
274
276
280 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const { return m_logPublishingOptions; }
281 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
282 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
283 void SetLogPublishingOptions(LogPublishingOptionsT&& value) {
284 m_logPublishingOptionsHasBeenSet = true;
285 m_logPublishingOptions = std::forward<LogPublishingOptionsT>(value);
286 }
287 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
289 SetLogPublishingOptions(std::forward<LogPublishingOptionsT>(value));
290 return *this;
291 }
293 m_logPublishingOptionsHasBeenSet = true;
294 m_logPublishingOptions.emplace(key, value);
295 return *this;
296 }
298
300
304 inline const DomainEndpointOptions& GetDomainEndpointOptions() const { return m_domainEndpointOptions; }
305 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
306 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
307 void SetDomainEndpointOptions(DomainEndpointOptionsT&& value) {
308 m_domainEndpointOptionsHasBeenSet = true;
309 m_domainEndpointOptions = std::forward<DomainEndpointOptionsT>(value);
310 }
311 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
313 SetDomainEndpointOptions(std::forward<DomainEndpointOptionsT>(value));
314 return *this;
315 }
317
319
322 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const { return m_advancedSecurityOptions; }
323 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
324 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
325 void SetAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) {
326 m_advancedSecurityOptionsHasBeenSet = true;
327 m_advancedSecurityOptions = std::forward<AdvancedSecurityOptionsT>(value);
328 }
329 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
331 SetAdvancedSecurityOptions(std::forward<AdvancedSecurityOptionsT>(value));
332 return *this;
333 }
335
337
340 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const { return m_autoTuneOptions; }
341 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
342 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
343 void SetAutoTuneOptions(AutoTuneOptionsT&& value) {
344 m_autoTuneOptionsHasBeenSet = true;
345 m_autoTuneOptions = std::forward<AutoTuneOptionsT>(value);
346 }
347 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
349 SetAutoTuneOptions(std::forward<AutoTuneOptionsT>(value));
350 return *this;
351 }
353
355
358 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
359 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
360 template <typename TagListT = Aws::Vector<Tag>>
361 void SetTagList(TagListT&& value) {
362 m_tagListHasBeenSet = true;
363 m_tagList = std::forward<TagListT>(value);
364 }
365 template <typename TagListT = Aws::Vector<Tag>>
367 SetTagList(std::forward<TagListT>(value));
368 return *this;
369 }
370 template <typename TagListT = Tag>
372 m_tagListHasBeenSet = true;
373 m_tagList.emplace_back(std::forward<TagListT>(value));
374 return *this;
375 }
377
379
382 inline const DeploymentStrategyOptions& GetDeploymentStrategyOptions() const { return m_deploymentStrategyOptions; }
383 inline bool DeploymentStrategyOptionsHasBeenSet() const { return m_deploymentStrategyOptionsHasBeenSet; }
384 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
385 void SetDeploymentStrategyOptions(DeploymentStrategyOptionsT&& value) {
386 m_deploymentStrategyOptionsHasBeenSet = true;
387 m_deploymentStrategyOptions = std::forward<DeploymentStrategyOptionsT>(value);
388 }
389 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
391 SetDeploymentStrategyOptions(std::forward<DeploymentStrategyOptionsT>(value));
392 return *this;
393 }
395
397
404 inline const AutomatedSnapshotPauseRequestOptions& GetAutomatedSnapshotPauseOptions() const { return m_automatedSnapshotPauseOptions; }
405 inline bool AutomatedSnapshotPauseOptionsHasBeenSet() const { return m_automatedSnapshotPauseOptionsHasBeenSet; }
406 template <typename AutomatedSnapshotPauseOptionsT = AutomatedSnapshotPauseRequestOptions>
407 void SetAutomatedSnapshotPauseOptions(AutomatedSnapshotPauseOptionsT&& value) {
408 m_automatedSnapshotPauseOptionsHasBeenSet = true;
409 m_automatedSnapshotPauseOptions = std::forward<AutomatedSnapshotPauseOptionsT>(value);
410 }
411 template <typename AutomatedSnapshotPauseOptionsT = AutomatedSnapshotPauseRequestOptions>
413 SetAutomatedSnapshotPauseOptions(std::forward<AutomatedSnapshotPauseOptionsT>(value));
414 return *this;
415 }
417
419
423 inline DomainUseCase GetUseCase() const { return m_useCase; }
424 inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; }
425 inline void SetUseCase(DomainUseCase value) {
426 m_useCaseHasBeenSet = true;
427 m_useCase = value;
428 }
430 SetUseCase(value);
431 return *this;
432 }
434
436
440 inline DomainEngineMode GetEngineMode() const { return m_engineMode; }
441 inline bool EngineModeHasBeenSet() const { return m_engineModeHasBeenSet; }
442 inline void SetEngineMode(DomainEngineMode value) {
443 m_engineModeHasBeenSet = true;
444 m_engineMode = value;
445 }
447 SetEngineMode(value);
448 return *this;
449 }
451 private:
452 Aws::String m_domainName;
453
454 Aws::String m_elasticsearchVersion;
455
456 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
457
458 EBSOptions m_eBSOptions;
459
460 Aws::String m_accessPolicies;
461
462 SnapshotOptions m_snapshotOptions;
463
464 VPCOptions m_vPCOptions;
465
466 CognitoOptions m_cognitoOptions;
467
468 EncryptionAtRestOptions m_encryptionAtRestOptions;
469
470 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
471
472 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
473
474 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
475
476 DomainEndpointOptions m_domainEndpointOptions;
477
478 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
479
480 AutoTuneOptionsInput m_autoTuneOptions;
481
482 Aws::Vector<Tag> m_tagList;
483
484 DeploymentStrategyOptions m_deploymentStrategyOptions;
485
486 AutomatedSnapshotPauseRequestOptions m_automatedSnapshotPauseOptions;
487
489
491 bool m_domainNameHasBeenSet = false;
492 bool m_elasticsearchVersionHasBeenSet = false;
493 bool m_elasticsearchClusterConfigHasBeenSet = false;
494 bool m_eBSOptionsHasBeenSet = false;
495 bool m_accessPoliciesHasBeenSet = false;
496 bool m_snapshotOptionsHasBeenSet = false;
497 bool m_vPCOptionsHasBeenSet = false;
498 bool m_cognitoOptionsHasBeenSet = false;
499 bool m_encryptionAtRestOptionsHasBeenSet = false;
500 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
501 bool m_advancedOptionsHasBeenSet = false;
502 bool m_logPublishingOptionsHasBeenSet = false;
503 bool m_domainEndpointOptionsHasBeenSet = false;
504 bool m_advancedSecurityOptionsHasBeenSet = false;
505 bool m_autoTuneOptionsHasBeenSet = false;
506 bool m_tagListHasBeenSet = false;
507 bool m_deploymentStrategyOptionsHasBeenSet = false;
508 bool m_automatedSnapshotPauseOptionsHasBeenSet = false;
509 bool m_useCaseHasBeenSet = false;
510 bool m_engineModeHasBeenSet = false;
511};
512
513} // namespace Model
514} // namespace ElasticsearchService
515} // 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 & WithUseCase(DomainUseCase value)
CreateElasticsearchDomainRequest & WithEncryptionAtRestOptions(EncryptionAtRestOptionsT &&value)
CreateElasticsearchDomainRequest & WithAutomatedSnapshotPauseOptions(AutomatedSnapshotPauseOptionsT &&value)
const AutomatedSnapshotPauseRequestOptions & GetAutomatedSnapshotPauseOptions() const
CreateElasticsearchDomainRequest & WithCognitoOptions(CognitoOptionsT &&value)
CreateElasticsearchDomainRequest & WithEngineMode(DomainEngineMode 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