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/ClusterNetworkInterface.h>
17#include <aws/sagemaker/model/ClusterSlurmConfig.h>
18#include <aws/sagemaker/model/DeepHealthCheckType.h>
19#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
20#include <aws/sagemaker/model/VpcConfig.h>
55 m_instanceCountHasBeenSet =
true;
56 m_instanceCount = value;
77 m_minInstanceCountHasBeenSet =
true;
78 m_minInstanceCount = value;
92 template <
typename InstanceGroupNameT = Aws::String>
94 m_instanceGroupNameHasBeenSet =
true;
95 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
97 template <
typename InstanceGroupNameT = Aws::String>
111 m_instanceTypeHasBeenSet =
true;
112 m_instanceType = value;
129 template <
typename InstanceRequirementsT = ClusterInstanceRequirements>
131 m_instanceRequirementsHasBeenSet =
true;
132 m_instanceRequirements = std::forward<InstanceRequirementsT>(value);
134 template <
typename InstanceRequirementsT = ClusterInstanceRequirements>
147 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
149 m_lifeCycleConfigHasBeenSet =
true;
150 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
152 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
165 template <
typename ExecutionRoleT = Aws::String>
167 m_executionRoleHasBeenSet =
true;
168 m_executionRole = std::forward<ExecutionRoleT>(value);
170 template <
typename ExecutionRoleT = Aws::String>
191 m_threadsPerCoreHasBeenSet =
true;
192 m_threadsPerCore = value;
207 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
209 m_instanceStorageConfigsHasBeenSet =
true;
210 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
212 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
217 template <
typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
219 m_instanceStorageConfigsHasBeenSet =
true;
220 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
232 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
234 m_onStartDeepHealthChecksHasBeenSet =
true;
235 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
237 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
243 m_onStartDeepHealthChecksHasBeenSet =
true;
244 m_onStartDeepHealthChecks.push_back(value);
260 template <
typename TrainingPlanArnT = Aws::String>
262 m_trainingPlanArnHasBeenSet =
true;
263 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
265 template <
typename TrainingPlanArnT = Aws::String>
303 template <
typename Overr
ideVpcConfigT = VpcConfig>
305 m_overrideVpcConfigHasBeenSet =
true;
306 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
308 template <
typename Overr
ideVpcConfigT = VpcConfig>
322 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
324 m_scheduledUpdateConfigHasBeenSet =
true;
325 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
327 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
355 template <
typename ImageIdT = Aws::String>
357 m_imageIdHasBeenSet =
true;
358 m_imageId = std::forward<ImageIdT>(value);
360 template <
typename ImageIdT = Aws::String>
376 template <
typename KubernetesConfigT = ClusterKubernetesConfig>
378 m_kubernetesConfigHasBeenSet =
true;
379 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
381 template <
typename KubernetesConfigT = ClusterKubernetesConfig>
394 template <
typename SlurmConfigT = ClusterSlurmConfig>
396 m_slurmConfigHasBeenSet =
true;
397 m_slurmConfig = std::forward<SlurmConfigT>(value);
399 template <
typename SlurmConfigT = ClusterSlurmConfig>
412 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
414 m_capacityRequirementsHasBeenSet =
true;
415 m_capacityRequirements = std::forward<CapacityRequirementsT>(value);
417 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
430 template <
typename NetworkInterfaceT = ClusterNetworkInterface>
432 m_networkInterfaceHasBeenSet =
true;
433 m_networkInterface = std::forward<NetworkInterfaceT>(value);
435 template <
typename NetworkInterfaceT = ClusterNetworkInterface>
442 int m_instanceCount{0};
444 int m_minInstanceCount{0};
450 ClusterInstanceRequirements m_instanceRequirements;
452 ClusterLifeCycleConfig m_lifeCycleConfig;
456 int m_threadsPerCore{0};
464 VpcConfig m_overrideVpcConfig;
466 ScheduledUpdateConfig m_scheduledUpdateConfig;
470 ClusterKubernetesConfig m_kubernetesConfig;
472 ClusterSlurmConfig m_slurmConfig;
474 ClusterCapacityRequirements m_capacityRequirements;
476 ClusterNetworkInterface m_networkInterface;
477 bool m_instanceCountHasBeenSet =
false;
478 bool m_minInstanceCountHasBeenSet =
false;
479 bool m_instanceGroupNameHasBeenSet =
false;
480 bool m_instanceTypeHasBeenSet =
false;
481 bool m_instanceRequirementsHasBeenSet =
false;
482 bool m_lifeCycleConfigHasBeenSet =
false;
483 bool m_executionRoleHasBeenSet =
false;
484 bool m_threadsPerCoreHasBeenSet =
false;
485 bool m_instanceStorageConfigsHasBeenSet =
false;
486 bool m_onStartDeepHealthChecksHasBeenSet =
false;
487 bool m_trainingPlanArnHasBeenSet =
false;
488 bool m_overrideVpcConfigHasBeenSet =
false;
489 bool m_scheduledUpdateConfigHasBeenSet =
false;
490 bool m_imageIdHasBeenSet =
false;
491 bool m_kubernetesConfigHasBeenSet =
false;
492 bool m_slurmConfigHasBeenSet =
false;
493 bool m_capacityRequirementsHasBeenSet =
false;
494 bool m_networkInterfaceHasBeenSet =
false;
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupSpecification & WithImageId(ImageIdT &&value)
bool OverrideVpcConfigHasBeenSet() const
bool ImageIdHasBeenSet() const
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetKubernetesConfig(KubernetesConfigT &&value)
ClusterInstanceGroupSpecification & WithNetworkInterface(NetworkInterfaceT &&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)
bool NetworkInterfaceHasBeenSet() const
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
const ClusterNetworkInterface & GetNetworkInterface() 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 SetNetworkInterface(NetworkInterfaceT &&value)
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