/** * 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 SageMaker { namespace Model { /** */ class UpdateModelCardRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateModelCardRequest(); // 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 "UpdateModelCard"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

The name of the model card to update.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

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

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

When updating model card * content, be sure to include the full content and not just updated content.

*/ inline UpdateModelCardRequest& 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 UpdateModelCardRequest& 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 UpdateModelCardRequest& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;} private: Aws::String m_modelCardName; bool m_modelCardNameHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; ModelCardStatus m_modelCardStatus; bool m_modelCardStatusHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws