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

Represents the overall status of an algorithm.

See Also:

AWS * API Reference

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

The name of the algorithm for which the overall status is being reported.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the algorithm for which the overall status is being reported.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the algorithm for which the overall status is being reported.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the algorithm for which the overall status is being reported.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the algorithm for which the overall status is being reported.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the algorithm for which the overall status is being reported.

*/ inline AlgorithmStatusItem& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the algorithm for which the overall status is being reported.

*/ inline AlgorithmStatusItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the algorithm for which the overall status is being reported.

*/ inline AlgorithmStatusItem& WithName(const char* value) { SetName(value); return *this;} /** *

The current status.

*/ inline const DetailedAlgorithmStatus& GetStatus() const{ return m_status; } /** *

The current status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status.

*/ inline void SetStatus(const DetailedAlgorithmStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status.

*/ inline void SetStatus(DetailedAlgorithmStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status.

*/ inline AlgorithmStatusItem& WithStatus(const DetailedAlgorithmStatus& value) { SetStatus(value); return *this;} /** *

The current status.

*/ inline AlgorithmStatusItem& WithStatus(DetailedAlgorithmStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

if the overall status is Failed, the reason for the failure.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

if the overall status is Failed, the reason for the failure.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

if the overall status is Failed, the reason for the failure.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

if the overall status is Failed, the reason for the failure.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

if the overall status is Failed, the reason for the failure.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

if the overall status is Failed, the reason for the failure.

*/ inline AlgorithmStatusItem& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

if the overall status is Failed, the reason for the failure.

*/ inline AlgorithmStatusItem& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

if the overall status is Failed, the reason for the failure.

*/ inline AlgorithmStatusItem& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; DetailedAlgorithmStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws