AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DomainNameT = Aws::String>
60 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
61 template<typename DomainNameT = Aws::String>
62 CreateElasticsearchDomainRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
64
66
73 inline const Aws::String& GetElasticsearchVersion() const { return m_elasticsearchVersion; }
74 inline bool ElasticsearchVersionHasBeenSet() const { return m_elasticsearchVersionHasBeenSet; }
75 template<typename ElasticsearchVersionT = Aws::String>
76 void SetElasticsearchVersion(ElasticsearchVersionT&& value) { m_elasticsearchVersionHasBeenSet = true; m_elasticsearchVersion = std::forward<ElasticsearchVersionT>(value); }
77 template<typename ElasticsearchVersionT = Aws::String>
78 CreateElasticsearchDomainRequest& WithElasticsearchVersion(ElasticsearchVersionT&& value) { SetElasticsearchVersion(std::forward<ElasticsearchVersionT>(value)); return *this;}
80
82
86 inline const ElasticsearchClusterConfig& GetElasticsearchClusterConfig() const { return m_elasticsearchClusterConfig; }
87 inline bool ElasticsearchClusterConfigHasBeenSet() const { return m_elasticsearchClusterConfigHasBeenSet; }
88 template<typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
89 void SetElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) { m_elasticsearchClusterConfigHasBeenSet = true; m_elasticsearchClusterConfig = std::forward<ElasticsearchClusterConfigT>(value); }
90 template<typename ElasticsearchClusterConfigT = ElasticsearchClusterConfig>
91 CreateElasticsearchDomainRequest& WithElasticsearchClusterConfig(ElasticsearchClusterConfigT&& value) { SetElasticsearchClusterConfig(std::forward<ElasticsearchClusterConfigT>(value)); return *this;}
93
95
99 inline const EBSOptions& GetEBSOptions() const { return m_eBSOptions; }
100 inline bool EBSOptionsHasBeenSet() const { return m_eBSOptionsHasBeenSet; }
101 template<typename EBSOptionsT = EBSOptions>
102 void SetEBSOptions(EBSOptionsT&& value) { m_eBSOptionsHasBeenSet = true; m_eBSOptions = std::forward<EBSOptionsT>(value); }
103 template<typename EBSOptionsT = EBSOptions>
104 CreateElasticsearchDomainRequest& WithEBSOptions(EBSOptionsT&& value) { SetEBSOptions(std::forward<EBSOptionsT>(value)); return *this;}
106
108
111 inline const Aws::String& GetAccessPolicies() const { return m_accessPolicies; }
112 inline bool AccessPoliciesHasBeenSet() const { return m_accessPoliciesHasBeenSet; }
113 template<typename AccessPoliciesT = Aws::String>
114 void SetAccessPolicies(AccessPoliciesT&& value) { m_accessPoliciesHasBeenSet = true; m_accessPolicies = std::forward<AccessPoliciesT>(value); }
115 template<typename AccessPoliciesT = Aws::String>
116 CreateElasticsearchDomainRequest& WithAccessPolicies(AccessPoliciesT&& value) { SetAccessPolicies(std::forward<AccessPoliciesT>(value)); return *this;}
118
120
124 inline const SnapshotOptions& GetSnapshotOptions() const { return m_snapshotOptions; }
125 inline bool SnapshotOptionsHasBeenSet() const { return m_snapshotOptionsHasBeenSet; }
126 template<typename SnapshotOptionsT = SnapshotOptions>
127 void SetSnapshotOptions(SnapshotOptionsT&& value) { m_snapshotOptionsHasBeenSet = true; m_snapshotOptions = std::forward<SnapshotOptionsT>(value); }
128 template<typename SnapshotOptionsT = SnapshotOptions>
129 CreateElasticsearchDomainRequest& WithSnapshotOptions(SnapshotOptionsT&& value) { SetSnapshotOptions(std::forward<SnapshotOptionsT>(value)); return *this;}
131
133
140 inline const VPCOptions& GetVPCOptions() const { return m_vPCOptions; }
141 inline bool VPCOptionsHasBeenSet() const { return m_vPCOptionsHasBeenSet; }
142 template<typename VPCOptionsT = VPCOptions>
143 void SetVPCOptions(VPCOptionsT&& value) { m_vPCOptionsHasBeenSet = true; m_vPCOptions = std::forward<VPCOptionsT>(value); }
144 template<typename VPCOptionsT = VPCOptions>
145 CreateElasticsearchDomainRequest& WithVPCOptions(VPCOptionsT&& value) { SetVPCOptions(std::forward<VPCOptionsT>(value)); return *this;}
147
149
155 inline const CognitoOptions& GetCognitoOptions() const { return m_cognitoOptions; }
156 inline bool CognitoOptionsHasBeenSet() const { return m_cognitoOptionsHasBeenSet; }
157 template<typename CognitoOptionsT = CognitoOptions>
158 void SetCognitoOptions(CognitoOptionsT&& value) { m_cognitoOptionsHasBeenSet = true; m_cognitoOptions = std::forward<CognitoOptionsT>(value); }
159 template<typename CognitoOptionsT = CognitoOptions>
160 CreateElasticsearchDomainRequest& WithCognitoOptions(CognitoOptionsT&& value) { SetCognitoOptions(std::forward<CognitoOptionsT>(value)); return *this;}
162
164
167 inline const EncryptionAtRestOptions& GetEncryptionAtRestOptions() const { return m_encryptionAtRestOptions; }
168 inline bool EncryptionAtRestOptionsHasBeenSet() const { return m_encryptionAtRestOptionsHasBeenSet; }
169 template<typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
170 void SetEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) { m_encryptionAtRestOptionsHasBeenSet = true; m_encryptionAtRestOptions = std::forward<EncryptionAtRestOptionsT>(value); }
171 template<typename EncryptionAtRestOptionsT = EncryptionAtRestOptions>
172 CreateElasticsearchDomainRequest& WithEncryptionAtRestOptions(EncryptionAtRestOptionsT&& value) { SetEncryptionAtRestOptions(std::forward<EncryptionAtRestOptionsT>(value)); return *this;}
174
176
179 inline const NodeToNodeEncryptionOptions& GetNodeToNodeEncryptionOptions() const { return m_nodeToNodeEncryptionOptions; }
180 inline bool NodeToNodeEncryptionOptionsHasBeenSet() const { return m_nodeToNodeEncryptionOptionsHasBeenSet; }
181 template<typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
182 void SetNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) { m_nodeToNodeEncryptionOptionsHasBeenSet = true; m_nodeToNodeEncryptionOptions = std::forward<NodeToNodeEncryptionOptionsT>(value); }
183 template<typename NodeToNodeEncryptionOptionsT = NodeToNodeEncryptionOptions>
184 CreateElasticsearchDomainRequest& WithNodeToNodeEncryptionOptions(NodeToNodeEncryptionOptionsT&& value) { SetNodeToNodeEncryptionOptions(std::forward<NodeToNodeEncryptionOptionsT>(value)); return *this;}
186
188
195 inline const Aws::Map<Aws::String, Aws::String>& GetAdvancedOptions() const { return m_advancedOptions; }
196 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
197 template<typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
198 void SetAdvancedOptions(AdvancedOptionsT&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::forward<AdvancedOptionsT>(value); }
199 template<typename AdvancedOptionsT = Aws::Map<Aws::String, Aws::String>>
200 CreateElasticsearchDomainRequest& WithAdvancedOptions(AdvancedOptionsT&& value) { SetAdvancedOptions(std::forward<AdvancedOptionsT>(value)); return *this;}
201 template<typename AdvancedOptionsKeyT = Aws::String, typename AdvancedOptionsValueT = Aws::String>
202 CreateElasticsearchDomainRequest& AddAdvancedOptions(AdvancedOptionsKeyT&& key, AdvancedOptionsValueT&& value) {
203 m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::forward<AdvancedOptionsKeyT>(key), std::forward<AdvancedOptionsValueT>(value)); return *this;
204 }
206
208
212 inline const Aws::Map<LogType, LogPublishingOption>& GetLogPublishingOptions() const { return m_logPublishingOptions; }
213 inline bool LogPublishingOptionsHasBeenSet() const { return m_logPublishingOptionsHasBeenSet; }
214 template<typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
215 void SetLogPublishingOptions(LogPublishingOptionsT&& value) { m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions = std::forward<LogPublishingOptionsT>(value); }
216 template<typename LogPublishingOptionsT = Aws::Map<LogType, LogPublishingOption>>
217 CreateElasticsearchDomainRequest& WithLogPublishingOptions(LogPublishingOptionsT&& value) { SetLogPublishingOptions(std::forward<LogPublishingOptionsT>(value)); return *this;}
219 m_logPublishingOptionsHasBeenSet = true; m_logPublishingOptions.emplace(key, value); return *this;
220 }
222
224
228 inline const DomainEndpointOptions& GetDomainEndpointOptions() const { return m_domainEndpointOptions; }
229 inline bool DomainEndpointOptionsHasBeenSet() const { return m_domainEndpointOptionsHasBeenSet; }
230 template<typename DomainEndpointOptionsT = DomainEndpointOptions>
231 void SetDomainEndpointOptions(DomainEndpointOptionsT&& value) { m_domainEndpointOptionsHasBeenSet = true; m_domainEndpointOptions = std::forward<DomainEndpointOptionsT>(value); }
232 template<typename DomainEndpointOptionsT = DomainEndpointOptions>
233 CreateElasticsearchDomainRequest& WithDomainEndpointOptions(DomainEndpointOptionsT&& value) { SetDomainEndpointOptions(std::forward<DomainEndpointOptionsT>(value)); return *this;}
235
237
240 inline const AdvancedSecurityOptionsInput& GetAdvancedSecurityOptions() const { return m_advancedSecurityOptions; }
241 inline bool AdvancedSecurityOptionsHasBeenSet() const { return m_advancedSecurityOptionsHasBeenSet; }
242 template<typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
243 void SetAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) { m_advancedSecurityOptionsHasBeenSet = true; m_advancedSecurityOptions = std::forward<AdvancedSecurityOptionsT>(value); }
244 template<typename AdvancedSecurityOptionsT = AdvancedSecurityOptionsInput>
245 CreateElasticsearchDomainRequest& WithAdvancedSecurityOptions(AdvancedSecurityOptionsT&& value) { SetAdvancedSecurityOptions(std::forward<AdvancedSecurityOptionsT>(value)); return *this;}
247
249
252 inline const AutoTuneOptionsInput& GetAutoTuneOptions() const { return m_autoTuneOptions; }
253 inline bool AutoTuneOptionsHasBeenSet() const { return m_autoTuneOptionsHasBeenSet; }
254 template<typename AutoTuneOptionsT = AutoTuneOptionsInput>
255 void SetAutoTuneOptions(AutoTuneOptionsT&& value) { m_autoTuneOptionsHasBeenSet = true; m_autoTuneOptions = std::forward<AutoTuneOptionsT>(value); }
256 template<typename AutoTuneOptionsT = AutoTuneOptionsInput>
257 CreateElasticsearchDomainRequest& WithAutoTuneOptions(AutoTuneOptionsT&& value) { SetAutoTuneOptions(std::forward<AutoTuneOptionsT>(value)); return *this;}
259
261
264 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
265 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
266 template<typename TagListT = Aws::Vector<Tag>>
267 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
268 template<typename TagListT = Aws::Vector<Tag>>
269 CreateElasticsearchDomainRequest& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
270 template<typename TagListT = Tag>
271 CreateElasticsearchDomainRequest& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
273 private:
274
275 Aws::String m_domainName;
276 bool m_domainNameHasBeenSet = false;
277
278 Aws::String m_elasticsearchVersion;
279 bool m_elasticsearchVersionHasBeenSet = false;
280
281 ElasticsearchClusterConfig m_elasticsearchClusterConfig;
282 bool m_elasticsearchClusterConfigHasBeenSet = false;
283
284 EBSOptions m_eBSOptions;
285 bool m_eBSOptionsHasBeenSet = false;
286
287 Aws::String m_accessPolicies;
288 bool m_accessPoliciesHasBeenSet = false;
289
290 SnapshotOptions m_snapshotOptions;
291 bool m_snapshotOptionsHasBeenSet = false;
292
293 VPCOptions m_vPCOptions;
294 bool m_vPCOptionsHasBeenSet = false;
295
296 CognitoOptions m_cognitoOptions;
297 bool m_cognitoOptionsHasBeenSet = false;
298
299 EncryptionAtRestOptions m_encryptionAtRestOptions;
300 bool m_encryptionAtRestOptionsHasBeenSet = false;
301
302 NodeToNodeEncryptionOptions m_nodeToNodeEncryptionOptions;
303 bool m_nodeToNodeEncryptionOptionsHasBeenSet = false;
304
305 Aws::Map<Aws::String, Aws::String> m_advancedOptions;
306 bool m_advancedOptionsHasBeenSet = false;
307
308 Aws::Map<LogType, LogPublishingOption> m_logPublishingOptions;
309 bool m_logPublishingOptionsHasBeenSet = false;
310
311 DomainEndpointOptions m_domainEndpointOptions;
312 bool m_domainEndpointOptionsHasBeenSet = false;
313
314 AdvancedSecurityOptionsInput m_advancedSecurityOptions;
315 bool m_advancedSecurityOptionsHasBeenSet = false;
316
317 AutoTuneOptionsInput m_autoTuneOptions;
318 bool m_autoTuneOptionsHasBeenSet = false;
319
320 Aws::Vector<Tag> m_tagList;
321 bool m_tagListHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace ElasticsearchService
326} // 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