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

A summary of a specific version of the model card.

See Also:

* AWS * API Reference

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

The name of the model card.

*/ inline const Aws::String& GetModelCardName() const{ return m_modelCardName; } /** *

The name of the model card.

*/ inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; } /** *

The name of the model card.

*/ inline void SetModelCardName(const Aws::String& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = value; } /** *

The name of the model card.

*/ inline void SetModelCardName(Aws::String&& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::move(value); } /** *

The name of the model card.

*/ inline void SetModelCardName(const char* value) { m_modelCardNameHasBeenSet = true; m_modelCardName.assign(value); } /** *

The name of the model card.

*/ inline ModelCardVersionSummary& WithModelCardName(const Aws::String& value) { SetModelCardName(value); return *this;} /** *

The name of the model card.

*/ inline ModelCardVersionSummary& WithModelCardName(Aws::String&& value) { SetModelCardName(std::move(value)); return *this;} /** *

The name of the model card.

*/ inline ModelCardVersionSummary& WithModelCardName(const char* value) { SetModelCardName(value); return *this;} /** *

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

*/ inline const Aws::String& GetModelCardArn() const{ return m_modelCardArn; } /** *

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

*/ inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; } /** *

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

*/ inline void SetModelCardArn(const Aws::String& value) { m_modelCardArnHasBeenSet = true; m_modelCardArn = value; } /** *

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

*/ inline void SetModelCardArn(Aws::String&& value) { m_modelCardArnHasBeenSet = true; m_modelCardArn = std::move(value); } /** *

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

*/ inline void SetModelCardArn(const char* value) { m_modelCardArnHasBeenSet = true; m_modelCardArn.assign(value); } /** *

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

*/ inline ModelCardVersionSummary& WithModelCardArn(const Aws::String& value) { SetModelCardArn(value); return *this;} /** *

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

*/ inline ModelCardVersionSummary& WithModelCardArn(Aws::String&& value) { SetModelCardArn(std::move(value)); return *this;} /** *

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

*/ inline ModelCardVersionSummary& WithModelCardArn(const char* value) { SetModelCardArn(value); return *this;} /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline const ModelCardStatus& GetModelCardStatus() const{ return m_modelCardStatus; } /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; } /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline void SetModelCardStatus(const ModelCardStatus& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; } /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline void SetModelCardStatus(ModelCardStatus&& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = std::move(value); } /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline ModelCardVersionSummary& WithModelCardStatus(const ModelCardStatus& value) { SetModelCardStatus(value); return *this;} /** *

The approval status of the model card version within your organization. * Different organizations might have different criteria for model card review and * approval.

  • Draft: The model card is a work in * progress.

  • PendingReview: The model card is * pending review.

  • Approved: The model card is * approved.

  • Archived: The model card is archived. * No more updates should be made to the model card, but it can still be * exported.

*/ inline ModelCardVersionSummary& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;} /** *

A version of the model card.

*/ inline int GetModelCardVersion() const{ return m_modelCardVersion; } /** *

A version of the model card.

*/ inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; } /** *

A version of the model card.

*/ inline void SetModelCardVersion(int value) { m_modelCardVersionHasBeenSet = true; m_modelCardVersion = value; } /** *

A version of the model card.

*/ inline ModelCardVersionSummary& WithModelCardVersion(int value) { SetModelCardVersion(value); return *this;} /** *

The date and time that the model card version was created.

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

The date and time that the model card version was created.

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

The date and time that the model card version was created.

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

The date and time that the model card version was created.

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

The date and time that the model card version was created.

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

The date and time that the model card version was created.

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

The time date and time that the model card version was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The time date and time that the model card version was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The time date and time that the model card version was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The time date and time that the model card version was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The time date and time that the model card version was last modified.

*/ inline ModelCardVersionSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The time date and time that the model card version was last modified.

*/ inline ModelCardVersionSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; Aws::String m_modelCardArn; bool m_modelCardArnHasBeenSet = false; ModelCardStatus m_modelCardStatus; bool m_modelCardStatusHasBeenSet = false; int m_modelCardVersion; bool m_modelCardVersionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws