/** * 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 { /** *

How long a job is allowed to run, or how many candidates a job is allowed to * generate.

See Also:

AWS * API Reference

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

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