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

A group of versioned models in the model registry.

See Also:

* AWS * API Reference

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

The name of the model group.

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

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

*/ inline const Aws::String& GetModelPackageGroupArn() const{ return m_modelPackageGroupArn; } /** *

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

*/ inline bool ModelPackageGroupArnHasBeenSet() const { return m_modelPackageGroupArnHasBeenSet; } /** *

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

*/ inline void SetModelPackageGroupArn(const Aws::String& value) { m_modelPackageGroupArnHasBeenSet = true; m_modelPackageGroupArn = value; } /** *

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

*/ inline void SetModelPackageGroupArn(Aws::String&& value) { m_modelPackageGroupArnHasBeenSet = true; m_modelPackageGroupArn = std::move(value); } /** *

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

*/ inline void SetModelPackageGroupArn(const char* value) { m_modelPackageGroupArnHasBeenSet = true; m_modelPackageGroupArn.assign(value); } /** *

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

*/ inline ModelPackageGroup& WithModelPackageGroupArn(const Aws::String& value) { SetModelPackageGroupArn(value); return *this;} /** *

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

*/ inline ModelPackageGroup& WithModelPackageGroupArn(Aws::String&& value) { SetModelPackageGroupArn(std::move(value)); return *this;} /** *

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

*/ inline ModelPackageGroup& WithModelPackageGroupArn(const char* value) { SetModelPackageGroupArn(value); return *this;} /** *

The description for the model group.

*/ inline const Aws::String& GetModelPackageGroupDescription() const{ return m_modelPackageGroupDescription; } /** *

The description for the model group.

*/ inline bool ModelPackageGroupDescriptionHasBeenSet() const { return m_modelPackageGroupDescriptionHasBeenSet; } /** *

The description for the model group.

*/ inline void SetModelPackageGroupDescription(const Aws::String& value) { m_modelPackageGroupDescriptionHasBeenSet = true; m_modelPackageGroupDescription = value; } /** *

The description for the model group.

*/ inline void SetModelPackageGroupDescription(Aws::String&& value) { m_modelPackageGroupDescriptionHasBeenSet = true; m_modelPackageGroupDescription = std::move(value); } /** *

The description for the model group.

*/ inline void SetModelPackageGroupDescription(const char* value) { m_modelPackageGroupDescriptionHasBeenSet = true; m_modelPackageGroupDescription.assign(value); } /** *

The description for the model group.

*/ inline ModelPackageGroup& WithModelPackageGroupDescription(const Aws::String& value) { SetModelPackageGroupDescription(value); return *this;} /** *

The description for the model group.

*/ inline ModelPackageGroup& WithModelPackageGroupDescription(Aws::String&& value) { SetModelPackageGroupDescription(std::move(value)); return *this;} /** *

The description for the model group.

*/ inline ModelPackageGroup& WithModelPackageGroupDescription(const char* value) { SetModelPackageGroupDescription(value); return *this;} /** *

The time that the model group was created.

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

The time that the model group was created.

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

The time that the model group was created.

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

The time that the model group was created.

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

The time that the model group was created.

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

The time that the model group was created.

*/ inline ModelPackageGroup& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} inline const UserContext& GetCreatedBy() const{ return m_createdBy; } inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } inline void SetCreatedBy(const UserContext& value) { m_createdByHasBeenSet = true; m_createdBy = value; } inline void SetCreatedBy(UserContext&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } inline ModelPackageGroup& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;} inline ModelPackageGroup& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline const ModelPackageGroupStatus& GetModelPackageGroupStatus() const{ return m_modelPackageGroupStatus; } /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline bool ModelPackageGroupStatusHasBeenSet() const { return m_modelPackageGroupStatusHasBeenSet; } /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline void SetModelPackageGroupStatus(const ModelPackageGroupStatus& value) { m_modelPackageGroupStatusHasBeenSet = true; m_modelPackageGroupStatus = value; } /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline void SetModelPackageGroupStatus(ModelPackageGroupStatus&& value) { m_modelPackageGroupStatusHasBeenSet = true; m_modelPackageGroupStatus = std::move(value); } /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline ModelPackageGroup& WithModelPackageGroupStatus(const ModelPackageGroupStatus& value) { SetModelPackageGroupStatus(value); return *this;} /** *

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

*
  • PENDING - The model group is pending being * created.

  • IN_PROGRESS - The model group is in the * process of being created.

  • COMPLETED - The model * group was successfully created.

  • FAILED - The * model group failed.

  • DELETING - The model group * is in the process of being deleted.

  • * DELETE_FAILED - SageMaker failed to delete the model group.

    *
*/ inline ModelPackageGroup& WithModelPackageGroupStatus(ModelPackageGroupStatus&& value) { SetModelPackageGroupStatus(std::move(value)); return *this;} /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline ModelPackageGroup& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline ModelPackageGroup& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline ModelPackageGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tags associated with the model group. For more information, see * Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline ModelPackageGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_modelPackageGroupName; bool m_modelPackageGroupNameHasBeenSet = false; Aws::String m_modelPackageGroupArn; bool m_modelPackageGroupArnHasBeenSet = false; Aws::String m_modelPackageGroupDescription; bool m_modelPackageGroupDescriptionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; UserContext m_createdBy; bool m_createdByHasBeenSet = false; ModelPackageGroupStatus m_modelPackageGroupStatus; bool m_modelPackageGroupStatusHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws