/** * 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 a model package.

See Also:

* AWS * API Reference

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

The name of the model package for which the overall status is being * reported.

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

The name of the model package for which the overall status is being * reported.

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

The name of the model package 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 model package 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 model package 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 model package for which the overall status is being * reported.

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

The name of the model package for which the overall status is being * reported.

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

The name of the model package for which the overall status is being * reported.

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

The current status.

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

The current status.

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

The current status.

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

The current status.

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

The current status.

*/ inline ModelPackageStatusItem& WithStatus(const DetailedModelPackageStatus& value) { SetStatus(value); return *this;} /** *

The current status.

*/ inline ModelPackageStatusItem& WithStatus(DetailedModelPackageStatus&& 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 ModelPackageStatusItem& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

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

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

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

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