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/ClusterNodeProvisioningMode.h>
15#include <aws/sagemaker/model/ClusterAutoScalingConfig.h>
16#include <aws/sagemaker/model/ClusterInstanceGroupSpecification.h>
17#include <aws/sagemaker/model/ClusterRestrictedInstanceGroupSpecification.h>
18#include <aws/sagemaker/model/Tag.h>
52 template<
typename ClusterNameT = Aws::String>
53 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet =
true; m_clusterName = std::forward<ClusterNameT>(value); }
54 template<
typename ClusterNameT = Aws::String>
64 template<
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
65 void SetInstanceGroups(InstanceGroupsT&& value) { m_instanceGroupsHasBeenSet =
true; m_instanceGroups = std::forward<InstanceGroupsT>(value); }
66 template<
typename InstanceGroupsT = Aws::Vector<ClusterInstanceGroupSpecification>>
68 template<
typename InstanceGroupsT = ClusterInstanceGroupSpecification>
79 template<
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
80 void SetRestrictedInstanceGroups(RestrictedInstanceGroupsT&& value) { m_restrictedInstanceGroupsHasBeenSet =
true; m_restrictedInstanceGroups = std::forward<RestrictedInstanceGroupsT>(value); }
81 template<
typename RestrictedInstanceGroupsT = Aws::Vector<ClusterRestrictedInstanceGroupSpecification>>
83 template<
typename RestrictedInstanceGroupsT = ClusterRestrictedInstanceGroupSpecification>
116 template<
typename VpcConfigT = VpcConfig>
117 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
118 template<
typename VpcConfigT = VpcConfig>
133 template<
typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
135 template<
typename TagsT = Aws::Vector<Tag>>
137 template<
typename TagsT = Tag>
149 template<
typename OrchestratorT = ClusterOrchestrator>
150 void SetOrchestrator(OrchestratorT&& value) { m_orchestratorHasBeenSet =
true; m_orchestrator = std::forward<OrchestratorT>(value); }
151 template<
typename OrchestratorT = ClusterOrchestrator>
195 template<
typename ClusterRoleT = Aws::String>
196 void SetClusterRole(ClusterRoleT&& value) { m_clusterRoleHasBeenSet =
true; m_clusterRole = std::forward<ClusterRoleT>(value); }
197 template<
typename ClusterRoleT = Aws::String>
208 template<
typename AutoScalingT = ClusterAutoScalingConfig>
209 void SetAutoScaling(AutoScalingT&& value) { m_autoScalingHasBeenSet =
true; m_autoScaling = std::forward<AutoScalingT>(value); }
210 template<
typename AutoScalingT = ClusterAutoScalingConfig>
216 bool m_clusterNameHasBeenSet =
false;
219 bool m_instanceGroupsHasBeenSet =
false;
222 bool m_restrictedInstanceGroupsHasBeenSet =
false;
225 bool m_vpcConfigHasBeenSet =
false;
228 bool m_tagsHasBeenSet =
false;
231 bool m_orchestratorHasBeenSet =
false;
234 bool m_nodeRecoveryHasBeenSet =
false;
237 bool m_nodeProvisioningModeHasBeenSet =
false;
240 bool m_clusterRoleHasBeenSet =
false;
242 ClusterAutoScalingConfig m_autoScaling;
243 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)
CreateClusterRequest & WithNodeProvisioningMode(ClusterNodeProvisioningMode value)
const Aws::Vector< ClusterRestrictedInstanceGroupSpecification > & GetRestrictedInstanceGroups() const
void SetOrchestrator(OrchestratorT &&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)
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 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