AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/DomainEndpointOptions.h>
16#include <aws/es/model/EBSOptions.h>
17#include <aws/es/model/ElasticsearchClusterConfig.h>
18#include <aws/es/model/EncryptionAtRestOptions.h>
19#include <aws/es/model/LogPublishingOption.h>
20#include <aws/es/model/LogType.h>
21#include <aws/es/model/NodeToNodeEncryptionOptions.h>
22#include <aws/es/model/SnapshotOptions.h>
23#include <aws/es/model/Tag.h>
24#include <aws/es/model/VPCOptions.h>
25
26#include <utility>
27
28namespace Aws {
29namespace ElasticsearchService {
30namespace Model {
31
35 public:
36 AWS_ELASTICSEARCHSERVICE_API CreateElasticsearchDomainRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateElasticsearchDomain"; }
43
44 AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
45
47
53 inline const Aws::String& GetDomainName() const { return m_domainName; }
54 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
55 template <typename DomainNameT = Aws::String>
56 void SetDomainName(DomainNameT&& value) {
57 m_domainNameHasBeenSet = true;
58 m_domainName = std::forward<DomainNameT>(value);
59 }
60 template <typename DomainNameT = Aws::String>
62 SetDomainName(std::forward<DomainNameT>(value));
63 return *this;
64 }
66
68
75 inline const Aws::String& GetElasticsearchVersion() const { return m_elasticsearchVersion; }
76 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
77 template <typename ElasticsearchVersionT = Aws::String>
78 void SetElasticsearchVersion(ElasticsearchVersionT&& value) {
79 m_elasticsearchVersionHasBeenSet = true;
80 m_elasticsearchVersion = std::forward<ElasticsearchVersionT>(value);
81 }
82 template <typename ElasticsearchVersionT = Aws::String>
84 SetElasticsearchVersion(std::forward<ElasticsearchVersionT>(value));
85 return *this;
86 }
88
90
94 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const { return m_elasticsearchClusterConfig; }
95 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
96 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
97 void SetElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) {
98 m_elasticsearchClusterConfigHasBeenSet = true;
99 m_elasticsearchClusterConfig = std::forward<ElasticsearchClusterConfigT>(value);
100 }
101 template <typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
103 SetElasticsearchClusterConfig(std::forward<ElasticsearchClusterConfigT>(value));
104 return *this;
105 }
107
109
113 inline const EBSOptions& GetEBSOptions() const { return m_eBSOptions; }
114 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
115 template <typename EBSOptionsT = EBSOptions>
116 void SetEBSOptions(EBSOptionsT&& value) {
117 m_eBSOptionsHasBeenSet = true;
118 m_eBSOptions = std::forward<EBSOptionsT>(value);
119 }
120 template <typename EBSOptionsT = EBSOptions>
122 SetEBSOptions(std::forward<EBSOptionsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetAccessPolicies() const { return m_accessPolicies; }
132 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
133 template <typename AccessPoliciesT = Aws::String>
134 void SetAccessPolicies(AccessPoliciesT&& value) {
135 m_accessPoliciesHasBeenSet = true;
136 m_accessPolicies = std::forward<AccessPoliciesT>(value);
137 }
138 template <typename AccessPoliciesT = Aws::String>
140 SetAccessPolicies(std::forward<AccessPoliciesT>(value));
141 return *this;
142 }
144
146
150 inline const SnapshotOptions& GetSnapshotOptions() const { return m_snapshotOptions; }
151 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
152 template <typename SnapshotOptionsT = SnapshotOptions>
153 void SetSnapshotOptions(SnapshotOptionsT&& value) {
154 m_snapshotOptionsHasBeenSet = true;
155 m_snapshotOptions = std::forward<SnapshotOptionsT>(value);
156 }
157 template <typename SnapshotOptionsT = SnapshotOptions>
159 SetSnapshotOptions(std::forward<SnapshotOptionsT>(value));
160 return *this;
161 }
163
165
172 inline const VPCOptions& GetVPCOptions() const { return m_vPCOptions; }
173 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
174 template <typename VPCOptionsT = VPCOptions>
175 void SetVPCOptions(VPCOptionsT&& value) {
176 m_vPCOptionsHasBeenSet = true;
177 m_vPCOptions = std::forward<VPCOptionsT>(value);
178 }
179 template <typename VPCOptionsT = VPCOptions>
181 SetVPCOptions(std::forward<VPCOptionsT>(value));
182 return *this;
183 }
185
187
193 inline const CognitoOptions& GetCognitoOptions() const { return m_cognitoOptions; }
194 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
195 template <typename CognitoOptionsT = CognitoOptions>
196 void SetCognitoOptions(CognitoOptionsT&& value) {
197 m_cognitoOptionsHasBeenSet = true;
198 m_cognitoOptions = std::forward<CognitoOptionsT>(value);
199 }
200 template <typename CognitoOptionsT = CognitoOptions>
202 SetCognitoOptions(std::forward<CognitoOptionsT>(value));
203 return *this;
204 }
206
208
211 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const { return m_encryptionAtRestOptions; }
212 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
213 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
214 void SetEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) {
215 m_encryptionAtRestOptionsHasBeenSet = true;
216 m_encryptionAtRestOptions = std::forward<EncryptionAtRestOptionsT>(value);
217 }
218 template <typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
220 SetEncryptionAtRestOptions(std::forward<EncryptionAtRestOptionsT>(value));
221 return *this;
222 }
224
226
229 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const { return m_nodeToNodeEncryptionOptions; }
230 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
231 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
232 void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) {
233 m_nodeToNodeEncryptionOptionsHasBeenSet = true;
234 m_nodeToNodeEncryptionOptions = std::forward<NodeToNodeEncryptionOptionsT>(value);
235 }
236 template <typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
238 SetNodeToNodeEncryptionOptions(std::forward<NodeToNodeEncryptionOptionsT>(value));
239 return *this;
240 }
242
244
251 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
252 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
253 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
254 void SetAdvancedOptions(AdvancedOptionsT&& value) {
255 m_advancedOptionsHasBeenSet = true;
256 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
257 }
258 template <typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
260 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
261 return *this;
262 }
263 template <typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
264 CreateElasticsearchDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
265 m_advancedOptionsHasBeenSet = true;
266 m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const { return m_logPublishingOptions; }
277 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
278 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
279 void SetLogPublishingOptions(LogPublishingOptionsT&& value) {
280 m_logPublishingOptionsHasBeenSet = true;
281 m_logPublishingOptions = std::forward<LogPublishingOptionsT>(value);
282 }
283 template <typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
285 SetLogPublishingOptions(std::forward<LogPublishingOptionsT>(value));
286 return *this;
287 }
289 m_logPublishingOptionsHasBeenSet = true;
290 m_logPublishingOptions.emplace(key, value);
291 return *this;
292 }
294
296
300 inline const DomainEndpointOptions& GetDomainEndpointOptions() const { return m_domainEndpointOptions; }
301 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
302 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
303 void SetDomainEndpointOptions(DomainEndpointOptionsT&& value) {
304 m_domainEndpointOptionsHasBeenSet = true;
305 m_domainEndpointOptions = std::forward<DomainEndpointOptionsT>(value);
306 }
307 template <typename DomainEndpointOptionsT = DomainEndpointOptions>
309 SetDomainEndpointOptions(std::forward<DomainEndpointOptionsT>(value));
310 return *this;
311 }
313
315
318 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const { return m_advancedSecurityOptions; }
319 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
320 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
321 void SetAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) {
322 m_advancedSecurityOptionsHasBeenSet = true;
323 m_advancedSecurityOptions = std::forward<AdvancedSecurityOptionsT>(value);
324 }
325 template <typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
327 SetAdvancedSecurityOptions(std::forward<AdvancedSecurityOptionsT>(value));
328 return *this;
329 }
331
333
336 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const { return m_autoTuneOptions; }
337 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
338 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
339 void SetAutoTuneOptions(AutoTuneOptionsT&& value) {
340 m_autoTuneOptionsHasBeenSet = true;
341 m_autoTuneOptions = std::forward<AutoTuneOptionsT>(value);
342 }
343 template <typename AutoTuneOptionsT = AutoTuneOptionsInput>
345 SetAutoTuneOptions(std::forward<AutoTuneOptionsT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
355 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
356 template <typename TagListT = Aws::Vector<Tag>>
357 void SetTagList(TagListT&& value) {
358 m_tagListHasBeenSet = true;
359 m_tagList = std::forward<TagListT>(value);
360 }
361 template <typename TagListT = Aws::Vector<Tag>>
363 SetTagList(std::forward<TagListT>(value));
364 return *this;
365 }
366 template <typename TagListT = Tag>
368 m_tagListHasBeenSet = true;
369 m_tagList.emplace_back(std::forward<TagListT>(value));
370 return *this;
371 }
373 private:
374 Aws::String m_domainName;
375
376 Aws::String m_elasticsearchVersion;
377
378 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
379
380 EBSOptions m_eBSOptions;
381
382 Aws::String m_accessPolicies;
383
384 SnapshotOptions m_snapshotOptions;
385
386 VPCOptions m_vPCOptions;
387
388 CognitoOptions m_cognitoOptions;
389
390 EncryptionAtRestOptions m_encryptionAtRestOptions;
391
392 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
393
394 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
395
396 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
397
398 DomainEndpointOptions m_domainEndpointOptions;
399
400 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
401
402 AutoTuneOptionsInput m_autoTuneOptions;
403
404 Aws::Vector<Tag> m_tagList;
405 bool m_domainNameHasBeenSet = false;
406 bool m_elasticsearchVersionHasBeenSet = false;
407 bool m_elasticsearchClusterConfigHasBeenSet = false;
408 bool m_eBSOptionsHasBeenSet = false;
409 bool m_accessPoliciesHasBeenSet = false;
410 bool m_snapshotOptionsHasBeenSet = false;
411 bool m_vPCOptionsHasBeenSet = false;
412 bool m_cognitoOptionsHasBeenSet = false;
413 bool m_encryptionAtRestOptionsHasBeenSet = false;
414 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
415 bool m_advancedOptionsHasBeenSet = false;
416 bool m_logPublishingOptionsHasBeenSet = false;
417 bool m_domainEndpointOptionsHasBeenSet = false;
418 bool m_advancedSecurityOptionsHasBeenSet = false;
419 bool m_autoTuneOptionsHasBeenSet = false;
420 bool m_tagListHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace ElasticsearchService
425} // 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)
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