AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateKxClusterRequest.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/finspace/FinspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/finspace/model/KxClusterType.h>
11#include <aws/finspace/model/TickerplantLogConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/finspace/model/AutoScalingConfiguration.h>
14#include <aws/finspace/model/CapacityConfiguration.h>
15#include <aws/finspace/model/VpcConfiguration.h>
16#include <aws/finspace/model/CodeConfiguration.h>
17#include <aws/finspace/model/KxSavedownStorageConfiguration.h>
18#include <aws/finspace/model/KxAzMode.h>
19#include <aws/core/utils/memory/stl/AWSMap.h>
20#include <aws/finspace/model/KxScalingGroupConfiguration.h>
21#include <aws/finspace/model/KxDatabaseConfiguration.h>
22#include <aws/finspace/model/KxCacheStorageConfiguration.h>
23#include <aws/finspace/model/KxCommandLineArgument.h>
24#include <utility>
25#include <aws/core/utils/UUID.h>
26
27namespace Aws
28{
29namespace finspace
30{
31namespace Model
32{
33
37 {
38 public:
39 AWS_FINSPACE_API CreateKxClusterRequest() = 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 "CreateKxCluster"; }
46
47 AWS_FINSPACE_API Aws::String SerializePayload() const override;
48
49
51
54 inline const Aws::String& GetClientToken() const { return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 template<typename ClientTokenT = Aws::String>
57 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
58 template<typename ClientTokenT = Aws::String>
59 CreateKxClusterRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
61
63
66 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
67 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
68 template<typename EnvironmentIdT = Aws::String>
69 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
70 template<typename EnvironmentIdT = Aws::String>
71 CreateKxClusterRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
73
75
78 inline const Aws::String& GetClusterName() const { return m_clusterName; }
79 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
80 template<typename ClusterNameT = Aws::String>
81 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
82 template<typename ClusterNameT = Aws::String>
83 CreateKxClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
85
87
112 inline KxClusterType GetClusterType() const { return m_clusterType; }
113 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
114 inline void SetClusterType(KxClusterType value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
117
119
125 inline const TickerplantLogConfiguration& GetTickerplantLogConfiguration() const { return m_tickerplantLogConfiguration; }
126 inline bool TickerplantLogConfigurationHasBeenSet() const { return m_tickerplantLogConfigurationHasBeenSet; }
127 template<typename TickerplantLogConfigurationT = TickerplantLogConfiguration>
128 void SetTickerplantLogConfiguration(TickerplantLogConfigurationT&& value) { m_tickerplantLogConfigurationHasBeenSet = true; m_tickerplantLogConfiguration = std::forward<TickerplantLogConfigurationT>(value); }
129 template<typename TickerplantLogConfigurationT = TickerplantLogConfiguration>
130 CreateKxClusterRequest& WithTickerplantLogConfiguration(TickerplantLogConfigurationT&& value) { SetTickerplantLogConfiguration(std::forward<TickerplantLogConfigurationT>(value)); return *this;}
132
134
137 inline const Aws::Vector<KxDatabaseConfiguration>& GetDatabases() const { return m_databases; }
138 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
139 template<typename DatabasesT = Aws::Vector<KxDatabaseConfiguration>>
140 void SetDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases = std::forward<DatabasesT>(value); }
141 template<typename DatabasesT = Aws::Vector<KxDatabaseConfiguration>>
142 CreateKxClusterRequest& WithDatabases(DatabasesT&& value) { SetDatabases(std::forward<DatabasesT>(value)); return *this;}
143 template<typename DatabasesT = KxDatabaseConfiguration>
144 CreateKxClusterRequest& AddDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases.emplace_back(std::forward<DatabasesT>(value)); return *this; }
146
148
152 inline const Aws::Vector<KxCacheStorageConfiguration>& GetCacheStorageConfigurations() const { return m_cacheStorageConfigurations; }
153 inline bool CacheStorageConfigurationsHasBeenSet() const { return m_cacheStorageConfigurationsHasBeenSet; }
154 template<typename CacheStorageConfigurationsT = Aws::Vector<KxCacheStorageConfiguration>>
155 void SetCacheStorageConfigurations(CacheStorageConfigurationsT&& value) { m_cacheStorageConfigurationsHasBeenSet = true; m_cacheStorageConfigurations = std::forward<CacheStorageConfigurationsT>(value); }
156 template<typename CacheStorageConfigurationsT = Aws::Vector<KxCacheStorageConfiguration>>
157 CreateKxClusterRequest& WithCacheStorageConfigurations(CacheStorageConfigurationsT&& value) { SetCacheStorageConfigurations(std::forward<CacheStorageConfigurationsT>(value)); return *this;}
158 template<typename CacheStorageConfigurationsT = KxCacheStorageConfiguration>
159 CreateKxClusterRequest& AddCacheStorageConfigurations(CacheStorageConfigurationsT&& value) { m_cacheStorageConfigurationsHasBeenSet = true; m_cacheStorageConfigurations.emplace_back(std::forward<CacheStorageConfigurationsT>(value)); return *this; }
161
163
167 inline const AutoScalingConfiguration& GetAutoScalingConfiguration() const { return m_autoScalingConfiguration; }
168 inline bool AutoScalingConfigurationHasBeenSet() const { return m_autoScalingConfigurationHasBeenSet; }
169 template<typename AutoScalingConfigurationT = AutoScalingConfiguration>
170 void SetAutoScalingConfiguration(AutoScalingConfigurationT&& value) { m_autoScalingConfigurationHasBeenSet = true; m_autoScalingConfiguration = std::forward<AutoScalingConfigurationT>(value); }
171 template<typename AutoScalingConfigurationT = AutoScalingConfiguration>
172 CreateKxClusterRequest& WithAutoScalingConfiguration(AutoScalingConfigurationT&& value) { SetAutoScalingConfiguration(std::forward<AutoScalingConfigurationT>(value)); return *this;}
174
176
179 inline const Aws::String& GetClusterDescription() const { return m_clusterDescription; }
180 inline bool ClusterDescriptionHasBeenSet() const { return m_clusterDescriptionHasBeenSet; }
181 template<typename ClusterDescriptionT = Aws::String>
182 void SetClusterDescription(ClusterDescriptionT&& value) { m_clusterDescriptionHasBeenSet = true; m_clusterDescription = std::forward<ClusterDescriptionT>(value); }
183 template<typename ClusterDescriptionT = Aws::String>
184 CreateKxClusterRequest& WithClusterDescription(ClusterDescriptionT&& value) { SetClusterDescription(std::forward<ClusterDescriptionT>(value)); return *this;}
186
188
192 inline const CapacityConfiguration& GetCapacityConfiguration() const { return m_capacityConfiguration; }
193 inline bool CapacityConfigurationHasBeenSet() const { return m_capacityConfigurationHasBeenSet; }
194 template<typename CapacityConfigurationT = CapacityConfiguration>
195 void SetCapacityConfiguration(CapacityConfigurationT&& value) { m_capacityConfigurationHasBeenSet = true; m_capacityConfiguration = std::forward<CapacityConfigurationT>(value); }
196 template<typename CapacityConfigurationT = CapacityConfiguration>
197 CreateKxClusterRequest& WithCapacityConfiguration(CapacityConfigurationT&& value) { SetCapacityConfiguration(std::forward<CapacityConfigurationT>(value)); return *this;}
199
201
204 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
205 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
206 template<typename ReleaseLabelT = Aws::String>
207 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
208 template<typename ReleaseLabelT = Aws::String>
209 CreateKxClusterRequest& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
211
213
217 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
218 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
219 template<typename VpcConfigurationT = VpcConfiguration>
220 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
221 template<typename VpcConfigurationT = VpcConfiguration>
222 CreateKxClusterRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
224
226
232 inline const Aws::String& GetInitializationScript() const { return m_initializationScript; }
233 inline bool InitializationScriptHasBeenSet() const { return m_initializationScriptHasBeenSet; }
234 template<typename InitializationScriptT = Aws::String>
235 void SetInitializationScript(InitializationScriptT&& value) { m_initializationScriptHasBeenSet = true; m_initializationScript = std::forward<InitializationScriptT>(value); }
236 template<typename InitializationScriptT = Aws::String>
237 CreateKxClusterRequest& WithInitializationScript(InitializationScriptT&& value) { SetInitializationScript(std::forward<InitializationScriptT>(value)); return *this;}
239
241
244 inline const Aws::Vector<KxCommandLineArgument>& GetCommandLineArguments() const { return m_commandLineArguments; }
245 inline bool CommandLineArgumentsHasBeenSet() const { return m_commandLineArgumentsHasBeenSet; }
246 template<typename CommandLineArgumentsT = Aws::Vector<KxCommandLineArgument>>
247 void SetCommandLineArguments(CommandLineArgumentsT&& value) { m_commandLineArgumentsHasBeenSet = true; m_commandLineArguments = std::forward<CommandLineArgumentsT>(value); }
248 template<typename CommandLineArgumentsT = Aws::Vector<KxCommandLineArgument>>
249 CreateKxClusterRequest& WithCommandLineArguments(CommandLineArgumentsT&& value) { SetCommandLineArguments(std::forward<CommandLineArgumentsT>(value)); return *this;}
250 template<typename CommandLineArgumentsT = KxCommandLineArgument>
251 CreateKxClusterRequest& AddCommandLineArguments(CommandLineArgumentsT&& value) { m_commandLineArgumentsHasBeenSet = true; m_commandLineArguments.emplace_back(std::forward<CommandLineArgumentsT>(value)); return *this; }
253
255
261 inline const CodeConfiguration& GetCode() const { return m_code; }
262 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
263 template<typename CodeT = CodeConfiguration>
264 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
265 template<typename CodeT = CodeConfiguration>
266 CreateKxClusterRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
268
270
275 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
276 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
277 template<typename ExecutionRoleT = Aws::String>
278 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
279 template<typename ExecutionRoleT = Aws::String>
280 CreateKxClusterRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
282
284
290 inline const KxSavedownStorageConfiguration& GetSavedownStorageConfiguration() const { return m_savedownStorageConfiguration; }
291 inline bool SavedownStorageConfigurationHasBeenSet() const { return m_savedownStorageConfigurationHasBeenSet; }
292 template<typename SavedownStorageConfigurationT = KxSavedownStorageConfiguration>
293 void SetSavedownStorageConfiguration(SavedownStorageConfigurationT&& value) { m_savedownStorageConfigurationHasBeenSet = true; m_savedownStorageConfiguration = std::forward<SavedownStorageConfigurationT>(value); }
294 template<typename SavedownStorageConfigurationT = KxSavedownStorageConfiguration>
295 CreateKxClusterRequest& WithSavedownStorageConfiguration(SavedownStorageConfigurationT&& value) { SetSavedownStorageConfiguration(std::forward<SavedownStorageConfigurationT>(value)); return *this;}
297
299
305 inline KxAzMode GetAzMode() const { return m_azMode; }
306 inline bool AzModeHasBeenSet() const { return m_azModeHasBeenSet; }
307 inline void SetAzMode(KxAzMode value) { m_azModeHasBeenSet = true; m_azMode = value; }
308 inline CreateKxClusterRequest& WithAzMode(KxAzMode value) { SetAzMode(value); return *this;}
310
312
315 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
316 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
317 template<typename AvailabilityZoneIdT = Aws::String>
318 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
319 template<typename AvailabilityZoneIdT = Aws::String>
320 CreateKxClusterRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
322
324
328 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
329 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
330 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
331 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
332 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
333 CreateKxClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
334 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
335 CreateKxClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
336 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
337 }
339
341
344 inline const KxScalingGroupConfiguration& GetScalingGroupConfiguration() const { return m_scalingGroupConfiguration; }
345 inline bool ScalingGroupConfigurationHasBeenSet() const { return m_scalingGroupConfigurationHasBeenSet; }
346 template<typename ScalingGroupConfigurationT = KxScalingGroupConfiguration>
347 void SetScalingGroupConfiguration(ScalingGroupConfigurationT&& value) { m_scalingGroupConfigurationHasBeenSet = true; m_scalingGroupConfiguration = std::forward<ScalingGroupConfigurationT>(value); }
348 template<typename ScalingGroupConfigurationT = KxScalingGroupConfiguration>
349 CreateKxClusterRequest& WithScalingGroupConfiguration(ScalingGroupConfigurationT&& value) { SetScalingGroupConfiguration(std::forward<ScalingGroupConfigurationT>(value)); return *this;}
351 private:
352
354 bool m_clientTokenHasBeenSet = true;
355
356 Aws::String m_environmentId;
357 bool m_environmentIdHasBeenSet = false;
358
359 Aws::String m_clusterName;
360 bool m_clusterNameHasBeenSet = false;
361
363 bool m_clusterTypeHasBeenSet = false;
364
365 TickerplantLogConfiguration m_tickerplantLogConfiguration;
366 bool m_tickerplantLogConfigurationHasBeenSet = false;
367
369 bool m_databasesHasBeenSet = false;
370
371 Aws::Vector<KxCacheStorageConfiguration> m_cacheStorageConfigurations;
372 bool m_cacheStorageConfigurationsHasBeenSet = false;
373
374 AutoScalingConfiguration m_autoScalingConfiguration;
375 bool m_autoScalingConfigurationHasBeenSet = false;
376
377 Aws::String m_clusterDescription;
378 bool m_clusterDescriptionHasBeenSet = false;
379
380 CapacityConfiguration m_capacityConfiguration;
381 bool m_capacityConfigurationHasBeenSet = false;
382
383 Aws::String m_releaseLabel;
384 bool m_releaseLabelHasBeenSet = false;
385
386 VpcConfiguration m_vpcConfiguration;
387 bool m_vpcConfigurationHasBeenSet = false;
388
389 Aws::String m_initializationScript;
390 bool m_initializationScriptHasBeenSet = false;
391
392 Aws::Vector<KxCommandLineArgument> m_commandLineArguments;
393 bool m_commandLineArgumentsHasBeenSet = false;
394
395 CodeConfiguration m_code;
396 bool m_codeHasBeenSet = false;
397
398 Aws::String m_executionRole;
399 bool m_executionRoleHasBeenSet = false;
400
401 KxSavedownStorageConfiguration m_savedownStorageConfiguration;
402 bool m_savedownStorageConfigurationHasBeenSet = false;
403
404 KxAzMode m_azMode{KxAzMode::NOT_SET};
405 bool m_azModeHasBeenSet = false;
406
407 Aws::String m_availabilityZoneId;
408 bool m_availabilityZoneIdHasBeenSet = false;
409
411 bool m_tagsHasBeenSet = false;
412
413 KxScalingGroupConfiguration m_scalingGroupConfiguration;
414 bool m_scalingGroupConfigurationHasBeenSet = false;
415 };
416
417} // namespace Model
418} // namespace finspace
419} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
const TickerplantLogConfiguration & GetTickerplantLogConfiguration() const
void SetCommandLineArguments(CommandLineArgumentsT &&value)
void SetClusterDescription(ClusterDescriptionT &&value)
CreateKxClusterRequest & WithCommandLineArguments(CommandLineArgumentsT &&value)
CreateKxClusterRequest & AddDatabases(DatabasesT &&value)
CreateKxClusterRequest & WithClusterType(KxClusterType value)
const Aws::Vector< KxCacheStorageConfiguration > & GetCacheStorageConfigurations() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_FINSPACE_API Aws::String SerializePayload() const override
CreateKxClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateKxClusterRequest & WithClusterDescription(ClusterDescriptionT &&value)
CreateKxClusterRequest & WithAzMode(KxAzMode value)
CreateKxClusterRequest & WithCapacityConfiguration(CapacityConfigurationT &&value)
CreateKxClusterRequest & WithCode(CodeT &&value)
CreateKxClusterRequest & WithVpcConfiguration(VpcConfigurationT &&value)
CreateKxClusterRequest & WithTags(TagsT &&value)
void SetSavedownStorageConfiguration(SavedownStorageConfigurationT &&value)
AWS_FINSPACE_API CreateKxClusterRequest()=default
CreateKxClusterRequest & WithSavedownStorageConfiguration(SavedownStorageConfigurationT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
CreateKxClusterRequest & WithTickerplantLogConfiguration(TickerplantLogConfigurationT &&value)
const KxSavedownStorageConfiguration & GetSavedownStorageConfiguration() const
const Aws::Vector< KxDatabaseConfiguration > & GetDatabases() const
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
CreateKxClusterRequest & WithCacheStorageConfigurations(CacheStorageConfigurationsT &&value)
void SetTickerplantLogConfiguration(TickerplantLogConfigurationT &&value)
CreateKxClusterRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
CreateKxClusterRequest & WithInitializationScript(InitializationScriptT &&value)
CreateKxClusterRequest & WithExecutionRole(ExecutionRoleT &&value)
CreateKxClusterRequest & WithDatabases(DatabasesT &&value)
CreateKxClusterRequest & WithEnvironmentId(EnvironmentIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateKxClusterRequest & WithScalingGroupConfiguration(ScalingGroupConfigurationT &&value)
void SetInitializationScript(InitializationScriptT &&value)
const KxScalingGroupConfiguration & GetScalingGroupConfiguration() const
void SetAutoScalingConfiguration(AutoScalingConfigurationT &&value)
const CapacityConfiguration & GetCapacityConfiguration() const
const VpcConfiguration & GetVpcConfiguration() const
void SetCapacityConfiguration(CapacityConfigurationT &&value)
void SetScalingGroupConfiguration(ScalingGroupConfigurationT &&value)
const Aws::Vector< KxCommandLineArgument > & GetCommandLineArguments() const
CreateKxClusterRequest & WithClientToken(ClientTokenT &&value)
CreateKxClusterRequest & WithAutoScalingConfiguration(AutoScalingConfigurationT &&value)
CreateKxClusterRequest & WithClusterName(ClusterNameT &&value)
CreateKxClusterRequest & WithReleaseLabel(ReleaseLabelT &&value)
void SetCacheStorageConfigurations(CacheStorageConfigurationsT &&value)
CreateKxClusterRequest & AddCommandLineArguments(CommandLineArgumentsT &&value)
CreateKxClusterRequest & AddCacheStorageConfigurations(CacheStorageConfigurationsT &&value)
const AutoScalingConfiguration & GetAutoScalingConfiguration() const
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