AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/CognitoOptions.h>
15#include <aws/es/model/DeploymentStrategyOptions.h>
16#include <aws/es/model/DomainEndpointOptions.h>
17#include <aws/es/model/EBSOptions.h>
18#include <aws/es/model/ElasticsearchClusterConfig.h>
19#include <aws/es/model/EncryptionAtRestOptions.h>
20#include <aws/es/model/LogPublishingOption.h>
21#include <aws/es/model/LogType.h>
22#include <aws/es/model/NodeToNodeEncryptionOptions.h>
23#include <aws/es/model/SnapshotOptions.h>
24#include <aws/es/model/Tag.h>
25#include <aws/es/model/VPCOptions.h>
26
27#include <utility>
28
29namespace Aws {
30namespace ElasticsearchService {
31namespace Model {
32
36 public:
37 AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "CreateElasticsearchDomain"; }
44
45 AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
46
48
54 inline const Aws::String& GetDomainName() const { return m_domainName; }
55 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
56 template <typename DomainNameT = Aws::String>
57 void SetDomainName(DomainNameT&& value) {
58 m_domainNameHasBeenSet = true;
59 m_domainName = std::forward<DomainNameT>(value);
60 }
61 template <typename DomainNameT = Aws::String>
63 SetDomainName(std::forward<DomainNameT>(value));
64 return *this;
65 }
67
69
76 inline const Aws::String& GetElasticsearchVersion() const { return m_elasticsearchVersion; }
77 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
78 template <typename ElasticsearchVersionT = Aws::String>
79 void SetElasticsearchVersion(ElasticsearchVersionT&& value) {
80 m_elasticsearchVersionHasBeenSet = true;
81 m_elasticsearchVersion = std::forward<ElasticsearchVersionT>(value);
82 }
83 template <typename ElasticsearchVersionT = Aws::String>
85 SetElasticsearchVersion(std::forward<ElasticsearchVersionT>(value));
86 return *this;
87 }
89
91
95 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const { return m_elasticsearchClusterConfig; }
96 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
97 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
98 void SetElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) {
99 m_elasticsearchClusterConfigHasBeenSet = true;
100 m_elasticsearchClusterConfig = std::forward<ElasticsearchClusterConfigT>(value);
101 }
102 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
104 SetElasticsearchClusterConfig(std::forward<ElasticsearchClusterConfigT>(value));
105 return *this;
106 }
108
110
114 inline const EBSOptions& GetEBSOptions() const { return m_eBSOptions; }
115 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
116 template <typename EBSOptionsT = EBSOptions>
117 void SetEBSOptions(EBSOptionsT&& value) {
118 m_eBSOptionsHasBeenSet = true;
119 m_eBSOptions = std::forward<EBSOptionsT>(value);
120 }
121 template <typename EBSOptionsT = EBSOptions>
123 SetEBSOptions(std::forward<EBSOptionsT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetAccessPolicies() const { return m_accessPolicies; }
133 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
134 template <typename AccessPoliciesT = Aws::String>
135 void SetAccessPolicies(AccessPoliciesT&& value) {
136 m_accessPoliciesHasBeenSet = true;
137 m_accessPolicies = std::forward<AccessPoliciesT>(value);
138 }
139 template <typename AccessPoliciesT = Aws::String>
141 SetAccessPolicies(std::forward<AccessPoliciesT>(value));
142 return *this;
143 }
145
147
151 inline const SnapshotOptions& GetSnapshotOptions() const { return m_snapshotOptions; }
152 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
153 template <typename SnapshotOptionsT = SnapshotOptions>
154 void SetSnapshotOptions(SnapshotOptionsT&& value) {
155 m_snapshotOptionsHasBeenSet = true;
156 m_snapshotOptions = std::forward<SnapshotOptionsT>(value);
157 }
158 template <typename SnapshotOptionsT = SnapshotOptions>
160 SetSnapshotOptions(std::forward<SnapshotOptionsT>(value));
161 return *this;
162 }
164
166
173 inline const VPCOptions& GetVPCOptions() const { return m_vPCOptions; }
174 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
175 template <typename VPCOptionsT = VPCOptions>
176 void SetVPCOptions(VPCOptionsT&& value) {
177 m_vPCOptionsHasBeenSet = true;
178 m_vPCOptions = std::forward<VPCOptionsT>(value);
179 }
180 template <typename VPCOptionsT = VPCOptions>
182 SetVPCOptions(std::forward<VPCOptionsT>(value));
183 return *this;
184 }
186
188
194 inline const CognitoOptions& GetCognitoOptions() const { return m_cognitoOptions; }
195 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
196 template <typename CognitoOptionsT = CognitoOptions>
197 void SetCognitoOptions(CognitoOptionsT&& value) {
198 m_cognitoOptionsHasBeenSet = true;
199 m_cognitoOptions = std::forward<CognitoOptionsT>(value);
200 }
201 template <typename CognitoOptionsT = CognitoOptions>
203 SetCognitoOptions(std::forward<CognitoOptionsT>(value));
204 return *this;
205 }
207
209
212 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const { return m_encryptionAtRestOptions; }
213 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
214 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
215 void SetEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) {
216 m_encryptionAtRestOptionsHasBeenSet = true;
217 m_encryptionAtRestOptions = std::forward<EncryptionAtRestOptionsT>(value);
218 }
219 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
221 SetEncryptionAtRestOptions(std::forward<EncryptionAtRestOptionsT>(value));
222 return *this;
223 }
225
227
230 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const { return m_nodeToNodeEncryptionOptions; }
231 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
232 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
233 void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) {
234 m_nodeToNodeEncryptionOptionsHasBeenSet = true;
235 m_nodeToNodeEncryptionOptions = std::forward<NodeToNodeEncryptionOptionsT>(value);
236 }
237 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
239 SetNodeToNodeEncryptionOptions(std::forward<NodeToNodeEncryptionOptionsT>(value));
240 return *this;
241 }
243
245
252 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
253 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
254 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
255 void SetAdvancedOptions(AdvancedOptionsT&& value) {
256 m_advancedOptionsHasBeenSet = true;
257 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
258 }
259 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
261 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
262 return *this;
263 }
264 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
265 CreateElasticsearchDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
266 m_advancedOptionsHasBeenSet = true;
267 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const { return m_logPublishingOptions; }
278 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
279 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
280 void SetLogPublishingOptions(LogPublishingOptionsT&& value) {
281 m_logPublishingOptionsHasBeenSet = true;
282 m_logPublishingOptions = std::forward<LogPublishingOptionsT>(value);
283 }
284 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
286 SetLogPublishingOptions(std::forward<LogPublishingOptionsT>(value));
287 return *this;
288 }
290 m_logPublishingOptionsHasBeenSet = true;
291 m_logPublishingOptions.emplace(key, value);
292 return *this;
293 }
295
297
301 inline const DomainEndpointOptions& GetDomainEndpointOptions() const { return m_domainEndpointOptions; }
302 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
303 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
304 void SetDomainEndpointOptions(DomainEndpointOptionsT&& value) {
305 m_domainEndpointOptionsHasBeenSet = true;
306 m_domainEndpointOptions = std::forward<DomainEndpointOptionsT>(value);
307 }
308 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
310 SetDomainEndpointOptions(std::forward<DomainEndpointOptionsT>(value));
311 return *this;
312 }
314
316
319 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const { return m_advancedSecurityOptions; }
320 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
321 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
322 void SetAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) {
323 m_advancedSecurityOptionsHasBeenSet = true;
324 m_advancedSecurityOptions = std::forward<AdvancedSecurityOptionsT>(value);
325 }
326 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
328 SetAdvancedSecurityOptions(std::forward<AdvancedSecurityOptionsT>(value));
329 return *this;
330 }
332
334
337 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const { return m_autoTuneOptions; }
338 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
339 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
340 void SetAutoTuneOptions(AutoTuneOptionsT&& value) {
341 m_autoTuneOptionsHasBeenSet = true;
342 m_autoTuneOptions = std::forward<AutoTuneOptionsT>(value);
343 }
344 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
346 SetAutoTuneOptions(std::forward<AutoTuneOptionsT>(value));
347 return *this;
348 }
350
352
355 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
356 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
357 template <typename TagListT = Aws::Vector<Tag>>
358 void SetTagList(TagListT&& value) {
359 m_tagListHasBeenSet = true;
360 m_tagList = std::forward<TagListT>(value);
361 }
362 template <typename TagListT = Aws::Vector<Tag>>
364 SetTagList(std::forward<TagListT>(value));
365 return *this;
366 }
367 template <typename TagListT = Tag>
369 m_tagListHasBeenSet = true;
370 m_tagList.emplace_back(std::forward<TagListT>(value));
371 return *this;
372 }
374
376
379 inline const DeploymentStrategyOptions& GetDeploymentStrategyOptions() const { return m_deploymentStrategyOptions; }
380 inline bool DeploymentStrategyOptionsHasBeenSet() const { return m_deploymentStrategyOptionsHasBeenSet; }
381 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
382 void SetDeploymentStrategyOptions(DeploymentStrategyOptionsT&& value) {
383 m_deploymentStrategyOptionsHasBeenSet = true;
384 m_deploymentStrategyOptions = std::forward<DeploymentStrategyOptionsT>(value);
385 }
386 template <typename DeploymentStrategyOptionsT = DeploymentStrategyOptions>
388 SetDeploymentStrategyOptions(std::forward<DeploymentStrategyOptionsT>(value));
389 return *this;
390 }
392 private:
393 Aws::String m_domainName;
394
395 Aws::String m_elasticsearchVersion;
396
397 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
398
399 EBSOptions m_eBSOptions;
400
401 Aws::String m_accessPolicies;
402
403 SnapshotOptions m_snapshotOptions;
404
405 VPCOptions m_vPCOptions;
406
407 CognitoOptions m_cognitoOptions;
408
409 EncryptionAtRestOptions m_encryptionAtRestOptions;
410
411 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
412
413 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
414
415 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
416
417 DomainEndpointOptions m_domainEndpointOptions;
418
419 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
420
421 AutoTuneOptionsInput m_autoTuneOptions;
422
423 Aws::Vector<Tag> m_tagList;
424
425 DeploymentStrategyOptions m_deploymentStrategyOptions;
426 bool m_domainNameHasBeenSet = false;
427 bool m_elasticsearchVersionHasBeenSet = false;
428 bool m_elasticsearchClusterConfigHasBeenSet = false;
429 bool m_eBSOptionsHasBeenSet = false;
430 bool m_accessPoliciesHasBeenSet = false;
431 bool m_snapshotOptionsHasBeenSet = false;
432 bool m_vPCOptionsHasBeenSet = false;
433 bool m_cognitoOptionsHasBeenSet = false;
434 bool m_encryptionAtRestOptionsHasBeenSet = false;
435 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
436 bool m_advancedOptionsHasBeenSet = false;
437 bool m_logPublishingOptionsHasBeenSet = false;
438 bool m_domainEndpointOptionsHasBeenSet = false;
439 bool m_advancedSecurityOptionsHasBeenSet = false;
440 bool m_autoTuneOptionsHasBeenSet = false;
441 bool m_tagListHasBeenSet = false;
442 bool m_deploymentStrategyOptionsHasBeenSet = false;
443};
444
445} // namespace Model
446} // namespace ElasticsearchService
447} // 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 & 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