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

The numbers of training jobs launched by a hyperparameter tuning job, * categorized by status.

See Also:

AWS * API Reference

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

The number of completed training jobs launched by the hyperparameter tuning * job.

*/ inline int GetCompleted() const{ return m_completed; } /** *

The number of completed training jobs launched by the hyperparameter tuning * job.

*/ inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; } /** *

The number of completed training jobs launched by the hyperparameter tuning * job.

*/ inline void SetCompleted(int value) { m_completedHasBeenSet = true; m_completed = value; } /** *

The number of completed training jobs launched by the hyperparameter tuning * job.

*/ inline TrainingJobStatusCounters& WithCompleted(int value) { SetCompleted(value); return *this;} /** *

The number of in-progress training jobs launched by a hyperparameter tuning * job.

*/ inline int GetInProgress() const{ return m_inProgress; } /** *

The number of in-progress training jobs launched by a hyperparameter tuning * job.

*/ inline bool InProgressHasBeenSet() const { return m_inProgressHasBeenSet; } /** *

The number of in-progress training jobs launched by a hyperparameter tuning * job.

*/ inline void SetInProgress(int value) { m_inProgressHasBeenSet = true; m_inProgress = value; } /** *

The number of in-progress training jobs launched by a hyperparameter tuning * job.

*/ inline TrainingJobStatusCounters& WithInProgress(int value) { SetInProgress(value); return *this;} /** *

The number of training jobs that failed, but can be retried. A failed * training job can be retried only if it failed because an internal service error * occurred.

*/ inline int GetRetryableError() const{ return m_retryableError; } /** *

The number of training jobs that failed, but can be retried. A failed * training job can be retried only if it failed because an internal service error * occurred.

*/ inline bool RetryableErrorHasBeenSet() const { return m_retryableErrorHasBeenSet; } /** *

The number of training jobs that failed, but can be retried. A failed * training job can be retried only if it failed because an internal service error * occurred.

*/ inline void SetRetryableError(int value) { m_retryableErrorHasBeenSet = true; m_retryableError = value; } /** *

The number of training jobs that failed, but can be retried. A failed * training job can be retried only if it failed because an internal service error * occurred.

*/ inline TrainingJobStatusCounters& WithRetryableError(int value) { SetRetryableError(value); return *this;} /** *

The number of training jobs that failed and can't be retried. A failed * training job can't be retried if it failed because a client error occurred.

*/ inline int GetNonRetryableError() const{ return m_nonRetryableError; } /** *

The number of training jobs that failed and can't be retried. A failed * training job can't be retried if it failed because a client error occurred.

*/ inline bool NonRetryableErrorHasBeenSet() const { return m_nonRetryableErrorHasBeenSet; } /** *

The number of training jobs that failed and can't be retried. A failed * training job can't be retried if it failed because a client error occurred.

*/ inline void SetNonRetryableError(int value) { m_nonRetryableErrorHasBeenSet = true; m_nonRetryableError = value; } /** *

The number of training jobs that failed and can't be retried. A failed * training job can't be retried if it failed because a client error occurred.

*/ inline TrainingJobStatusCounters& WithNonRetryableError(int value) { SetNonRetryableError(value); return *this;} /** *

The number of training jobs launched by a hyperparameter tuning job that were * manually stopped.

*/ inline int GetStopped() const{ return m_stopped; } /** *

The number of training jobs launched by a hyperparameter tuning job that were * manually stopped.

*/ inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; } /** *

The number of training jobs launched by a hyperparameter tuning job that were * manually stopped.

*/ inline void SetStopped(int value) { m_stoppedHasBeenSet = true; m_stopped = value; } /** *

The number of training jobs launched by a hyperparameter tuning job that were * manually stopped.

*/ inline TrainingJobStatusCounters& WithStopped(int value) { SetStopped(value); return *this;} private: int m_completed; bool m_completedHasBeenSet = false; int m_inProgress; bool m_inProgressHasBeenSet = false; int m_retryableError; bool m_retryableErrorHasBeenSet = false; int m_nonRetryableError; bool m_nonRetryableErrorHasBeenSet = false; int m_stopped; bool m_stoppedHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws