7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ClusterCapacityRequirements.h>
11#include <aws/sagemaker/model/ClusterInstanceRequirements.h>
12#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
13#include <aws/sagemaker/model/ClusterInstanceType.h>
14#include <aws/sagemaker/model/ClusterKubernetesConfig.h>
15#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
16#include <aws/sagemaker/model/ClusterSlurmConfig.h>
17#include <aws/sagemaker/model/DeepHealthCheckType.h>
18#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
19#include <aws/sagemaker/model/VpcConfig.h>
54 m_instanceCountHasBeenSet =
true;
55 m_instanceCount = value;
76 m_minInstanceCountHasBeenSet =
true;
77 m_minInstanceCount = value;
91 template <
typename InstanceGroupNameT = Aws::String>
93 m_instanceGroupNameHasBeenSet =
true;
94 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
96 template <
typename InstanceGroupNameT = Aws::String>
110 m_instanceTypeHasBeenSet =
true;
111 m_instanceType = value;
128 template <
typename InstanceRequirementsT = ClusterInstanceRequirements>
130 m_instanceRequirementsHasBeenSet =
true;
131 m_instanceRequirements = std::forward<InstanceRequirementsT>(value);
133 template <
typename InstanceRequirementsT = ClusterInstanceRequirements>
146 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
148 m_lifeCycleConfigHasBeenSet =
true;
149 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
151 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
164 template <
typename ExecutionRoleT = Aws::String>
166 m_executionRoleHasBeenSet =
true;
167 m_executionRole = std::forward<ExecutionRoleT>(value);
169 template <
typename ExecutionRoleT = Aws::String>
190 m_threadsPerCoreHasBeenSet =
true;
191 m_threadsPerCore = value;
206 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
208 m_instanceStorageConfigsHasBeenSet =
true;
209 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
211 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
216 template <
typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
218 m_instanceStorageConfigsHasBeenSet =
true;
219 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
231 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
233 m_onStartDeepHealthChecksHasBeenSet =
true;
234 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
236 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
242 m_onStartDeepHealthChecksHasBeenSet =
true;
243 m_onStartDeepHealthChecks.push_back(value);
259 template <
typename TrainingPlanArnT = Aws::String>
261 m_trainingPlanArnHasBeenSet =
true;
262 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
264 template <
typename TrainingPlanArnT = Aws::String>
302 template <
typename Overr
ideVpcConfigT = VpcConfig>
304 m_overrideVpcConfigHasBeenSet =
true;
305 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
307 template <
typename Overr
ideVpcConfigT = VpcConfig>
321 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
323 m_scheduledUpdateConfigHasBeenSet =
true;
324 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
326 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
354 template <
typename ImageIdT = Aws::String>
356 m_imageIdHasBeenSet =
true;
357 m_imageId = std::forward<ImageIdT>(value);
359 template <
typename ImageIdT = Aws::String>
375 template <
typename KubernetesConfigT = ClusterKubernetesConfig>
377 m_kubernetesConfigHasBeenSet =
true;
378 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
380 template <
typename KubernetesConfigT = ClusterKubernetesConfig>
393 template <
typename SlurmConfigT = ClusterSlurmConfig>
395 m_slurmConfigHasBeenSet =
true;
396 m_slurmConfig = std::forward<SlurmConfigT>(value);
398 template <
typename SlurmConfigT = ClusterSlurmConfig>
411 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
413 m_capacityRequirementsHasBeenSet =
true;
414 m_capacityRequirements = std::forward<CapacityRequirementsT>(value);
416 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
423 int m_instanceCount{0};
425 int m_minInstanceCount{0};
431 ClusterInstanceRequirements m_instanceRequirements;
433 ClusterLifeCycleConfig m_lifeCycleConfig;
437 int m_threadsPerCore{0};
445 VpcConfig m_overrideVpcConfig;
447 ScheduledUpdateConfig m_scheduledUpdateConfig;
451 ClusterKubernetesConfig m_kubernetesConfig;
453 ClusterSlurmConfig m_slurmConfig;
455 ClusterCapacityRequirements m_capacityRequirements;
456 bool m_instanceCountHasBeenSet =
false;
457 bool m_minInstanceCountHasBeenSet =
false;
458 bool m_instanceGroupNameHasBeenSet =
false;
459 bool m_instanceTypeHasBeenSet =
false;
460 bool m_instanceRequirementsHasBeenSet =
false;
461 bool m_lifeCycleConfigHasBeenSet =
false;
462 bool m_executionRoleHasBeenSet =
false;
463 bool m_threadsPerCoreHasBeenSet =
false;
464 bool m_instanceStorageConfigsHasBeenSet =
false;
465 bool m_onStartDeepHealthChecksHasBeenSet =
false;
466 bool m_trainingPlanArnHasBeenSet =
false;
467 bool m_overrideVpcConfigHasBeenSet =
false;
468 bool m_scheduledUpdateConfigHasBeenSet =
false;
469 bool m_imageIdHasBeenSet =
false;
470 bool m_kubernetesConfigHasBeenSet =
false;
471 bool m_slurmConfigHasBeenSet =
false;
472 bool m_capacityRequirementsHasBeenSet =
false;
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupSpecification & WithImageId(ImageIdT &&value)
bool OverrideVpcConfigHasBeenSet() const
bool ImageIdHasBeenSet() const
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetKubernetesConfig(KubernetesConfigT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
void SetThreadsPerCore(int value)
ClusterInstanceGroupSpecification & WithExecutionRole(ExecutionRoleT &&value)
void SetMinInstanceCount(int value)
void SetScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
const ClusterCapacityRequirements & GetCapacityRequirements() const
void SetCapacityRequirements(CapacityRequirementsT &&value)
int GetInstanceCount() const
ClusterInstanceGroupSpecification & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
void SetLifeCycleConfig(LifeCycleConfigT &&value)
ClusterInstanceGroupSpecification & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupSpecification & WithInstanceRequirements(InstanceRequirementsT &&value)
ClusterInstanceGroupSpecification & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
void SetInstanceType(ClusterInstanceType value)
void SetSlurmConfig(SlurmConfigT &&value)
ClusterInstanceGroupSpecification & WithThreadsPerCore(int value)
ClusterInstanceGroupSpecification & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionRoleHasBeenSet() const
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
const Aws::String & GetImageId() const
const Aws::String & GetTrainingPlanArn() const
ClusterInstanceGroupSpecification & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
int GetMinInstanceCount() const
bool ThreadsPerCoreHasBeenSet() const
ClusterInstanceGroupSpecification & WithInstanceGroupName(InstanceGroupNameT &&value)
ClusterInstanceGroupSpecification & WithCapacityRequirements(CapacityRequirementsT &&value)
void SetInstanceGroupName(InstanceGroupNameT &&value)
void SetInstanceCount(int value)
bool LifeCycleConfigHasBeenSet() const
bool TrainingPlanArnHasBeenSet() const
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
const ClusterInstanceRequirements & GetInstanceRequirements() const
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
const Aws::String & GetInstanceGroupName() const
const VpcConfig & GetOverrideVpcConfig() const
void SetInstanceRequirements(InstanceRequirementsT &&value)
int GetThreadsPerCore() const
ClusterInstanceGroupSpecification & WithInstanceCount(int value)
const ClusterKubernetesConfig & GetKubernetesConfig() const
void SetImageId(ImageIdT &&value)
const ClusterSlurmConfig & GetSlurmConfig() const
bool ScheduledUpdateConfigHasBeenSet() const
ClusterInstanceGroupSpecification & WithMinInstanceCount(int value)
void SetTrainingPlanArn(TrainingPlanArnT &&value)
bool InstanceTypeHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool MinInstanceCountHasBeenSet() const
bool SlurmConfigHasBeenSet() const
ClusterInstanceGroupSpecification & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
bool InstanceGroupNameHasBeenSet() const
ClusterInstanceType GetInstanceType() const
bool InstanceCountHasBeenSet() const
bool KubernetesConfigHasBeenSet() const
ClusterInstanceGroupSpecification & WithLifeCycleConfig(LifeCycleConfigT &&value)
bool InstanceRequirementsHasBeenSet() const
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
bool CapacityRequirementsHasBeenSet() const
ClusterInstanceGroupSpecification & WithKubernetesConfig(KubernetesConfigT &&value)
ClusterInstanceGroupSpecification & WithSlurmConfig(SlurmConfigT &&value)
const ScheduledUpdateConfig & GetScheduledUpdateConfig() const
const Aws::String & GetExecutionRole() const
ClusterInstanceGroupSpecification & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
ClusterInstanceGroupSpecification & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupSpecification()=default
bool InstanceStorageConfigsHasBeenSet() const
bool OnStartDeepHealthChecksHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue