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/ClusterRestrictedInstanceGroupsConfig.h>
18#include <aws/sagemaker/model/ClusterTieredStorageConfig.h>
19#include <aws/sagemaker/model/Tag.h>
20#include <aws/sagemaker/model/VpcConfig.h>
50 template <
typename ClusterNameT = Aws::String>
52 m_clusterNameHasBeenSet =
true;
53 m_clusterName = std::forward<ClusterNameT>(value);
55 template <
typename ClusterNameT = Aws::String>
68 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
70 m_instanceGroupsHasBeenSet =
true;
71 m_instanceGroups = std::forward<InstanceGroupsT>(value);
73 template <
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
78 template <
typename InstanceGroupsT = ClusterInstanceGroupSpecification>
80 m_instanceGroupsHasBeenSet =
true;
81 m_instanceGroups.emplace_back(std::forward<InstanceGroupsT>(value));
92 return m_restrictedInstanceGroups;
95 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
97 m_restrictedInstanceGroupsHasBeenSet =
true;
98 m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value);
100 template <
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
105 template <
typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
107 m_restrictedInstanceGroupsHasBeenSet =
true;
108 m_restrictedInstanceGroups.emplace_back(std::forward<RestrictedInstanceGroupsT>(value));
120 template <
typename RestrictedInstanceGroupsConfigT = ClusterRestrictedInstanceGroupsConfig>
122 m_restrictedInstanceGroupsConfigHasBeenSet =
true;
123 m_restrictedInstanceGroupsConfig = std::forward<RestrictedInstanceGroupsConfigT>(value);
125 template <
typename RestrictedInstanceGroupsConfigT = ClusterRestrictedInstanceGroupsConfig>
161 template <
typename VpcConfigT = VpcConfig>
163 m_vpcConfigHasBeenSet =
true;
164 m_vpcConfig = std::forward<VpcConfigT>(value);
166 template <
typename VpcConfigT = VpcConfig>
184 template <
typename TagsT = Aws::Vector<Tag>>
186 m_tagsHasBeenSet =
true;
187 m_tags = std::forward<TagsT>(value);
189 template <
typename TagsT = Aws::Vector<Tag>>
191 SetTags(std::forward<TagsT>(value));
194 template <
typename TagsT = Tag>
196 m_tagsHasBeenSet =
true;
197 m_tags.emplace_back(std::forward<TagsT>(value));
214 template <
typename OrchestratorT = ClusterOrchestrator>
216 m_orchestratorHasBeenSet =
true;
217 m_orchestrator = std::forward<OrchestratorT>(value);
219 template <
typename OrchestratorT = ClusterOrchestrator>
236 m_nodeRecoveryHasBeenSet =
true;
237 m_nodeRecovery = value;
254 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
256 m_tieredStorageConfigHasBeenSet =
true;
257 m_tieredStorageConfig = std::forward<TieredStorageConfigT>(value);
259 template <
typename TieredStorageConfigT = ClusterTieredStorageConfig>
279 m_nodeProvisioningModeHasBeenSet =
true;
280 m_nodeProvisioningMode = value;
299 template <
typename ClusterRoleT = Aws::String>
301 m_clusterRoleHasBeenSet =
true;
302 m_clusterRole = std::forward<ClusterRoleT>(value);
304 template <
typename ClusterRoleT = Aws::String>
318 template <
typename AutoScalingT = ClusterAutoScalingConfig>
320 m_autoScalingHasBeenSet =
true;
321 m_autoScaling = std::forward<AutoScalingT>(value);
323 template <
typename AutoScalingT = ClusterAutoScalingConfig>
346 ClusterTieredStorageConfig m_tieredStorageConfig;
352 ClusterAutoScalingConfig m_autoScaling;
353 bool m_clusterNameHasBeenSet =
false;
354 bool m_instanceGroupsHasBeenSet =
false;
355 bool m_restrictedInstanceGroupsHasBeenSet =
false;
356 bool m_restrictedInstanceGroupsConfigHasBeenSet =
false;
357 bool m_vpcConfigHasBeenSet =
false;
358 bool m_tagsHasBeenSet =
false;
359 bool m_orchestratorHasBeenSet =
false;
360 bool m_nodeRecoveryHasBeenSet =
false;
361 bool m_tieredStorageConfigHasBeenSet =
false;
362 bool m_nodeProvisioningModeHasBeenSet =
false;
363 bool m_clusterRoleHasBeenSet =
false;
364 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
bool RestrictedInstanceGroupsConfigHasBeenSet() 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)
CreateClusterRequest & WithRestrictedInstanceGroupsConfig(RestrictedInstanceGroupsConfigT &&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)
const ClusterRestrictedInstanceGroupsConfig & GetRestrictedInstanceGroupsConfig() const
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 SetRestrictedInstanceGroupsConfig(RestrictedInstanceGroupsConfigT &&value)
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