AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/VpcConfig.h>
12#include <aws/sagemaker/model/ClusterOrchestrator.h>
13#include <aws/sagemaker/model/ClusterNodeRecovery.h>
14#include <aws/sagemaker/model/ClusterTieredStorageConfig.h>
15#include <aws/sagemaker/model/ClusterNodeProvisioningMode.h>
16#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
17#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
18#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
19#include <aws/sagemaker/model/Tag.h>
20#include <utility>
21
22namespace Aws
23{
24namespace SageMaker
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_SAGEMAKER_API CreateClusterRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
41
42 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
43
45
46
48
51 inline const Aws::String& GetClusterName() const { return m_clusterName; }
52 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
53 template<typename ClusterNameT = Aws::String>
54 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
55 template<typename ClusterNameT = Aws::String>
56 CreateClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
58
60
63 inline const Aws::Vector<ClusterInstanceGroupSpecification>& GetInstanceGroups() const { return m_instanceGroups; }
64 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
65 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
66 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
67 template<typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
68 CreateClusterRequest& WithInstanceGroups(InstanceGroupsT&& value) { SetInstanceGroups(std::forward<InstanceGroupsT>(value)); return *this;}
69 template<typename InstanceGroupsT = ClusterInstanceGroupSpecification>
70 CreateClusterRequest& AddInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value)); return *this; }
72
74
78 inline const Aws::Vector<ClusterRestrictedInstanceGroupSpecification>& GetRestrictedInstanceGroups() const { return m_restrictedInstanceGroups; }
79 inline bool RestrictedInstanceGroupsHasBeenSet() const { return m_restrictedInstanceGroupsHasBeenSet; }
80 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
81 void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value); }
82 template<typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
83 CreateClusterRequest& WithRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { SetRestrictedInstanceGroups(std::forward<RestrictedInstanceGroupsT>(value)); return *this;}
84 template<typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
85 CreateClusterRequest& AddRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet = true; m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value)); return *this; }
87
89
115 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
116 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
117 template<typename VpcConfigT = VpcConfig>
118 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
119 template<typename VpcConfigT = VpcConfig>
120 CreateClusterRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
122
124
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Vector<Tag>>
137 CreateClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsT = Tag>
139 CreateClusterRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
141
143
148 inline const ClusterOrchestrator& GetOrchestrator() const { return m_orchestrator; }
149 inline bool OrchestratorHasBeenSet() const { return m_orchestratorHasBeenSet; }
150 template<typename OrchestratorT = ClusterOrchestrator>
151 void SetOrchestrator(OrchestratorT&& value) { m_orchestratorHasBeenSet = true; m_orchestrator = std::forward<OrchestratorT>(value); }
152 template<typename OrchestratorT = ClusterOrchestrator>
153 CreateClusterRequest& WithOrchestrator(OrchestratorT&& value) { SetOrchestrator(std::forward<OrchestratorT>(value)); return *this;}
155
157
163 inline ClusterNodeRecovery GetNodeRecovery() const { return m_nodeRecovery; }
164 inline bool NodeRecoveryHasBeenSet() const { return m_nodeRecoveryHasBeenSet; }
165 inline void SetNodeRecovery(ClusterNodeRecovery value) { m_nodeRecoveryHasBeenSet = true; m_nodeRecovery = value; }
168
170
176 inline const ClusterTieredStorageConfig& GetTieredStorageConfig() const { return m_tieredStorageConfig; }
177 inline bool TieredStorageConfigHasBeenSet() const { return m_tieredStorageConfigHasBeenSet; }
178 template<typename TieredStorageConfigT = ClusterTieredStorageConfig>
179 void SetTieredStorageConfig(TieredStorageConfigT&& value) { m_tieredStorageConfigHasBeenSet = true; m_tieredStorageConfig = std::forward<TieredStorageConfigT>(value); }
180 template<typename TieredStorageConfigT = ClusterTieredStorageConfig>
181 CreateClusterRequest& WithTieredStorageConfig(TieredStorageConfigT&& value) { SetTieredStorageConfig(std::forward<TieredStorageConfigT>(value)); return *this;}
183
185
194 inline ClusterNodeProvisioningMode GetNodeProvisioningMode() const { return m_nodeProvisioningMode; }
195 inline bool NodeProvisioningModeHasBeenSet() const { return m_nodeProvisioningModeHasBeenSet; }
196 inline void SetNodeProvisioningMode(ClusterNodeProvisioningMode value) { m_nodeProvisioningModeHasBeenSet = true; m_nodeProvisioningMode = value; }
199
201
209 inline const Aws::String& GetClusterRole() const { return m_clusterRole; }
210 inline bool ClusterRoleHasBeenSet() const { return m_clusterRoleHasBeenSet; }
211 template<typename ClusterRoleT = Aws::String>
212 void SetClusterRole(ClusterRoleT&& value) { m_clusterRoleHasBeenSet = true; m_clusterRole = std::forward<ClusterRoleT>(value); }
213 template<typename ClusterRoleT = Aws::String>
214 CreateClusterRequest& WithClusterRole(ClusterRoleT&& value) { SetClusterRole(std::forward<ClusterRoleT>(value)); return *this;}
216
218
222 inline const ClusterAutoScalingConfig& GetAutoScaling() const { return m_autoScaling; }
223 inline bool AutoScalingHasBeenSet() const { return m_autoScalingHasBeenSet; }
224 template<typename AutoScalingT = ClusterAutoScalingConfig>
225 void SetAutoScaling(AutoScalingT&& value) { m_autoScalingHasBeenSet = true; m_autoScaling = std::forward<AutoScalingT>(value); }
226 template<typename AutoScalingT = ClusterAutoScalingConfig>
227 CreateClusterRequest& WithAutoScaling(AutoScalingT&& value) { SetAutoScaling(std::forward<AutoScalingT>(value)); return *this;}
229 private:
230
231 Aws::String m_clusterName;
232 bool m_clusterNameHasBeenSet = false;
233
235 bool m_instanceGroupsHasBeenSet = false;
236
238 bool m_restrictedInstanceGroupsHasBeenSet = false;
239
240 VpcConfig m_vpcConfig;
241 bool m_vpcConfigHasBeenSet = false;
242
243 Aws::Vector<Tag> m_tags;
244 bool m_tagsHasBeenSet = false;
245
246 ClusterOrchestrator m_orchestrator;
247 bool m_orchestratorHasBeenSet = false;
248
250 bool m_nodeRecoveryHasBeenSet = false;
251
252 ClusterTieredStorageConfig m_tieredStorageConfig;
253 bool m_tieredStorageConfigHasBeenSet = false;
254
256 bool m_nodeProvisioningModeHasBeenSet = false;
257
258 Aws::String m_clusterRole;
259 bool m_clusterRoleHasBeenSet = false;
260
261 ClusterAutoScalingConfig m_autoScaling;
262 bool m_autoScalingHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace SageMaker
267} // namespace Aws
CreateClusterRequest & WithOrchestrator(OrchestratorT &&value)
const ClusterOrchestrator & GetOrchestrator() const
ClusterNodeProvisioningMode GetNodeProvisioningMode() const
const Aws::Vector< Tag > & GetTags() const
CreateClusterRequest & WithRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
CreateClusterRequest & AddTags(TagsT &&value)
CreateClusterRequest & AddInstanceGroups(InstanceGroupsT &&value)
CreateClusterRequest & WithInstanceGroups(InstanceGroupsT &&value)
CreateClusterRequest & WithClusterName(ClusterNameT &&value)
CreateClusterRequest & WithClusterRole(ClusterRoleT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const ClusterTieredStorageConfig & GetTieredStorageConfig() const
CreateClusterRequest & WithNodeProvisioningMode(ClusterNodeProvisioningMode value)
const Aws::Vector< ClusterRestrictedInstanceGroupSpecification > & GetRestrictedInstanceGroups() const
void SetTieredStorageConfig(TieredStorageConfigT &&value)
CreateClusterRequest & WithNodeRecovery(ClusterNodeRecovery value)
void SetNodeProvisioningMode(ClusterNodeProvisioningMode value)
const Aws::Vector< ClusterInstanceGroupSpecification > & GetInstanceGroups() const
CreateClusterRequest & WithVpcConfig(VpcConfigT &&value)
CreateClusterRequest & WithTieredStorageConfig(TieredStorageConfigT &&value)
const ClusterAutoScalingConfig & GetAutoScaling() const
CreateClusterRequest & WithAutoScaling(AutoScalingT &&value)
AWS_SAGEMAKER_API CreateClusterRequest()=default
void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetInstanceGroups(InstanceGroupsT &&value)
CreateClusterRequest & AddRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetNodeRecovery(ClusterNodeRecovery value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector