/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Specifies the maximum number of training jobs and parallel training jobs that * a hyperparameter tuning job can launch.

See Also:

AWS * API Reference

*/ class AWS_SAGEMAKER_API ResourceLimits { public: ResourceLimits(); ResourceLimits(Aws::Utils::Json::JsonView jsonValue); ResourceLimits& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The maximum number of training jobs that a hyperparameter tuning job can * launch.

*/ inline int GetMaxNumberOfTrainingJobs() const{ return m_maxNumberOfTrainingJobs; } /** *

The maximum number of training jobs that a hyperparameter tuning job can * launch.

*/ inline bool MaxNumberOfTrainingJobsHasBeenSet() const { return m_maxNumberOfTrainingJobsHasBeenSet; } /** *

The maximum number of training jobs that a hyperparameter tuning job can * launch.

*/ inline void SetMaxNumberOfTrainingJobs(int value) { m_maxNumberOfTrainingJobsHasBeenSet = true; m_maxNumberOfTrainingJobs = value; } /** *

The maximum number of training jobs that a hyperparameter tuning job can * launch.

*/ inline ResourceLimits& WithMaxNumberOfTrainingJobs(int value) { SetMaxNumberOfTrainingJobs(value); return *this;} /** *

The maximum number of concurrent training jobs that a hyperparameter tuning * job can launch.

*/ inline int GetMaxParallelTrainingJobs() const{ return m_maxParallelTrainingJobs; } /** *

The maximum number of concurrent training jobs that a hyperparameter tuning * job can launch.

*/ inline bool MaxParallelTrainingJobsHasBeenSet() const { return m_maxParallelTrainingJobsHasBeenSet; } /** *

The maximum number of concurrent training jobs that a hyperparameter tuning * job can launch.

*/ inline void SetMaxParallelTrainingJobs(int value) { m_maxParallelTrainingJobsHasBeenSet = true; m_maxParallelTrainingJobs = value; } /** *

The maximum number of concurrent training jobs that a hyperparameter tuning * job can launch.

*/ inline ResourceLimits& WithMaxParallelTrainingJobs(int value) { SetMaxParallelTrainingJobs(value); return *this;} private: int m_maxNumberOfTrainingJobs; bool m_maxNumberOfTrainingJobsHasBeenSet; int m_maxParallelTrainingJobs; bool m_maxParallelTrainingJobsHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws