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

The status of the trial component.

See Also:

AWS * API Reference

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

The status of the trial component.

*/ inline const TrialComponentPrimaryStatus& GetPrimaryStatus() const{ return m_primaryStatus; } /** *

The status of the trial component.

*/ inline bool PrimaryStatusHasBeenSet() const { return m_primaryStatusHasBeenSet; } /** *

The status of the trial component.

*/ inline void SetPrimaryStatus(const TrialComponentPrimaryStatus& value) { m_primaryStatusHasBeenSet = true; m_primaryStatus = value; } /** *

The status of the trial component.

*/ inline void SetPrimaryStatus(TrialComponentPrimaryStatus&& value) { m_primaryStatusHasBeenSet = true; m_primaryStatus = std::move(value); } /** *

The status of the trial component.

*/ inline TrialComponentStatus& WithPrimaryStatus(const TrialComponentPrimaryStatus& value) { SetPrimaryStatus(value); return *this;} /** *

The status of the trial component.

*/ inline TrialComponentStatus& WithPrimaryStatus(TrialComponentPrimaryStatus&& value) { SetPrimaryStatus(std::move(value)); return *this;} /** *

If the component failed, a message describing why.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If the component failed, a message describing why.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

If the component failed, a message describing why.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

If the component failed, a message describing why.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

If the component failed, a message describing why.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

If the component failed, a message describing why.

*/ inline TrialComponentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If the component failed, a message describing why.

*/ inline TrialComponentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If the component failed, a message describing why.

*/ inline TrialComponentStatus& WithMessage(const char* value) { SetMessage(value); return *this;} private: TrialComponentPrimaryStatus m_primaryStatus; bool m_primaryStatusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws