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

Provides summary information about a model package.

See Also:

* AWS * API Reference

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

The name of the model package.

*/ inline const Aws::String& GetModelPackageName() const{ return m_modelPackageName; } /** *

The name of the model package.

*/ inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; } /** *

The name of the model package.

*/ inline void SetModelPackageName(const Aws::String& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = value; } /** *

The name of the model package.

*/ inline void SetModelPackageName(Aws::String&& value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName = std::move(value); } /** *

The name of the model package.

*/ inline void SetModelPackageName(const char* value) { m_modelPackageNameHasBeenSet = true; m_modelPackageName.assign(value); } /** *

The name of the model package.

*/ inline ModelPackageSummary& WithModelPackageName(const Aws::String& value) { SetModelPackageName(value); return *this;} /** *

The name of the model package.

*/ inline ModelPackageSummary& WithModelPackageName(Aws::String&& value) { SetModelPackageName(std::move(value)); return *this;} /** *

The name of the model package.

*/ inline ModelPackageSummary& WithModelPackageName(const char* value) { SetModelPackageName(value); return *this;} /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline const Aws::String& GetModelPackageGroupName() const{ return m_modelPackageGroupName; } /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; } /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline void SetModelPackageGroupName(const Aws::String& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = value; } /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline void SetModelPackageGroupName(Aws::String&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::move(value); } /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline void SetModelPackageGroupName(const char* value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName.assign(value); } /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline ModelPackageSummary& WithModelPackageGroupName(const Aws::String& value) { SetModelPackageGroupName(value); return *this;} /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline ModelPackageSummary& WithModelPackageGroupName(Aws::String&& value) { SetModelPackageGroupName(std::move(value)); return *this;} /** *

If the model package is a versioned model, the model group that the versioned * model belongs to.

*/ inline ModelPackageSummary& WithModelPackageGroupName(const char* value) { SetModelPackageGroupName(value); return *this;} /** *

If the model package is a versioned model, the version of the model.

*/ inline int GetModelPackageVersion() const{ return m_modelPackageVersion; } /** *

If the model package is a versioned model, the version of the model.

*/ inline bool ModelPackageVersionHasBeenSet() const { return m_modelPackageVersionHasBeenSet; } /** *

If the model package is a versioned model, the version of the model.

*/ inline void SetModelPackageVersion(int value) { m_modelPackageVersionHasBeenSet = true; m_modelPackageVersion = value; } /** *

If the model package is a versioned model, the version of the model.

*/ inline ModelPackageSummary& WithModelPackageVersion(int value) { SetModelPackageVersion(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline const Aws::String& GetModelPackageArn() const{ return m_modelPackageArn; } /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline bool ModelPackageArnHasBeenSet() const { return m_modelPackageArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline void SetModelPackageArn(const Aws::String& value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn = value; } /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline void SetModelPackageArn(Aws::String&& value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline void SetModelPackageArn(const char* value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline ModelPackageSummary& WithModelPackageArn(const Aws::String& value) { SetModelPackageArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline ModelPackageSummary& WithModelPackageArn(Aws::String&& value) { SetModelPackageArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the model package.

*/ inline ModelPackageSummary& WithModelPackageArn(const char* value) { SetModelPackageArn(value); return *this;} /** *

A brief description of the model package.

*/ inline const Aws::String& GetModelPackageDescription() const{ return m_modelPackageDescription; } /** *

A brief description of the model package.

*/ inline bool ModelPackageDescriptionHasBeenSet() const { return m_modelPackageDescriptionHasBeenSet; } /** *

A brief description of the model package.

*/ inline void SetModelPackageDescription(const Aws::String& value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription = value; } /** *

A brief description of the model package.

*/ inline void SetModelPackageDescription(Aws::String&& value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription = std::move(value); } /** *

A brief description of the model package.

*/ inline void SetModelPackageDescription(const char* value) { m_modelPackageDescriptionHasBeenSet = true; m_modelPackageDescription.assign(value); } /** *

A brief description of the model package.

*/ inline ModelPackageSummary& WithModelPackageDescription(const Aws::String& value) { SetModelPackageDescription(value); return *this;} /** *

A brief description of the model package.

*/ inline ModelPackageSummary& WithModelPackageDescription(Aws::String&& value) { SetModelPackageDescription(std::move(value)); return *this;} /** *

A brief description of the model package.

*/ inline ModelPackageSummary& WithModelPackageDescription(const char* value) { SetModelPackageDescription(value); return *this;} /** *

A timestamp that shows when the model package was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A timestamp that shows when the model package was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

A timestamp that shows when the model package was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

A timestamp that shows when the model package was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

A timestamp that shows when the model package was created.

*/ inline ModelPackageSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A timestamp that shows when the model package was created.

*/ inline ModelPackageSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The overall status of the model package.

*/ inline const ModelPackageStatus& GetModelPackageStatus() const{ return m_modelPackageStatus; } /** *

The overall status of the model package.

*/ inline bool ModelPackageStatusHasBeenSet() const { return m_modelPackageStatusHasBeenSet; } /** *

The overall status of the model package.

*/ inline void SetModelPackageStatus(const ModelPackageStatus& value) { m_modelPackageStatusHasBeenSet = true; m_modelPackageStatus = value; } /** *

The overall status of the model package.

*/ inline void SetModelPackageStatus(ModelPackageStatus&& value) { m_modelPackageStatusHasBeenSet = true; m_modelPackageStatus = std::move(value); } /** *

The overall status of the model package.

*/ inline ModelPackageSummary& WithModelPackageStatus(const ModelPackageStatus& value) { SetModelPackageStatus(value); return *this;} /** *

The overall status of the model package.

*/ inline ModelPackageSummary& WithModelPackageStatus(ModelPackageStatus&& value) { SetModelPackageStatus(std::move(value)); return *this;} /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline const ModelApprovalStatus& GetModelApprovalStatus() const{ return m_modelApprovalStatus; } /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; } /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline void SetModelApprovalStatus(const ModelApprovalStatus& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = value; } /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline void SetModelApprovalStatus(ModelApprovalStatus&& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = std::move(value); } /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline ModelPackageSummary& WithModelApprovalStatus(const ModelApprovalStatus& value) { SetModelApprovalStatus(value); return *this;} /** *

The approval status of the model. This can be one of the following * values.

  • APPROVED - The model is approved

    *
  • REJECTED - The model is rejected.

  • * PENDING_MANUAL_APPROVAL - The model is waiting for manual * approval.

*/ inline ModelPackageSummary& WithModelApprovalStatus(ModelApprovalStatus&& value) { SetModelApprovalStatus(std::move(value)); return *this;} private: Aws::String m_modelPackageName; bool m_modelPackageNameHasBeenSet = false; Aws::String m_modelPackageGroupName; bool m_modelPackageGroupNameHasBeenSet = false; int m_modelPackageVersion; bool m_modelPackageVersionHasBeenSet = false; Aws::String m_modelPackageArn; bool m_modelPackageArnHasBeenSet = false; Aws::String m_modelPackageDescription; bool m_modelPackageDescriptionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; ModelPackageStatus m_modelPackageStatus; bool m_modelPackageStatusHasBeenSet = false; ModelApprovalStatus m_modelApprovalStatus; bool m_modelApprovalStatusHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws