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/InstanceGroupStatus.h>
13#include <aws/sagemaker/model/VpcConfig.h>
14#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
15#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
16#include <aws/sagemaker/model/DeepHealthCheckType.h>
56 inline void SetCurrentCount(
int value) { m_currentCountHasBeenSet =
true; m_currentCount = value; }
67 inline void SetTargetCount(
int value) { m_targetCountHasBeenSet =
true; m_targetCount = value; }
77 template<
typename InstanceGroupNameT = Aws::String>
78 void SetInstanceGroupName(InstanceGroupNameT&& value) { m_instanceGroupNameHasBeenSet =
true; m_instanceGroupName = std::forward<InstanceGroupNameT>(value); }
79 template<
typename InstanceGroupNameT = Aws::String>
99 template<
typename LifeCycleConfigT = ClusterLifeCycleConfig>
100 void SetLifeCycleConfig(LifeCycleConfigT&& value) { m_lifeCycleConfigHasBeenSet =
true; m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value); }
101 template<
typename LifeCycleConfigT = ClusterLifeCycleConfig>
111 template<
typename ExecutionRoleT = Aws::String>
112 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet =
true; m_executionRole = std::forward<ExecutionRoleT>(value); }
113 template<
typename ExecutionRoleT = Aws::String>
130 inline void SetThreadsPerCore(
int value) { m_threadsPerCoreHasBeenSet =
true; m_threadsPerCore = value; }
141 template<
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
142 void SetInstanceStorageConfigs(InstanceStorageConfigsT&& value) { m_instanceStorageConfigsHasBeenSet =
true; m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value); }
143 template<
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
145 template<
typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
156 template<
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
157 void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT&& value) { m_onStartDeepHealthChecksHasBeenSet =
true; m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value); }
158 template<
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
192 template<
typename TrainingPlanArnT = Aws::String>
193 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet =
true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
194 template<
typename TrainingPlanArnT = Aws::String>
205 template<
typename TrainingPlanStatusT = Aws::String>
206 void SetTrainingPlanStatus(TrainingPlanStatusT&& value) { m_trainingPlanStatusHasBeenSet =
true; m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value); }
207 template<
typename TrainingPlanStatusT = Aws::String>
219 template<
typename Overr
ideVpcConfigT = VpcConfig>
220 void SetOverrideVpcConfig(OverrideVpcConfigT&& value) { m_overrideVpcConfigHasBeenSet =
true; m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value); }
221 template<
typename Overr
ideVpcConfigT = VpcConfig>
232 template<
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
233 void SetScheduledUpdateConfig(ScheduledUpdateConfigT&& value) { m_scheduledUpdateConfigHasBeenSet =
true; m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value); }
234 template<
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
239 int m_currentCount{0};
240 bool m_currentCountHasBeenSet =
false;
242 int m_targetCount{0};
243 bool m_targetCountHasBeenSet =
false;
246 bool m_instanceGroupNameHasBeenSet =
false;
249 bool m_instanceTypeHasBeenSet =
false;
251 ClusterLifeCycleConfig m_lifeCycleConfig;
252 bool m_lifeCycleConfigHasBeenSet =
false;
255 bool m_executionRoleHasBeenSet =
false;
257 int m_threadsPerCore{0};
258 bool m_threadsPerCoreHasBeenSet =
false;
261 bool m_instanceStorageConfigsHasBeenSet =
false;
264 bool m_onStartDeepHealthChecksHasBeenSet =
false;
267 bool m_statusHasBeenSet =
false;
270 bool m_trainingPlanArnHasBeenSet =
false;
273 bool m_trainingPlanStatusHasBeenSet =
false;
275 VpcConfig m_overrideVpcConfig;
276 bool m_overrideVpcConfigHasBeenSet =
false;
278 ScheduledUpdateConfig m_scheduledUpdateConfig;
279 bool m_scheduledUpdateConfigHasBeenSet =
false;
ClusterInstanceGroupDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
bool InstanceTypeHasBeenSet() const
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
bool OverrideVpcConfigHasBeenSet() const
void SetTrainingPlanArn(TrainingPlanArnT &&value)
void SetTargetCount(int value)
bool TrainingPlanArnHasBeenSet() const
ClusterInstanceGroupDetails & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupDetails & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupDetails & WithTrainingPlanStatus(TrainingPlanStatusT &&value)
int GetThreadsPerCore() const
ClusterInstanceType GetInstanceType() const
bool LifeCycleConfigHasBeenSet() const
bool InstanceGroupNameHasBeenSet() const
void SetInstanceType(ClusterInstanceType value)
ClusterInstanceGroupDetails & WithStatus(InstanceGroupStatus value)
void SetStatus(InstanceGroupStatus value)
const VpcConfig & GetOverrideVpcConfig() const
ClusterInstanceGroupDetails & AddOnStartDeepHealthChecks(DeepHealthCheckType value)
ClusterInstanceGroupDetails & AddInstanceStorageConfigs(InstanceStorageConfigsT &&value)
ClusterInstanceGroupDetails & WithThreadsPerCore(int value)
int GetCurrentCount() const
ClusterInstanceGroupDetails & WithTargetCount(int value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails()=default
bool ScheduledUpdateConfigHasBeenSet() const
ClusterInstanceGroupDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
bool TargetCountHasBeenSet() const
const Aws::String & GetInstanceGroupName() const
void SetInstanceGroupName(InstanceGroupNameT &&value)
void SetLifeCycleConfig(LifeCycleConfigT &&value)
AWS_SAGEMAKER_API ClusterInstanceGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThreadsPerCore(int value)
ClusterInstanceGroupDetails & WithExecutionRole(ExecutionRoleT &&value)
void SetScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
int GetTargetCount() const
ClusterInstanceGroupDetails & WithCurrentCount(int value)
const Aws::String & GetExecutionRole() const
void SetCurrentCount(int value)
ClusterInstanceGroupDetails & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupDetails & WithLifeCycleConfig(LifeCycleConfigT &&value)
const Aws::String & GetTrainingPlanStatus() const
AWS_SAGEMAKER_API ClusterInstanceGroupDetails(Aws::Utils::Json::JsonView jsonValue)
bool ExecutionRoleHasBeenSet() const
bool TrainingPlanStatusHasBeenSet() const
bool StatusHasBeenSet() const
ClusterInstanceGroupDetails & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
bool CurrentCountHasBeenSet() const
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
bool InstanceStorageConfigsHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTrainingPlanStatus(TrainingPlanStatusT &&value)
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
bool ThreadsPerCoreHasBeenSet() const
const ScheduledUpdateConfig & GetScheduledUpdateConfig() const
bool OnStartDeepHealthChecksHasBeenSet() const
const Aws::String & GetTrainingPlanArn() const
InstanceGroupStatus GetStatus() 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