7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ActiveClusterOperationName.h>
12#include <aws/sagemaker/model/ClusterCapacityRequirements.h>
13#include <aws/sagemaker/model/ClusterInstanceRequirementDetails.h>
14#include <aws/sagemaker/model/ClusterInstanceStorageConfig.h>
15#include <aws/sagemaker/model/ClusterInstanceType.h>
16#include <aws/sagemaker/model/ClusterInstanceTypeDetail.h>
17#include <aws/sagemaker/model/ClusterKubernetesConfigDetails.h>
18#include <aws/sagemaker/model/ClusterLifeCycleConfig.h>
19#include <aws/sagemaker/model/ClusterSlurmConfigDetails.h>
20#include <aws/sagemaker/model/DeepHealthCheckType.h>
21#include <aws/sagemaker/model/DeploymentConfiguration.h>
22#include <aws/sagemaker/model/InstanceGroupStatus.h>
23#include <aws/sagemaker/model/ScheduledUpdateConfig.h>
24#include <aws/sagemaker/model/SoftwareUpdateStatus.h>
25#include <aws/sagemaker/model/VpcConfig.h>
60 m_currentCountHasBeenSet =
true;
61 m_currentCount = value;
77 m_targetCountHasBeenSet =
true;
78 m_targetCount = value;
95 m_minCountHasBeenSet =
true;
110 template <
typename InstanceGroupNameT = Aws::String>
112 m_instanceGroupNameHasBeenSet =
true;
113 m_instanceGroupName = std::forward<InstanceGroupNameT>(value);
115 template <
typename InstanceGroupNameT = Aws::String>
129 m_instanceTypeHasBeenSet =
true;
130 m_instanceType = value;
146 template <
typename InstanceRequirementsT = ClusterInstanceRequirementDetails>
148 m_instanceRequirementsHasBeenSet =
true;
149 m_instanceRequirements = std::forward<InstanceRequirementsT>(value);
151 template <
typename InstanceRequirementsT = ClusterInstanceRequirementDetails>
166 template <
typename InstanceTypeDetailsT = Aws::Vector<ClusterInstanceTypeDetail>>
168 m_instanceTypeDetailsHasBeenSet =
true;
169 m_instanceTypeDetails = std::forward<InstanceTypeDetailsT>(value);
171 template <
typename InstanceTypeDetailsT = Aws::Vector<ClusterInstanceTypeDetail>>
176 template <
typename InstanceTypeDetailsT = ClusterInstanceTypeDetail>
178 m_instanceTypeDetailsHasBeenSet =
true;
179 m_instanceTypeDetails.emplace_back(std::forward<InstanceTypeDetailsT>(value));
190 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
192 m_lifeCycleConfigHasBeenSet =
true;
193 m_lifeCycleConfig = std::forward<LifeCycleConfigT>(value);
195 template <
typename LifeCycleConfigT = ClusterLifeCycleConfig>
208 template <
typename ExecutionRoleT = Aws::String>
210 m_executionRoleHasBeenSet =
true;
211 m_executionRole = std::forward<ExecutionRoleT>(value);
213 template <
typename ExecutionRoleT = Aws::String>
234 m_threadsPerCoreHasBeenSet =
true;
235 m_threadsPerCore = value;
250 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
252 m_instanceStorageConfigsHasBeenSet =
true;
253 m_instanceStorageConfigs = std::forward<InstanceStorageConfigsT>(value);
255 template <
typename InstanceStorageConfigsT = Aws::Vector<ClusterInstanceStorageConfig>>
260 template <
typename InstanceStorageConfigsT = ClusterInstanceStorageConfig>
262 m_instanceStorageConfigsHasBeenSet =
true;
263 m_instanceStorageConfigs.emplace_back(std::forward<InstanceStorageConfigsT>(value));
275 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
277 m_onStartDeepHealthChecksHasBeenSet =
true;
278 m_onStartDeepHealthChecks = std::forward<OnStartDeepHealthChecksT>(value);
280 template <
typename OnStartDeepHealthChecksT = Aws::Vector<DeepHealthCheckType>>
286 m_onStartDeepHealthChecksHasBeenSet =
true;
287 m_onStartDeepHealthChecks.push_back(value);
307 m_statusHasBeenSet =
true;
327 template <
typename TrainingPlanArnT = Aws::String>
329 m_trainingPlanArnHasBeenSet =
true;
330 m_trainingPlanArn = std::forward<TrainingPlanArnT>(value);
332 template <
typename TrainingPlanArnT = Aws::String>
346 template <
typename TrainingPlanStatusT = Aws::String>
348 m_trainingPlanStatusHasBeenSet =
true;
349 m_trainingPlanStatus = std::forward<TrainingPlanStatusT>(value);
351 template <
typename TrainingPlanStatusT = Aws::String>
366 template <
typename Overr
ideVpcConfigT = VpcConfig>
368 m_overrideVpcConfigHasBeenSet =
true;
369 m_overrideVpcConfig = std::forward<OverrideVpcConfigT>(value);
371 template <
typename Overr
ideVpcConfigT = VpcConfig>
385 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
387 m_scheduledUpdateConfigHasBeenSet =
true;
388 m_scheduledUpdateConfig = std::forward<ScheduledUpdateConfigT>(value);
390 template <
typename ScheduledUpdateConfigT = ScheduledUpdateConfig>
404 template <
typename CurrentImageIdT = Aws::String>
406 m_currentImageIdHasBeenSet =
true;
407 m_currentImageId = std::forward<CurrentImageIdT>(value);
409 template <
typename CurrentImageIdT = Aws::String>
422 template <
typename DesiredImageIdT = Aws::String>
424 m_desiredImageIdHasBeenSet =
true;
425 m_desiredImageId = std::forward<DesiredImageIdT>(value);
427 template <
typename DesiredImageIdT = Aws::String>
442 template <
typename ActiveOperationsT = Aws::Map<ActiveClusterOperationName,
int>>
444 m_activeOperationsHasBeenSet =
true;
445 m_activeOperations = std::forward<ActiveOperationsT>(value);
447 template <
typename ActiveOperationsT = Aws::Map<ActiveClusterOperationName,
int>>
453 m_activeOperationsHasBeenSet =
true;
454 m_activeOperations.emplace(key, value);
466 template <
typename KubernetesConfigT = ClusterKubernetesConfigDetails>
468 m_kubernetesConfigHasBeenSet =
true;
469 m_kubernetesConfig = std::forward<KubernetesConfigT>(value);
471 template <
typename KubernetesConfigT = ClusterKubernetesConfigDetails>
484 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
486 m_capacityRequirementsHasBeenSet =
true;
487 m_capacityRequirements = std::forward<CapacityRequirementsT>(value);
489 template <
typename CapacityRequirementsT = ClusterCapacityRequirements>
514 m_targetStateCountHasBeenSet =
true;
515 m_targetStateCount = value;
534 m_softwareUpdateStatusHasBeenSet =
true;
535 m_softwareUpdateStatus = value;
547 template <
typename ActiveSoftwareUpdateConfigT = DeploymentConfiguration>
549 m_activeSoftwareUpdateConfigHasBeenSet =
true;
550 m_activeSoftwareUpdateConfig = std::forward<ActiveSoftwareUpdateConfigT>(value);
552 template <
typename ActiveSoftwareUpdateConfigT = DeploymentConfiguration>
565 template <
typename SlurmConfigT = ClusterSlurmConfigDetails>
567 m_slurmConfigHasBeenSet =
true;
568 m_slurmConfig = std::forward<SlurmConfigT>(value);
570 template <
typename SlurmConfigT = ClusterSlurmConfigDetails>
577 int m_currentCount{0};
579 int m_targetCount{0};
587 ClusterInstanceRequirementDetails m_instanceRequirements;
591 ClusterLifeCycleConfig m_lifeCycleConfig;
595 int m_threadsPerCore{0};
607 VpcConfig m_overrideVpcConfig;
609 ScheduledUpdateConfig m_scheduledUpdateConfig;
617 ClusterKubernetesConfigDetails m_kubernetesConfig;
619 ClusterCapacityRequirements m_capacityRequirements;
621 int m_targetStateCount{0};
625 DeploymentConfiguration m_activeSoftwareUpdateConfig;
627 ClusterSlurmConfigDetails m_slurmConfig;
628 bool m_currentCountHasBeenSet =
false;
629 bool m_targetCountHasBeenSet =
false;
630 bool m_minCountHasBeenSet =
false;
631 bool m_instanceGroupNameHasBeenSet =
false;
632 bool m_instanceTypeHasBeenSet =
false;
633 bool m_instanceRequirementsHasBeenSet =
false;
634 bool m_instanceTypeDetailsHasBeenSet =
false;
635 bool m_lifeCycleConfigHasBeenSet =
false;
636 bool m_executionRoleHasBeenSet =
false;
637 bool m_threadsPerCoreHasBeenSet =
false;
638 bool m_instanceStorageConfigsHasBeenSet =
false;
639 bool m_onStartDeepHealthChecksHasBeenSet =
false;
640 bool m_statusHasBeenSet =
false;
641 bool m_trainingPlanArnHasBeenSet =
false;
642 bool m_trainingPlanStatusHasBeenSet =
false;
643 bool m_overrideVpcConfigHasBeenSet =
false;
644 bool m_scheduledUpdateConfigHasBeenSet =
false;
645 bool m_currentImageIdHasBeenSet =
false;
646 bool m_desiredImageIdHasBeenSet =
false;
647 bool m_activeOperationsHasBeenSet =
false;
648 bool m_kubernetesConfigHasBeenSet =
false;
649 bool m_capacityRequirementsHasBeenSet =
false;
650 bool m_targetStateCountHasBeenSet =
false;
651 bool m_softwareUpdateStatusHasBeenSet =
false;
652 bool m_activeSoftwareUpdateConfigHasBeenSet =
false;
653 bool m_slurmConfigHasBeenSet =
false;
bool KubernetesConfigHasBeenSet() const
bool InstanceRequirementsHasBeenSet() const
bool ActiveSoftwareUpdateConfigHasBeenSet() const
ClusterInstanceGroupDetails & WithOverrideVpcConfig(OverrideVpcConfigT &&value)
ClusterInstanceGroupDetails & WithCurrentImageId(CurrentImageIdT &&value)
void SetInstanceStorageConfigs(InstanceStorageConfigsT &&value)
bool InstanceTypeHasBeenSet() const
const ClusterLifeCycleConfig & GetLifeCycleConfig() const
bool OverrideVpcConfigHasBeenSet() const
ClusterInstanceGroupDetails & WithMinCount(int value)
void SetTargetStateCount(int value)
bool MinCountHasBeenSet() const
void SetTrainingPlanArn(TrainingPlanArnT &&value)
void SetTargetCount(int value)
bool TrainingPlanArnHasBeenSet() const
ClusterInstanceGroupDetails & WithCapacityRequirements(CapacityRequirementsT &&value)
ClusterInstanceGroupDetails & WithTrainingPlanArn(TrainingPlanArnT &&value)
ClusterInstanceGroupDetails & WithInstanceType(ClusterInstanceType value)
const Aws::Vector< DeepHealthCheckType > & GetOnStartDeepHealthChecks() const
ClusterInstanceGroupDetails & AddActiveOperations(ActiveClusterOperationName key, int value)
const Aws::String & GetCurrentImageId() const
ClusterInstanceGroupDetails & WithSlurmConfig(SlurmConfigT &&value)
const ClusterInstanceRequirementDetails & GetInstanceRequirements() const
ClusterInstanceGroupDetails & WithTrainingPlanStatus(TrainingPlanStatusT &&value)
bool CapacityRequirementsHasBeenSet() const
int GetThreadsPerCore() const
ClusterInstanceType GetInstanceType() const
bool LifeCycleConfigHasBeenSet() const
bool InstanceGroupNameHasBeenSet() const
void SetInstanceType(ClusterInstanceType value)
ClusterInstanceGroupDetails & WithSoftwareUpdateStatus(SoftwareUpdateStatus value)
ClusterInstanceGroupDetails & WithStatus(InstanceGroupStatus value)
void SetStatus(InstanceGroupStatus value)
ClusterInstanceGroupDetails & WithActiveOperations(ActiveOperationsT &&value)
void SetCapacityRequirements(CapacityRequirementsT &&value)
void SetCurrentImageId(CurrentImageIdT &&value)
const Aws::Map< ActiveClusterOperationName, int > & GetActiveOperations() const
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
int GetTargetStateCount() const
const Aws::String & GetDesiredImageId() const
bool InstanceTypeDetailsHasBeenSet() const
bool ScheduledUpdateConfigHasBeenSet() const
bool SlurmConfigHasBeenSet() const
ClusterInstanceGroupDetails & WithTargetStateCount(int value)
ClusterInstanceGroupDetails & WithInstanceGroupName(InstanceGroupNameT &&value)
bool ActiveOperationsHasBeenSet() const
void SetExecutionRole(ExecutionRoleT &&value)
bool DesiredImageIdHasBeenSet() const
ClusterInstanceGroupDetails & WithInstanceStorageConfigs(InstanceStorageConfigsT &&value)
void SetSlurmConfig(SlurmConfigT &&value)
const Aws::Vector< ClusterInstanceTypeDetail > & GetInstanceTypeDetails() const
const ClusterKubernetesConfigDetails & GetKubernetesConfig() const
bool TargetCountHasBeenSet() const
void SetSoftwareUpdateStatus(SoftwareUpdateStatus value)
const ClusterSlurmConfigDetails & GetSlurmConfig() const
const Aws::String & GetInstanceGroupName() const
ClusterInstanceGroupDetails & AddInstanceTypeDetails(InstanceTypeDetailsT &&value)
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 SetMinCount(int value)
void SetScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
int GetTargetCount() const
ClusterInstanceGroupDetails & WithCurrentCount(int value)
SoftwareUpdateStatus GetSoftwareUpdateStatus() const
void SetDesiredImageId(DesiredImageIdT &&value)
const Aws::String & GetExecutionRole() const
void SetCurrentCount(int value)
ClusterInstanceGroupDetails & WithOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
ClusterInstanceGroupDetails & WithInstanceRequirements(InstanceRequirementsT &&value)
void SetKubernetesConfig(KubernetesConfigT &&value)
ClusterInstanceGroupDetails & WithInstanceTypeDetails(InstanceTypeDetailsT &&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 & WithActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT &&value)
ClusterInstanceGroupDetails & WithScheduledUpdateConfig(ScheduledUpdateConfigT &&value)
bool CurrentCountHasBeenSet() const
const Aws::Vector< ClusterInstanceStorageConfig > & GetInstanceStorageConfigs() const
bool InstanceStorageConfigsHasBeenSet() const
bool TargetStateCountHasBeenSet() const
void SetInstanceRequirements(InstanceRequirementsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool SoftwareUpdateStatusHasBeenSet() const
void SetActiveSoftwareUpdateConfig(ActiveSoftwareUpdateConfigT &&value)
void SetInstanceTypeDetails(InstanceTypeDetailsT &&value)
void SetTrainingPlanStatus(TrainingPlanStatusT &&value)
void SetOnStartDeepHealthChecks(OnStartDeepHealthChecksT &&value)
const DeploymentConfiguration & GetActiveSoftwareUpdateConfig() const
void SetOverrideVpcConfig(OverrideVpcConfigT &&value)
bool CurrentImageIdHasBeenSet() const
bool ThreadsPerCoreHasBeenSet() const
const ScheduledUpdateConfig & GetScheduledUpdateConfig() const
bool OnStartDeepHealthChecksHasBeenSet() const
const Aws::String & GetTrainingPlanArn() const
void SetActiveOperations(ActiveOperationsT &&value)
ClusterInstanceGroupDetails & WithKubernetesConfig(KubernetesConfigT &&value)
const ClusterCapacityRequirements & GetCapacityRequirements() const
ClusterInstanceGroupDetails & WithDesiredImageId(DesiredImageIdT &&value)
InstanceGroupStatus GetStatus() const
ActiveClusterOperationName
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue