/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include How long a job is allowed to run, or how many candidates a job is allowed to
* generate.See Also:
AWS
* API Reference
The maximum number of times a training job is allowed to run.
*/ inline int GetMaxCandidates() const{ return m_maxCandidates; } /** *The maximum number of times a training job is allowed to run.
*/ inline bool MaxCandidatesHasBeenSet() const { return m_maxCandidatesHasBeenSet; } /** *The maximum number of times a training job is allowed to run.
*/ inline void SetMaxCandidates(int value) { m_maxCandidatesHasBeenSet = true; m_maxCandidates = value; } /** *The maximum number of times a training job is allowed to run.
*/ inline AutoMLJobCompletionCriteria& WithMaxCandidates(int value) { SetMaxCandidates(value); return *this;} /** *The maximum time, in seconds, a job is allowed to run.
*/ inline int GetMaxRuntimePerTrainingJobInSeconds() const{ return m_maxRuntimePerTrainingJobInSeconds; } /** *The maximum time, in seconds, a job is allowed to run.
*/ inline bool MaxRuntimePerTrainingJobInSecondsHasBeenSet() const { return m_maxRuntimePerTrainingJobInSecondsHasBeenSet; } /** *The maximum time, in seconds, a job is allowed to run.
*/ inline void SetMaxRuntimePerTrainingJobInSeconds(int value) { m_maxRuntimePerTrainingJobInSecondsHasBeenSet = true; m_maxRuntimePerTrainingJobInSeconds = value; } /** *The maximum time, in seconds, a job is allowed to run.
*/ inline AutoMLJobCompletionCriteria& WithMaxRuntimePerTrainingJobInSeconds(int value) { SetMaxRuntimePerTrainingJobInSeconds(value); return *this;} /** *The maximum time, in seconds, an AutoML job is allowed to wait for a trial to * complete. It must be equal to or greater than * MaxRuntimePerTrainingJobInSeconds.
*/ inline int GetMaxAutoMLJobRuntimeInSeconds() const{ return m_maxAutoMLJobRuntimeInSeconds; } /** *The maximum time, in seconds, an AutoML job is allowed to wait for a trial to * complete. It must be equal to or greater than * MaxRuntimePerTrainingJobInSeconds.
*/ inline bool MaxAutoMLJobRuntimeInSecondsHasBeenSet() const { return m_maxAutoMLJobRuntimeInSecondsHasBeenSet; } /** *The maximum time, in seconds, an AutoML job is allowed to wait for a trial to * complete. It must be equal to or greater than * MaxRuntimePerTrainingJobInSeconds.
*/ inline void SetMaxAutoMLJobRuntimeInSeconds(int value) { m_maxAutoMLJobRuntimeInSecondsHasBeenSet = true; m_maxAutoMLJobRuntimeInSeconds = value; } /** *The maximum time, in seconds, an AutoML job is allowed to wait for a trial to * complete. It must be equal to or greater than * MaxRuntimePerTrainingJobInSeconds.
*/ inline AutoMLJobCompletionCriteria& WithMaxAutoMLJobRuntimeInSeconds(int value) { SetMaxAutoMLJobRuntimeInSeconds(value); return *this;} private: int m_maxCandidates; bool m_maxCandidatesHasBeenSet; int m_maxRuntimePerTrainingJobInSeconds; bool m_maxRuntimePerTrainingJobInSecondsHasBeenSet; int m_maxAutoMLJobRuntimeInSeconds; bool m_maxAutoMLJobRuntimeInSecondsHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws