7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
12#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
13#include <aws/sagemaker/model/ClusterNodeProvisioningMode.h>
14#include <aws/sagemaker/model/ClusterNodeRecovery.h>
15#include <aws/sagemaker/model/ClusterOrchestrator.h>
16#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
17#include <aws/sagemaker/model/ClusterTieredStorageConfig.h>
18#include <aws/sagemaker/model/Tag.h>
19#include <aws/sagemaker/model/VpcConfig.h>
49 template <
typename ClusterNameT = Aws::String>
51 m_clusterNameHasBeenSet =
true;
52 m_clusterName = std::forward<ClusterNameT>(value);
54 template <
typename ClusterNameT = Aws::String>
67 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
69 m_instanceGroupsHasBeenSet =
true;
70 m_instanceGroups = std::forward<InstanceGroupsT>(value);
72 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
77 template <
typename InstanceGroupsT = ClusterInstanceGroupSpecification>
79 m_instanceGroupsHasBeenSet =
true;
80 m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value));
91 return m_restrictedInstanceGroups;
94 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
96 m_restrictedInstanceGroupsHasBeenSet =
true;
97 m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value);
99 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
104 template <
typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
106 m_restrictedInstanceGroupsHasBeenSet =
true;
107 m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value));
141 template <
typename VpcConfigT = VpcConfig>
143 m_vpcConfigHasBeenSet =
true;
144 m_vpcConfig = std::forward<VpcConfigT>(value);
146 template <
typename VpcConfigT = VpcConfig>
164 template <
typename TagsT = Aws::Vector<Tag>>
166 m_tagsHasBeenSet =
true;
167 m_tags = std::forward<TagsT>(value);
169 template <
typename TagsT = Aws::Vector<Tag>>
171 SetTags(std::forward<TagsT>(value));
174 template <
typename TagsT = Tag>
176 m_tagsHasBeenSet =
true;
177 m_tags.emplace_back(std::forward<TagsT>(value));
190 template <
typename OrchestratorT = ClusterOrchestrator>
192 m_orchestratorHasBeenSet =
true;
193 m_orchestrator = std::forward<OrchestratorT>(value);
195 template <
typename OrchestratorT = ClusterOrchestrator>
212 m_nodeRecoveryHasBeenSet =
true;
213 m_nodeRecovery = value;
230 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
232 m_tieredStorageConfigHasBeenSet =
true;
233 m_tieredStorageConfig = std::forward<TieredStorageConfigT>(value);
235 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
255 m_nodeProvisioningModeHasBeenSet =
true;
256 m_nodeProvisioningMode = value;
275 template <
typename ClusterRoleT = Aws::String>
277 m_clusterRoleHasBeenSet =
true;
278 m_clusterRole = std::forward<ClusterRoleT>(value);
280 template <
typename ClusterRoleT = Aws::String>
294 template <
typename AutoScalingT = ClusterAutoScalingConfig>
296 m_autoScalingHasBeenSet =
true;
297 m_autoScaling = std::forward<AutoScalingT>(value);
299 template <
typename AutoScalingT = ClusterAutoScalingConfig>
320 ClusterTieredStorageConfig m_tieredStorageConfig;
326 ClusterAutoScalingConfig m_autoScaling;
327 bool m_clusterNameHasBeenSet =
false;
328 bool m_instanceGroupsHasBeenSet =
false;
329 bool m_restrictedInstanceGroupsHasBeenSet =
false;
330 bool m_vpcConfigHasBeenSet =
false;
331 bool m_tagsHasBeenSet =
false;
332 bool m_orchestratorHasBeenSet =
false;
333 bool m_nodeRecoveryHasBeenSet =
false;
334 bool m_tieredStorageConfigHasBeenSet =
false;
335 bool m_nodeProvisioningModeHasBeenSet =
false;
336 bool m_clusterRoleHasBeenSet =
false;
337 bool m_autoScalingHasBeenSet =
false;
CreateClusterRequest & WithOrchestrator(OrchestratorT &&value)
const ClusterOrchestrator & GetOrchestrator() const
ClusterNodeProvisioningMode GetNodeProvisioningMode() const
const Aws::Vector< Tag > & GetTags() const
bool RestrictedInstanceGroupsHasBeenSet() const
CreateClusterRequest & WithRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
CreateClusterRequest & AddTags(TagsT &&value)
CreateClusterRequest & AddInstanceGroups(InstanceGroupsT &&value)
ClusterNodeRecovery GetNodeRecovery() const
CreateClusterRequest & WithInstanceGroups(InstanceGroupsT &&value)
bool ClusterRoleHasBeenSet() const
CreateClusterRequest & WithClusterName(ClusterNameT &&value)
CreateClusterRequest & WithClusterRole(ClusterRoleT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
bool OrchestratorHasBeenSet() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
void SetClusterName(ClusterNameT &&value)
const ClusterTieredStorageConfig & GetTieredStorageConfig() const
CreateClusterRequest & WithNodeProvisioningMode(ClusterNodeProvisioningMode value)
const Aws::Vector< ClusterRestrictedInstanceGroupSpecification > & GetRestrictedInstanceGroups() const
void SetOrchestrator(OrchestratorT &&value)
void SetTieredStorageConfig(TieredStorageConfigT &&value)
bool AutoScalingHasBeenSet() const
bool NodeProvisioningModeHasBeenSet() const
CreateClusterRequest & WithNodeRecovery(ClusterNodeRecovery value)
void SetNodeProvisioningMode(ClusterNodeProvisioningMode value)
bool NodeRecoveryHasBeenSet() const
bool VpcConfigHasBeenSet() const
bool ClusterNameHasBeenSet() const
const Aws::Vector< ClusterInstanceGroupSpecification > & GetInstanceGroups() const
CreateClusterRequest & WithVpcConfig(VpcConfigT &&value)
CreateClusterRequest & WithTieredStorageConfig(TieredStorageConfigT &&value)
const ClusterAutoScalingConfig & GetAutoScaling() const
void SetVpcConfig(VpcConfigT &&value)
CreateClusterRequest & WithAutoScaling(AutoScalingT &&value)
const VpcConfig & GetVpcConfig() const
const Aws::String & GetClusterRole() const
bool InstanceGroupsHasBeenSet() const
AWS_SAGEMAKER_API CreateClusterRequest()=default
void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
void SetInstanceGroups(InstanceGroupsT &&value)
CreateClusterRequest & AddRestrictedInstanceGroups(RestrictedInstanceGroupsT &&value)
bool TieredStorageConfigHasBeenSet() const
bool TagsHasBeenSet() const
void SetNodeRecovery(ClusterNodeRecovery value)
void SetClusterRole(ClusterRoleT &&value)
const Aws::String & GetClusterName() const
void SetAutoScaling(AutoScalingT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
ClusterNodeProvisioningMode
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector