/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The model card for a model displayed in the Amazon SageMaker Model * Dashboard.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The Amazon Resource Name (ARN) for a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The name of a model card.

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

The model card version.

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

The model card version.

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

The model card version.

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

The model card version.

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

The model card status.

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

The model card status.

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

The model card status.

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

The model card status.

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

The model card status.

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

The model card status.

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

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline const ModelCardSecurityConfig& GetSecurityConfig() const{ return m_securityConfig; } /** *

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; } /** *

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline void SetSecurityConfig(const ModelCardSecurityConfig& value) { m_securityConfigHasBeenSet = true; m_securityConfig = value; } /** *

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline void SetSecurityConfig(ModelCardSecurityConfig&& value) { m_securityConfigHasBeenSet = true; m_securityConfig = std::move(value); } /** *

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline ModelDashboardModelCard& WithSecurityConfig(const ModelCardSecurityConfig& value) { SetSecurityConfig(value); return *this;} /** *

The KMS Key ID (KMSKeyId) for encryption of model card * information.

*/ inline ModelDashboardModelCard& WithSecurityConfig(ModelCardSecurityConfig&& value) { SetSecurityConfig(std::move(value)); return *this;} /** *

A timestamp that indicates when the model card was created.

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

A timestamp that indicates when the model card was created.

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

A timestamp that indicates when the model card was created.

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

A timestamp that indicates when the model card was created.

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

A timestamp that indicates when the model card was created.

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

A timestamp that indicates when the model card was created.

*/ inline ModelDashboardModelCard& 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 ModelDashboardModelCard& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;} inline ModelDashboardModelCard& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

A timestamp that indicates when the model card was last updated.

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

A timestamp that indicates when the model card was last updated.

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

A timestamp that indicates when the model card was last updated.

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

A timestamp that indicates when the model card was last updated.

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

A timestamp that indicates when the model card was last updated.

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

A timestamp that indicates when the model card was last updated.

*/ inline ModelDashboardModelCard& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} inline const UserContext& GetLastModifiedBy() const{ return m_lastModifiedBy; } inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; } inline void SetLastModifiedBy(const UserContext& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; } inline void SetLastModifiedBy(UserContext&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); } inline ModelDashboardModelCard& WithLastModifiedBy(const UserContext& value) { SetLastModifiedBy(value); return *this;} inline ModelDashboardModelCard& WithLastModifiedBy(UserContext&& value) { SetLastModifiedBy(std::move(value)); return *this;} /** *

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

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

The tags associated with a model card.

*/ inline ModelDashboardModelCard& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline ModelDashboardModelCard& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline ModelDashboardModelCard& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} /** *

For models created in SageMaker, this is the model ARN. For models created * outside of SageMaker, this is a user-customized string.

*/ inline ModelDashboardModelCard& WithModelId(const char* value) { SetModelId(value); return *this;} /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline const Aws::String& GetRiskRating() const{ return m_riskRating; } /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline bool RiskRatingHasBeenSet() const { return m_riskRatingHasBeenSet; } /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline void SetRiskRating(const Aws::String& value) { m_riskRatingHasBeenSet = true; m_riskRating = value; } /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline void SetRiskRating(Aws::String&& value) { m_riskRatingHasBeenSet = true; m_riskRating = std::move(value); } /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline void SetRiskRating(const char* value) { m_riskRatingHasBeenSet = true; m_riskRating.assign(value); } /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline ModelDashboardModelCard& WithRiskRating(const Aws::String& value) { SetRiskRating(value); return *this;} /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline ModelDashboardModelCard& WithRiskRating(Aws::String&& value) { SetRiskRating(std::move(value)); return *this;} /** *

A model card's risk rating. Can be low, medium, or high.

*/ inline ModelDashboardModelCard& WithRiskRating(const char* value) { SetRiskRating(value); return *this;} private: Aws::String m_modelCardArn; bool m_modelCardArnHasBeenSet = false; Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; int m_modelCardVersion; bool m_modelCardVersionHasBeenSet = false; ModelCardStatus m_modelCardStatus; bool m_modelCardStatusHasBeenSet = false; ModelCardSecurityConfig m_securityConfig; bool m_securityConfigHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; UserContext m_createdBy; bool m_createdByHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; UserContext m_lastModifiedBy; bool m_lastModifiedByHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_modelId; bool m_modelIdHasBeenSet = false; Aws::String m_riskRating; bool m_riskRatingHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws