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

A value that indicates whether the update was successful.

See * Also:

AWS * API Reference

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

A value that indicates whether the update was made successful.

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

A value that indicates whether the update was made successful.

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

A value that indicates whether the update was made successful.

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

A value that indicates whether the update was made successful.

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

A value that indicates whether the update was made successful.

*/ inline LastUpdateStatus& WithStatus(const LastUpdateStatusValue& value) { SetStatus(value); return *this;} /** *

A value that indicates whether the update was made successful.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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

If the update wasn't successful, indicates the reason why it failed.

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