/** * 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 SageMaker { namespace Model { /** */ class CreateModelCardRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateModelCardRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateModelCard"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

The unique name of the model card.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

An optional Key Management Service key to encrypt, decrypt, and re-encrypt * model card content for regulated workloads with highly sensitive data.

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

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline CreateModelCardRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline CreateModelCardRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The content of the model card. Content must be in model * card JSON schema and provided as a string.

*/ inline CreateModelCardRequest& WithContent(const char* value) { SetContent(value); return *this;} /** *

The approval status of the model card 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 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 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 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 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 CreateModelCardRequest& WithModelCardStatus(const ModelCardStatus& value) { SetModelCardStatus(value); return *this;} /** *

The approval status of the model card 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 CreateModelCardRequest& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;} /** *

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

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

Key-value pairs used to manage metadata for model cards.

*/ inline CreateModelCardRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; ModelCardSecurityConfig m_securityConfig; bool m_securityConfigHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; ModelCardStatus m_modelCardStatus; bool m_modelCardStatusHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws