7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ClusterInstanceType.h>
10#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/VpcConfig.h>
13#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
14#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
15#include <aws/sagemaker/model/DeepHealthCheckType.h>
55 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
65 template<
typename InstanceGroupNameT = Aws::String>
66 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet =
true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
67 template<
typename InstanceGroupNameT = Aws::String>
87 template<
typename LifeCycleConfigT = ClusterLifeCycleConfig>
88 void SetLifeCycleConfig(LifeCycleConfigT&& value) { m_lifeCycleConfigHasBeenSet =
true; m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value); }
89 template<
typename LifeCycleConfigT = ClusterLifeCycleConfig>
99 template<
typename ExecutionRoleT = Aws::String>
100 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet =
true; m_executionRole = std::forward<ExecutionRoleT>(value); }
101 template<
typename ExecutionRoleT = Aws::String>
118 inline void SetThreadsPerCore(
int value) { m_threadsPerCoreHasBeenSet =
true; m_threadsPerCore = value; }
129 template<
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
130 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet =
true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
131 template<
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
133 template<
typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
144 template<
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
145 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet =
true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
146 template<
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
162 template<
typename TrainingPlanArnT = Aws::String>
163 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet =
true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
164 template<
typename TrainingPlanArnT = Aws::String>
199 template<
typename Overr
ideVpcConfigT = VpcConfig>
200 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet =
true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
201 template<
typename Overr
ideVpcConfigT = VpcConfig>
212 template<
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
213 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet =
true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
214 template<
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
219 int m_instanceCount{0};
220 bool m_instanceCountHasBeenSet =
false;
223 bool m_instanceGroupNameHasBeenSet =
false;
226 bool m_instanceTypeHasBeenSet =
false;
228 ClusterLifeCycleConfig m_lifeCycleConfig;
229 bool m_lifeCycleConfigHasBeenSet =
false;
232 bool m_executionRoleHasBeenSet =
false;
234 int m_threadsPerCore{0};
235 bool m_threadsPerCoreHasBeenSet =
false;
238 bool m_instanceStorageConfigsHasBeenSet =
false;
241 bool m_onStartDeepHealthChecksHasBeenSet =
false;
244 bool m_trainingPlanArnHasBeenSet =
false;
246 VpcConfig m_overrideVpcConfig;
247 bool m_overrideVpcConfigHasBeenSet =
false;
249 ScheduledUpdateConfig m_scheduledUpdateConfig;
250 bool m_scheduledUpdateConfigHasBeenSet =
false;
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
bool OverrideVpcConfigHasBeenSet() const
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
void SetThreadsPerCore(int value)
ClusterInstanceGroupSpecification & WithExecutionRole(ExecutionRoleT &&value)
void SetScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
int GetInstanceCount() const
ClusterInstanceGroupSpecification & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
void SetLifeCycleConfig(LifeCycleConfigT &&value)
ClusterInstanceGroupSpecification & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupSpecification & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
void SetInstanceType(ClusterInstanceType 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 & GetTrainingPlanArn() const
ClusterInstanceGroupSpecification & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
bool ThreadsPerCoreHasBeenSet() const
ClusterInstanceGroupSpecification & WithInstanceGroupName(InstanceGroupNameT &&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 ClusterLifeCycleConfig & GetLifeCycleConfig() const
const Aws::String & GetInstanceGroupName() const
const VpcConfig & GetOverrideVpcConfig() const
int GetThreadsPerCore() const
ClusterInstanceGroupSpecification & WithInstanceCount(int value)
bool ScheduledUpdateConfigHasBeenSet() const
void SetTrainingPlanArn(TrainingPlanArnT &&value)
bool InstanceTypeHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterInstanceGroupSpecification & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
bool InstanceGroupNameHasBeenSet() const
ClusterInstanceType GetInstanceType() const
bool InstanceCountHasBeenSet() const
ClusterInstanceGroupSpecification & WithLifeCycleConfig(LifeCycleConfigT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&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